/* wt-filter-style.css */

/* Reset and Base Styles for the Drawer */
#wt-garage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#wt-garage-overlay.active {
    display: block;
    opacity: 1;
}

#wt-garage-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    /* Start hidden off-screen */
    width: 800px;
    max-width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

#wt-garage-drawer.active {
    right: 0;
}

/* Close Button */
.wt-drawer-close {
    position: absolute;
    top: 25px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
    z-index: 10;
}

/* Drawer Layout: 2 Columns */
.wt-drawer-content {
    display: flex;
    flex: 1;
    overflow-y: auto;
}

.wt-drawer-left {
    flex: 1;
    padding: 40px;
    background-color: #fff;
    border-right: 1px solid #eaeaea;
}

.wt-drawer-right {
    width: 350px;
    background-color: #ff1d3e;
    /* Teal background from screenshot */
    padding: 40px 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Just an abstract motorcycle background effect for right side, or we can use an image if provided */
.wt-drawer-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://cdn.myshoptet.com/usr/726834.myshoptet.com/user/documents/upload/motocross-bg.jpg');
    /* Placeholder if needed, but solid color is fine for now based on sketch */
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.wt-drawer-right>* {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Headlines */
.wt-drawer-left h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    color: #333;
}

.wt-drawer-left h2::before {
    left: 0;
}

.wt-drawer-left h2::after {
    right: 0;
}

.wt-drawer-right h3 {
    text-align: center;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 700;
    color: white;
}

/* Added Vehicles List */
.wt-added-bikes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wt-bike-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

.wt-bike-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* Radio button style indicator */
.wt-bike-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wt-bike-item.active .wt-bike-radio {
    border-color: #17a2b8;
}

.wt-bike-item.active .wt-bike-radio::after {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #17a2b8;
    border-radius: 50%;
}

.wt-bike-item.active .wt-bike-name {
    color: #333;
    font-weight: bold;
}

.wt-bike-item:not(.active) .wt-bike-name {
    color: #777;
    font-weight: normal;
}

.wt-bike-actions {
    display: flex;
    gap: 10px;
}

.wt-btn-view-parts {
    background-color: #ff1d3e;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.wt-btn-view-parts:hover {
    background-color: #0f5885;
    color: white;
}

.wt-btn-delete {
    background-color: transparent;
    color: #777;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.wt-btn-delete:hover {
    border-color: #dc3545;
    color: #dc3545;
}

/* Right Side - Dropdowns */
.wt-select-group {
    margin-bottom: 15px;
    text-align: center;
}

.wt-select-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 2px;
    background-color: white;
    font-size: 15px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

.wt-select-group select:disabled {
    background-color: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

.wt-empty-bikes {
    text-align: center;
    color: #777;
    padding: 30px 0;
    font-style: italic;
}

/* Loading Indicator */
.wt-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff1d3e;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Header Trigger Button */
.wt-header-garage-btn {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    border: none;
    color: black !important;
    cursor: pointer;
    padding: 0px;
}

.wt-header-garage-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.wt-header-garage-count {
    margin-left: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background-color: #ff1d3e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media only screen and (min-width: 768px) {
    .wt-header-garage-icon {
       width: 40px;
       height: 40px;
   }   
   }
@media (max-width: 768px) {
    .wt-drawer-content {
        flex-direction: column-reverse;
    }

    .wt-drawer-right {
        width: 100%;
        padding: 30px 20px;
    }

    .wt-drawer-left {
        width: 100%;
        padding: 20px;
    }

    #wt-garage-drawer {
        width: 100vw;
    }
}

@media  (max-width: 425px) {
    .top-navigation-bar .site-name a img {
        max-width: 115px;
    }
}