/* Sticky Banner Component - Samsung Android Compatible */

/* ========================================
   DESKTOP STYLES (Default, no media query)
   ======================================== */

/* Wrapper */
.sticky-banner-wrapper {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop: When scrolled down */
.sticky-banner-wrapper.scrolled {
    top: 20%;
}

/* Floating Button */
.sticky-banner-wrapper .sticky-banner-button {
    position: absolute;
    right: 0;
    top: 0;
    background: #0A4E8A;
    color: #fff;
    padding: 35px 15px;
    border-radius: 0;
    cursor: pointer;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    -webkit-transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                -webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                -moz-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                -o-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                -webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                -moz-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                -o-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 55px;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Vertical text for non-Chinese languages */
.sticky-banner-wrapper.lang-vertical .sticky-banner-button {
    text-orientation: sideways;
    padding: 25px 12px;
    min-width: 45px;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

/* Horizontal text for Chinese only */
.sticky-banner-wrapper.lang-horizontal .sticky-banner-button {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    padding: 15px 20px;
    min-width: auto;
}

/* Desktop: Hover behavior */
.sticky-banner-wrapper:hover .sticky-banner-button {
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translate3d(20px, 0, 0);
    -moz-transform: translate3d(20px, 0, 0);
    -ms-transform: translate3d(20px, 0, 0);
    -o-transform: translate3d(20px, 0, 0);
    transform: translate3d(20px, 0, 0);
    pointer-events: none;
}

.sticky-banner-wrapper .button-text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 8px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

/* Vertical text for non-Chinese */
.sticky-banner-wrapper.lang-vertical .button-text {
    writing-mode: vertical-rl;
    writing-mode: sideways-lr;
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    text-orientation: mixed;
    text-orientation: sideways;
    -webkit-text-orientation: sideways;
    letter-spacing: 0;
    white-space: nowrap;
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* Horizontal text for Chinese only */
.sticky-banner-wrapper.lang-horizontal .button-text {
    writing-mode: horizontal-tb;
    text-align: center;
    line-height: 1.4;
}

.sticky-banner-wrapper .button-text .main-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sticky-banner-wrapper.lang-vertical .button-text .main-text {
    letter-spacing: 2px;
    white-space: nowrap;
}

.sticky-banner-wrapper.lang-horizontal .button-text .main-text {
    letter-spacing: 1px;
    font-size: 13px;
}

.sticky-banner-wrapper .button-text .sub-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.sticky-banner-wrapper.lang-vertical .button-text .sub-text {
    letter-spacing: 2px;
    white-space: nowrap;
}

.sticky-banner-wrapper.lang-horizontal .button-text .sub-text {
    letter-spacing: 0.5px;
    font-size: 11px;
}

.sticky-banner-wrapper .button-icon {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    opacity: 0.9;
    -webkit-transition: -webkit-transform 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease;
    -o-transition: -o-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease, -moz-transform 0.3s ease, -o-transform 0.3s ease;
}

/* Rotate icon for vertical text */
.sticky-banner-wrapper.lang-vertical .button-icon {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}

/* No rotation for Chinese horizontal text */
.sticky-banner-wrapper.lang-horizontal .button-icon {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
}

.sticky-banner-wrapper .sticky-banner-button:hover .button-icon {
    -webkit-transform: rotate(90deg) translateY(3px);
    -moz-transform: rotate(90deg) translateY(3px);
    -ms-transform: rotate(90deg) translateY(3px);
    -o-transform: rotate(90deg) translateY(3px);
    transform: rotate(90deg) translateY(3px);
}

.sticky-banner-wrapper.lang-horizontal .sticky-banner-button:hover .button-icon {
    -webkit-transform: rotate(0deg) translateX(3px);
    -moz-transform: rotate(0deg) translateX(3px);
    -ms-transform: rotate(0deg) translateX(3px);
    -o-transform: rotate(0deg) translateX(3px);
    transform: rotate(0deg) translateX(3px);
}

/* Banner Panel */
.sticky-banner-wrapper .sticky-banner-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: 380px;
    height: auto;
    max-height: 85vh;
    background: #fff;
    border-radius: 0;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    -webkit-transform: translate3d(calc(100% + 50px), 0, 0);
    -moz-transform: translate3d(calc(100% + 50px), 0, 0);
    -ms-transform: translate3d(calc(100% + 50px), 0, 0);
    -o-transform: translate3d(calc(100% + 50px), 0, 0);
    transform: translate3d(calc(100% + 50px), 0, 0);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: -moz-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: -o-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                -moz-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                -o-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    pointer-events: none;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Backdrop for mobile */
.sticky-banner-wrapper .sticky-banner-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
    -moz-transition: opacity 0.3s ease, visibility 0.3s ease;
    -o-transition: opacity 0.3s ease, visibility 0.3s ease;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
    pointer-events: none;
    display: none;
}

/* Show backdrop when active on mobile */
.sticky-banner-wrapper.active .sticky-banner-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: block;
}

/* Desktop: Hover to show panel */
.sticky-banner-wrapper:hover .sticky-banner-panel {
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sticky-banner-wrapper .panel-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    font-size: 20px;
    font-weight: bold;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sticky-banner-wrapper .panel-close svg {
    width: 18px;
    height: 18px;
    display: block;
}

.sticky-banner-wrapper .panel-close:hover {
    background: rgba(255, 255, 255, 1);
    -webkit-transform: rotate(90deg) scale(1.05);
    -moz-transform: rotate(90deg) scale(1.05);
    -ms-transform: rotate(90deg) scale(1.05);
    -o-transform: rotate(90deg) scale(1.05);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sticky-banner-wrapper .panel-header {
    background: -webkit-linear-gradient(225deg, #0A4E8A 0%, #084080 100%);
    background: -moz-linear-gradient(225deg, #0A4E8A 0%, #084080 100%);
    background: -o-linear-gradient(225deg, #0A4E8A 0%, #084080 100%);
    background: linear-gradient(135deg, #0A4E8A 0%, #084080 100%);
    color: #fff;
    padding: 25px 20px;
    text-align: center;
}

.sticky-banner-wrapper .panel-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.sticky-banner-wrapper .panel-subtitle {
    font-size: 13px;
    margin: 0;
    opacity: 0.95;
}

.sticky-banner-wrapper .panel-content {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    background: #f8f9fa;
    height: 100%;
    min-height: 0;
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
    -ms-touch-action: pan-y pinch-zoom;
    pointer-events: auto;
}

/* Custom Scrollbar */
.sticky-banner-wrapper .panel-content::-webkit-scrollbar {
    width: 8px;
}

.sticky-banner-wrapper .panel-content::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.sticky-banner-wrapper .panel-content::-webkit-scrollbar-thumb {
    background: -webkit-linear-gradient(225deg, #667eea 0%, #764ba2 100%);
    background: -moz-linear-gradient(225deg, #667eea 0%, #764ba2 100%);
    background: -o-linear-gradient(225deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.sticky-banner-wrapper .panel-content::-webkit-scrollbar-thumb:hover {
    background: -webkit-linear-gradient(225deg, #764ba2 0%, #667eea 100%);
    background: -moz-linear-gradient(225deg, #764ba2 0%, #667eea 100%);
    background: -o-linear-gradient(225deg, #764ba2 0%, #667eea 100%);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Banner Cards */
.sticky-banner-wrapper .banner-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.sticky-banner-wrapper .banner-card:hover {
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    -o-transform: translateY(-3px);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.sticky-banner-wrapper .banner-card:last-child {
    margin-bottom: 0;
}

.sticky-banner-wrapper .banner-card-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.sticky-banner-wrapper .card-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f0f0f0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.sticky-banner-wrapper .card-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.4s ease;
    -moz-transition: -moz-transform 0.4s ease;
    -o-transition: -o-transform 0.4s ease;
    transition: transform 0.4s ease;
    transition: transform 0.4s ease, -webkit-transform 0.4s ease, -moz-transform 0.4s ease, -o-transform 0.4s ease;
}

.sticky-banner-wrapper .banner-card:hover .card-image img {
    -webkit-transform: scale(1.08);
    -moz-transform: scale(1.08);
    -ms-transform: scale(1.08);
    -o-transform: scale(1.08);
    transform: scale(1.08);
}

.sticky-banner-wrapper .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: -webkit-linear-gradient(top, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    background: -moz-linear-gradient(top, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    background: -o-linear-gradient(top, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.sticky-banner-wrapper .banner-card:hover .image-overlay {
    opacity: 1;
}

.sticky-banner-wrapper .view-more {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.9);
    padding: 8px 20px;
    border-radius: 20px;
}

.sticky-banner-wrapper .card-body {
    padding: 15px;
}

.sticky-banner-wrapper .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.sticky-banner-wrapper .card-desc {
    font-size: 13px;
    color: #718096;
    margin: 0 0 10px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.sticky-banner-wrapper .card-link {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    -webkit-transition: gap 0.3s ease;
    -moz-transition: gap 0.3s ease;
    -o-transition: gap 0.3s ease;
    transition: gap 0.3s ease;
}

.sticky-banner-wrapper .banner-card:hover .card-link {
    gap: 8px;
}

/* Animations */
@-webkit-keyframes sticky-banner-slideInFromRight {
    from {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@-moz-keyframes sticky-banner-slideInFromRight {
    from {
        -moz-transform: translateX(100%);
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        -moz-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@-o-keyframes sticky-banner-slideInFromRight {
    from {
        -o-transform: translateX(100%);
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        -o-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes sticky-banner-slideInFromRight {
    from {
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -o-transform: translateX(100%);
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@-webkit-keyframes sticky-banner-slideOutToRight {
    from {
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        opacity: 1;
    }
    to {
        -webkit-transform: translateY(-50%) translateX(150%);
        transform: translateY(-50%) translateX(150%);
        opacity: 0;
    }
}

@-moz-keyframes sticky-banner-slideOutToRight {
    from {
        -moz-transform: translateY(-50%);
        transform: translateY(-50%);
        opacity: 1;
    }
    to {
        -moz-transform: translateY(-50%) translateX(150%);
        transform: translateY(-50%) translateX(150%);
        opacity: 0;
    }
}

@-o-keyframes sticky-banner-slideOutToRight {
    from {
        -o-transform: translateY(-50%);
        transform: translateY(-50%);
        opacity: 1;
    }
    to {
        -o-transform: translateY(-50%) translateX(150%);
        transform: translateY(-50%) translateX(150%);
        opacity: 0;
    }
}

@keyframes sticky-banner-slideOutToRight {
    from {
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        transform: translateY(-50%);
        opacity: 1;
    }
    to {
        -webkit-transform: translateY(-50%) translateX(150%);
        -moz-transform: translateY(-50%) translateX(150%);
        -o-transform: translateY(-50%) translateX(150%);
        transform: translateY(-50%) translateX(150%);
        opacity: 0;
    }
}

.sticky-banner-button {
    -webkit-animation: sticky-banner-slideInFromRight 0.6s ease-out 0.5s both;
    -moz-animation: sticky-banner-slideInFromRight 0.6s ease-out 0.5s both;
    -o-animation: sticky-banner-slideInFromRight 0.6s ease-out 0.5s both;
    animation: sticky-banner-slideInFromRight 0.6s ease-out 0.5s both;
}

/* Responsive */
/* ========================================
   LARGE DESKTOP (≥1400px)
   ======================================== */
@media (min-width: 1400px) {
    .sticky-banner-wrapper {
        top: 45%;
    }
    
    .sticky-banner-wrapper.scrolled {
        top: 18%;
    }
}

/* ========================================
   MEDIUM DESKTOP (≤1199px)
   ======================================== */
@media (max-width: 1199px) {
    .sticky-banner-wrapper {
        top: 62%;
    }
    
    .sticky-banner-wrapper.scrolled {
        top: 30%;
    }
}

/* ========================================
   SMALL DESKTOP / LARGE TABLET (≤991px)
   ======================================== */
@media (max-width: 991px) {
    .sticky-banner-wrapper {
        top: 52%;
    }
    
    .sticky-banner-wrapper.scrolled {
        top: 20%;
    }
    
    .sticky-banner-wrapper .sticky-banner-panel {
        width: 350px;
        height: 500px;
        max-height: 70vh;
    }
}

/* ========================================
   VERY SMALL DESKTOP (≤1024px & height ≤768px)
   ======================================== */
@media (max-width: 1024px) and (max-height: 768px) {
    .sticky-banner-wrapper {
        top: 68%;
        right: -5px;
    }
    
    .sticky-banner-wrapper.scrolled {
        top: 35%;
    }
    
    .sticky-banner-wrapper .sticky-banner-panel {
        max-height: 65vh;
        width: 340px;
    }
    
    .sticky-banner-wrapper .sticky-banner-button {
        padding: 25px 12px;
    }
}

/* ========================================
   MOBILE/TABLET STYLES (≤768px)
   Click behavior only, no hover, no scroll effect
   ======================================== */
@media (max-width: 768px) {
    .sticky-banner-wrapper {
        top: 35%;
        right: 0;
        /* Disable scroll effect on mobile */
    }
    
    /* Mobile: NO scroll effect */
    .sticky-banner-wrapper.scrolled {
        top: 35%;
    }
    
    /* Disable hover behavior on tablet */
    .sticky-banner-wrapper:hover .sticky-banner-button {
        opacity: 1 !important;
        visibility: visible !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        -moz-transform: translate3d(0, 0, 0) !important;
        -ms-transform: translate3d(0, 0, 0) !important;
        -o-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        pointer-events: auto !important;
    }
    
    .sticky-banner-wrapper:hover .sticky-banner-panel {
        -webkit-transform: translate3d(calc(100% + 50px), -50%, 0) !important;
        -moz-transform: translate3d(calc(100% + 50px), -50%, 0) !important;
        -ms-transform: translate3d(calc(100% + 50px), -50%, 0) !important;
        -o-transform: translate3d(calc(100% + 50px), -50%, 0) !important;
        transform: translate3d(calc(100% + 50px), -50%, 0) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Keep vertical bar style like desktop */
    .sticky-banner-wrapper .sticky-banner-button {
        border-radius: 0;
        min-width: 50px;
        padding: 20px 12px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
        z-index: 10;
        pointer-events: auto !important;
        cursor: pointer;
    }
    
    /* Hide button when active */
    .sticky-banner-wrapper.active .sticky-banner-button {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .sticky-banner-wrapper .button-text .main-text {
        font-size: 12px;
        letter-spacing: 2px;
    }
    
    .sticky-banner-wrapper .button-text .sub-text {
        font-size: 10px;
    }
    
    .sticky-banner-wrapper .sticky-banner-panel {
        position: fixed;
        right: 0;
        top: 10vh;
        -webkit-transform: translate3d(calc(100% + 50px), 0, 0);
        -moz-transform: translate3d(calc(100% + 50px), 0, 0);
        -ms-transform: translate3d(calc(100% + 50px), 0, 0);
        -o-transform: translate3d(calc(100% + 50px), 0, 0);
        transform: translate3d(calc(100% + 50px), 0, 0);
        width: 88vw;
        max-width: 360px;
        height: auto;
        max-height: 78vh;
        border-radius: 12px 0 0 12px;
        box-shadow: -12px 0 48px rgba(0, 0, 0, 0.3);
        z-index: 9999;
    }
    
    /* Active state for tablet */
    .sticky-banner-wrapper.active .sticky-banner-panel {
        -webkit-transform: translate3d(0, 0, 0) !important;
        -moz-transform: translate3d(0, 0, 0) !important;
        -ms-transform: translate3d(0, 0, 0) !important;
        -o-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .sticky-banner-wrapper .card-image {
        height: 120px;
    }
    
    .sticky-banner-wrapper .panel-header {
        padding: 20px 15px;
    }
    
    .sticky-banner-wrapper .panel-title {
        font-size: 18px;
    }
    
    .sticky-banner-wrapper .panel-close {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        border: 2px solid rgba(0, 0, 0, 0.1);
        font-size: 22px;
    }
    
    .sticky-banner-wrapper .panel-close svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .sticky-banner-wrapper {
        top: 32%;
        right: 0;
    }
    
    /* Mobile: NO scroll effect */
    .sticky-banner-wrapper.scrolled {
        top: 32%;
    }
    
    /* Disable hover behavior on mobile */
    .sticky-banner-wrapper:hover .sticky-banner-button {
        opacity: 1 !important;
        visibility: visible !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        -moz-transform: translate3d(0, 0, 0) !important;
        -ms-transform: translate3d(0, 0, 0) !important;
        -o-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        pointer-events: auto !important;
    }
    
    .sticky-banner-wrapper:hover .sticky-banner-panel {
        -webkit-transform: translate3d(calc(100% + 50px), -50%, 0) !important;
        -moz-transform: translate3d(calc(100% + 50px), -50%, 0) !important;
        -ms-transform: translate3d(calc(100% + 50px), -50%, 0) !important;
        -o-transform: translate3d(calc(100% + 50px), -50%, 0) !important;
        transform: translate3d(calc(100% + 50px), -50%, 0) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Keep vertical bar style */
    .sticky-banner-wrapper .sticky-banner-button {
        min-width: 45px;
        padding: 18px 10px;
        border-radius: 0;
        z-index: 10;
        pointer-events: auto !important;
        cursor: pointer;
    }
    
    /* Hide button when active */
    .sticky-banner-wrapper.active .sticky-banner-button {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .sticky-banner-wrapper .sticky-banner-panel {
        width: 92vw;
        max-width: none;
        top: 8vh;
        -webkit-transform: translate3d(calc(100% + 50px), 0, 0);
        -moz-transform: translate3d(calc(100% + 50px), 0, 0);
        -ms-transform: translate3d(calc(100% + 50px), 0, 0);
        -o-transform: translate3d(calc(100% + 50px), 0, 0);
        transform: translate3d(calc(100% + 50px), 0, 0);
        max-height: 82vh;
        border-radius: 12px 0 0 12px;
        box-shadow: -12px 0 48px rgba(0, 0, 0, 0.4);
        z-index: 9999;
    }
    
    /* Active state for mobile */
    .sticky-banner-wrapper.active .sticky-banner-panel {
        -webkit-transform: translate3d(0, 0, 0) !important;
        -moz-transform: translate3d(0, 0, 0) !important;
        -ms-transform: translate3d(0, 0, 0) !important;
        -o-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .sticky-banner-wrapper .card-image {
        height: 110px;
    }
    
    .sticky-banner-wrapper .panel-header {
        padding: 18px 12px;
    }
    
    .sticky-banner-wrapper .panel-title {
        font-size: 16px;
        margin: 0 0 5px 0;
    }
    
    .sticky-banner-wrapper .panel-subtitle {
        font-size: 12px;
    }
    
    .sticky-banner-wrapper .panel-content {
        padding: 12px;
    }
    
    .sticky-banner-wrapper .card-body {
        padding: 12px;
    }
    
    .sticky-banner-wrapper .card-title {
        font-size: 14px;
    }
    
    .sticky-banner-wrapper .card-desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .sticky-banner-wrapper .panel-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 24px;
        background: rgba(255, 255, 255, 0.98);
        border: 2px solid rgba(0, 0, 0, 0.12);
        box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    }
    
    .sticky-banner-wrapper .panel-close svg {
        width: 22px;
        height: 22px;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    /* iOS specific: Force vertical text */
    .sticky-banner-wrapper.lang-vertical .button-text {
        writing-mode: vertical-rl !important;
        -webkit-writing-mode: vertical-rl !important;
        -ms-writing-mode: tb-rl !important;
        text-orientation: mixed !important;
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        transform: rotate(180deg);
    }
    
    .sticky-banner-wrapper.lang-vertical .button-text .main-text,
    .sticky-banner-wrapper.lang-vertical .button-text .sub-text {
        writing-mode: inherit;
        -webkit-writing-mode: inherit;
    }
    
    /* Ensure button is always clickable on mobile */
    .sticky-banner-wrapper .sticky-banner-button {
        pointer-events: auto !important;
        z-index: 100;
    }
    
    /* Show panel when active */
    .sticky-banner-wrapper.active .sticky-banner-panel {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    /* Make close button more prominent on touch */
    .sticky-banner-wrapper .panel-close {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 3px 15px rgba(0,0,0,0.25);
        width: 44px;
        height: 44px;
        font-size: 24px;
        z-index: 10001;
        border: 2px solid rgba(0, 0, 0, 0.1);
    }
    
    .sticky-banner-wrapper .panel-close svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }
    
    .sticky-banner-wrapper .panel-close:active {
        background: #f0f0f0;
        -webkit-transform: scale(0.95);
        -moz-transform: scale(0.95);
        -ms-transform: scale(0.95);
        -o-transform: scale(0.95);
        transform: scale(0.95);
    }
    
    /* Better touch targets */
    .sticky-banner-wrapper .banner-card-link {
        min-height: 48px;
    }
    
    .sticky-banner-wrapper .card-link {
        padding: 8px 0;
    }
}
