/* ==============================================
   GNL Marketing - Coupon & Delivery Panel Styles
   ============================================== */

/* Variables converted to values:
   --gnl-panel-width: 280px;
   --gnl-panel-bg: #ffffff;
   --gnl-panel-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
   --gnl-panel-radius: 8px;
   --gnl-panel-z-index: 9999;
   --gnl-primary-color: #FF6B35;
   --gnl-delivery-color: #2E7D32;
   --gnl-text-color: #333333;
   --gnl-text-muted: #666666;
   --gnl-mobile-breakpoint: 768px;
*/

/* ==============================================
   MARKETING TOP BAR
   ============================================== */

.gnl-marketing-topbar {
    position: relative;
    width: 100%;
    padding: 8px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    box-sizing: border-box;
    background-color: #FF6B35;
    color: #ffffff;
}

.gnl-marketing-topbar__line {
    padding: 4px 0;
}

.gnl-marketing-topbar__line:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.gnl-marketing-topbar__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.gnl-marketing-topbar__icon {
    font-size: 18px;
}

.gnl-marketing-topbar__message {
    line-height: 1.4;
}

.gnl-marketing-topbar__message strong {
    font-weight: 700;
}

.gnl-marketing-topbar__countdown {
    font-weight: 600;
    white-space: nowrap;
}

/* Legacy coupon topbar (for backwards compatibility) */
.gnl-coupon-topbar {
    position: relative;
    width: 100%;
    padding: 10px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    z-index: 9998;
    box-sizing: border-box;
}

.gnl-coupon-topbar__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.gnl-coupon-topbar__icon {
    font-size: 16px;
}

.gnl-coupon-topbar__message {
    line-height: 1.4;
}

/* ==============================================
   DESKTOP COUPON PANEL
   ============================================== */

.gnl-coupon-panel--desktop {
    display: none;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

@media (min-width: 768px) {
    .gnl-coupon-panel--desktop {
        display: block;
    }
}

.gnl-coupon-panel--desktop .gnl-coupon-panel__tab {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #FF6B35;
    color: #fff;
    padding: 15px 10px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.gnl-coupon-panel--desktop .gnl-coupon-panel__tab:hover {
    transform: translateY(-50%) translateX(-5px);
}

.gnl-coupon-panel__tab-icon {
    font-size: 20px;
}

.gnl-coupon-panel__tab-discount {
    font-weight: bold;
    font-size: 14px;
}

.gnl-coupon-panel__tab-time {
    font-size: 11px;
    opacity: 0.9;
}

.gnl-coupon-panel--desktop .gnl-coupon-panel__content {
    width: 280px;
    background: #ffffff;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: gnl-slide-in-right 0.4s ease;
}

.gnl-coupon-panel--desktop.gnl-coupon-panel--collapsed .gnl-coupon-panel__tab {
    display: flex;
}

.gnl-coupon-panel--desktop.gnl-coupon-panel--collapsed .gnl-coupon-panel__content {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* ==============================================
   MOBILE COUPON PANEL
   ============================================== */

.gnl-coupon-panel--mobile {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    animation: gnl-slide-in-bottom 0.4s ease;
}

.gnl-coupon-panel--mobile.gnl-coupon-panel--mobile-hidden {
    display: none !important;
}

@media (min-width: 768px) {
    .gnl-coupon-panel--mobile {
        display: none;
    }
}

.gnl-coupon-panel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #FF6B35;
    color: #fff;
    cursor: pointer;
}

.gnl-coupon-panel__bar-icon {
    font-size: 18px;
}

.gnl-coupon-panel__bar-discount {
    font-weight: bold;
    flex: 1;
    margin-left: 10px;
}

.gnl-coupon-panel__bar-time {
    font-size: 13px;
    margin-right: 10px;
}

.gnl-coupon-panel__bar-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 5px;
    cursor: pointer;
}

.gnl-coupon-panel__mobile-content {
    display: none;
    background: #ffffff;
    border-top: 1px solid #eee;
    max-height: 60vh;
    overflow-y: auto;
}

.gnl-coupon-panel__mobile-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.gnl-coupon-panel--mobile.gnl-coupon-panel--mobile-expanded .gnl-coupon-panel__bar {
    display: none;
}

.gnl-coupon-panel--mobile.gnl-coupon-panel--mobile-expanded .gnl-coupon-panel__mobile-content {
    display: block;
}

/* ==============================================
   SHARED COUPON PANEL STYLES
   ============================================== */

.gnl-coupon-panel__header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
}

.gnl-coupon-panel__icon {
    font-size: 24px;
    margin-right: 10px;
}

.gnl-coupon-panel__title {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
}

.gnl-coupon-panel__collapse {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s ease;
}

.gnl-coupon-panel__collapse:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gnl-coupon-panel__body {
    padding: 20px 15px;
}

.gnl-coupon-panel__message {
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px;
}

.gnl-coupon-panel__countdown {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
}

.gnl-coupon-panel__countdown-label {
    display: block;
    font-size: 12px;
    color: #666666;
    margin-bottom: 5px;
}

.gnl-coupon-panel__countdown-time {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #FF6B35;
    margin-bottom: 10px;
}

.gnl-coupon-panel__countdown-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.gnl-coupon-panel__countdown-progress {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #e55a2b);
    border-radius: 3px;
    transition: width 1s linear;
}

.gnl-coupon-panel__note {
    font-size: 12px;
    color: #666666;
    text-align: center;
    margin: 0 0 15px;
}

.gnl-coupon-panel__cta {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #FF6B35;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.gnl-coupon-panel__cta:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

.gnl-coupon-panel__cta--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==============================================
   DESKTOP DELIVERY PANEL
   ============================================== */

.gnl-delivery-panel--desktop {
    display: none;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

@media (min-width: 768px) {
    .gnl-delivery-panel--desktop {
        display: block;
    }
}

.gnl-delivery-panel--desktop .gnl-delivery-panel__tab {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #2E7D32;
    color: #fff;
    padding: 15px 10px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.gnl-delivery-panel--desktop .gnl-delivery-panel__tab:hover {
    transform: translateY(-50%) translateX(-5px);
}

.gnl-delivery-panel__tab-icon {
    font-size: 20px;
}

.gnl-delivery-panel__tab-text {
    font-size: 11px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
}

.gnl-delivery-panel--desktop .gnl-delivery-panel__content {
    width: 280px;
    background: #ffffff;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gnl-delivery-panel--desktop.gnl-delivery-panel--collapsed .gnl-delivery-panel__tab {
    display: flex;
}

.gnl-delivery-panel--desktop.gnl-delivery-panel--collapsed .gnl-delivery-panel__content {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* ==============================================
   MOBILE DELIVERY PANEL
   ============================================== */

.gnl-delivery-panel--mobile {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    animation: gnl-slide-in-bottom 0.4s ease;
}

@media (min-width: 768px) {
    .gnl-delivery-panel--mobile {
        display: none;
    }
}

.gnl-delivery-panel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #2E7D32;
    color: #fff;
    cursor: pointer;
}

.gnl-delivery-panel__bar-icon {
    font-size: 18px;
}

.gnl-delivery-panel__bar-text {
    flex: 1;
    margin-left: 10px;
    font-size: 14px;
}

.gnl-delivery-panel__bar-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 5px;
    cursor: pointer;
}

.gnl-delivery-panel__mobile-content {
    display: none;
    background: #ffffff;
    border-top: 1px solid #eee;
    max-height: 60vh;
    overflow-y: auto;
}

.gnl-delivery-panel__mobile-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.gnl-delivery-panel--mobile.gnl-delivery-panel--mobile-expanded .gnl-delivery-panel__bar {
    display: none;
}

.gnl-delivery-panel--mobile.gnl-delivery-panel--mobile-expanded .gnl-delivery-panel__mobile-content {
    display: block;
}

/* ==============================================
   SHARED DELIVERY PANEL STYLES
   ============================================== */

.gnl-delivery-panel__header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #2E7D32, #1b5e20);
    color: #fff;
}

.gnl-delivery-panel__icon {
    font-size: 24px;
    margin-right: 10px;
}

.gnl-delivery-panel__title {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
}

.gnl-delivery-panel__collapse {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s ease;
}

.gnl-delivery-panel__collapse:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gnl-delivery-panel__body {
    padding: 20px 15px;
}

.gnl-delivery-panel__message {
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.gnl-delivery-panel__message strong {
    color: #2E7D32;
    font-weight: bold;
}

.gnl-delivery-panel__cta {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #2E7D32;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.gnl-delivery-panel__cta:hover {
    background: #1b5e20;
    transform: translateY(-1px);
}

/* ==============================================
   ANIMATIONS
   ============================================== */

@keyframes gnl-slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes gnl-slide-in-bottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
