/* Floating Dock Yogurt Scroller Styling */

/* Floating Dock Styling */
.yogurt-floating-dock {
    position: fixed;
    /* Below cookie-consent overlays (e.g. Complianz ~99999+) so banners stay clickable */
    z-index: 50000 !important;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px 15px 35px 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    max-width: 95vw;
    width: auto;
    min-width: 600px;
    overflow: visible;
}

.yogurt-floating-dock:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.yogurt-floating-dock.position-bottom-left {
    bottom: 20px;
    right: auto;
    left: 20px;
}

.yogurt-floating-dock.position-top-right {
    bottom: auto;
    top: 20px;
    right: 20px;
}

.yogurt-floating-dock.position-top-left {
    bottom: auto;
    top: 20px;
    right: auto;
    left: 20px;
}

.yogurt-floating-dock.position-bottom-center {
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.yogurt-floating-dock.position-top-center {
    bottom: auto;
    top: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.yogurt-dock-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yogurt-dock-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.yogurt-dock-nav {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(39, 174, 96, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #27ae60;
    z-index: 2;
    position: relative;
}

.yogurt-dock-nav:hover {
    background: #27ae60;
    color: white;
    transform: scale(1.1);
}

.yogurt-dock-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.yogurt-dock-nav:disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.9);
    color: #27ae60;
}

.yogurt-dock-pots {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(39, 174, 96, 0.3) transparent;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    padding: 5px 0;
    scroll-behavior: smooth;
}

.yogurt-dock-pots::-webkit-scrollbar {
    height: 6px;
}

.yogurt-dock-pots::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.yogurt-dock-pots::-webkit-scrollbar-thumb {
    background: rgba(39, 174, 96, 0.6);
    border-radius: 3px;
}

.yogurt-dock-pots::-webkit-scrollbar-thumb:hover {
    background: rgba(39, 174, 96, 0.8);
}

.yogurt-dock-pot {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    margin: 0 8px;
    position: relative;
}

.yogurt-dock-pot__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    cursor: pointer;
}

.yogurt-dock-pot:hover {
    transform: translateY(-5px);
}

.yogurt-dock-pot__link:hover {
    text-decoration: none;
}

.yogurt-dock-pot:has(.yogurt-dock-pot__link):hover {
    cursor: pointer;
}

.yogurt-dock-pot__image {
    width: 60px;
    height: 80px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 8px;
}

.yogurt-dock-pot__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.yogurt-dock-pot__content {
    font-size: 0.7rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
    padding: 8px;
}

.yogurt-dock-pot__label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    text-align: center !important;
    line-height: 1.2 !important;
    margin-top: 4px !important;
    white-space: normal !important;
    opacity: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: 2.4em !important;
    visibility: visible !important;
}

.yogurt-dock-pot:hover .yogurt-dock-pot__label {
    color: #27ae60 !important;
    font-weight: 700 !important;
}

.yogurt-dock-pot:hover .yogurt-dock-pot__image {
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    transform: scale(1.05);
}

/* Tablet responsiveness */
@media (max-width: 1024px) and (min-width: 600px) {
    .yogurt-floating-dock {
        left: 20px;
        right: 20px;
        width: calc(100vw - 40px);
        max-width: none;
        min-width: 0;
        border-radius: 12px;
        padding: 5px 8px 6px;
        transform: none;
    }

    .yogurt-floating-dock.position-bottom-center,
    .yogurt-floating-dock.position-top-center {
        left: 20px;
        right: 20px;
        transform: none;
    }

    .yogurt-dock-title {
        font-size: 0.62rem;
        margin-bottom: 2px;
        letter-spacing: 0.35px;
    }

    .yogurt-dock-container {
        display: block;
        gap: 0;
    }

    .yogurt-dock-nav {
        display: none;
    }

    .yogurt-dock-pots {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        padding: 0 2px;
        box-sizing: border-box;
    }

    .yogurt-dock-pot {
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
        max-width: none;
    }

    .yogurt-dock-pot__link {
        width: 100%;
        min-width: 0;
    }

    .yogurt-dock-pot__image {
        width: 40px;
        height: 52px;
        margin-bottom: 2px;
    }

    .yogurt-dock-pot__label {
        font-size: 0.58rem;
        line-height: 1.18;
        white-space: normal !important;
        overflow: hidden;
        width: 100%;
        max-width: none;
        min-height: 0 !important;
        display: -webkit-box !important;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        margin-top: 0 !important;
        word-break: break-word;
        hyphens: auto;
    }
}

/* Mobile responsiveness */
@media (max-width: 599px) {
    .yogurt-floating-dock {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: 0; /* allow dock to fit viewport; base min-width 600px would overflow */
        width: calc(100vw - 20px);
        padding: 8px 10px 35px 10px;
        border-radius: 15px;
    }
    
    .yogurt-floating-dock.position-bottom-left,
    .yogurt-floating-dock.position-top-left {
        left: 10px;
        right: 10px;
    }
    
    .yogurt-floating-dock.position-top-right {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .yogurt-floating-dock.position-bottom-center {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
    }
    
    .yogurt-floating-dock.position-top-center {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
    }
    
    .yogurt-dock-container {
        gap: 8px;
    }
    
    .yogurt-dock-pot {
        margin: 0 4px;
    }
    
    .yogurt-dock-pot__image {
        width: 45px;
        height: 60px;
        margin-bottom: 6px;
    }
    
    .yogurt-dock-pot__content {
        font-size: 0.55rem;
        padding: 4px;
    }
    
    .yogurt-dock-nav {
        flex: 0 0 22px;
        height: 22px;
    }
    
    .yogurt-dock-pot__label {
        font-size: 0.6rem;
    }
    
    .yogurt-dock-title {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
}

/* Small mobile responsiveness */
@media (max-width: 480px) {
    .yogurt-floating-dock {
        bottom: 5px;
        right: 5px;
        left: 5px;
        padding: 6px 8px 30px 8px;
        border-radius: 12px;
    }
    
    .yogurt-floating-dock.position-bottom-left,
    .yogurt-floating-dock.position-top-left {
        left: 5px;
        right: 5px;
    }
    
    .yogurt-floating-dock.position-top-right {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .yogurt-floating-dock.position-bottom-center {
        bottom: 5px;
        left: 5px;
        right: 5px;
    }
    
    .yogurt-floating-dock.position-top-center {
        top: 5px;
        left: 5px;
        right: 5px;
    }
    
    .yogurt-dock-container {
        gap: 6px;
    }
    
    .yogurt-dock-pot {
        margin: 0 2px;
    }
    
    .yogurt-dock-pot__image {
        width: 40px;
        height: 55px;
        margin-bottom: 4px;
    }
    
    .yogurt-dock-pot__content {
        font-size: 0.5rem;
        padding: 2px;
    }
    
    .yogurt-dock-nav {
        flex: 0 0 20px;
        height: 20px;
    }
    
    .yogurt-dock-pot__label {
        font-size: 0.55rem;
    }
    
    .yogurt-dock-title {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
}

/* Large desktop responsiveness */
@media (min-width: 1400px) {
    .yogurt-floating-dock {
        max-width: 95vw;
        padding: 10px 20px 40px 20px;
    }
    
    .yogurt-dock-pot__image {
        width: 70px;
        height: 90px;
    }
    
    .yogurt-dock-pot__label {
        font-size: 0.8rem;
    }
    
    .yogurt-dock-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
}

/* Extra large desktop - allow full width for all pots */
@media (min-width: 1600px) {
    .yogurt-floating-dock {
        max-width: 98vw;
    }
}

/* Complianz: keep banner / manage-consent layer above the dock (dock z-index: 50000) */
#cmplz-cookiebanner-container {
    z-index: 100050 !important;
}
