/**
 * WC Coupon Banner Pro - Frontend Styles
 *
 * Main stylesheet for the coupon banner widget.
 *
 * @package     WC_Coupon_Banner_Pro
 * @author      khairulcoder
 * @copyright   2024 khairulcoder
 * @license     GPL-2.0-or-later
 * @since       1.0.0
 * @version     1.0.6
 */

/* ==================== CSS CUSTOM PROPERTIES ==================== */

:root {
    /* Page Background (for notches) */
    --wcc-page-bg: transparent;

    /* Divider & Scissor */
    --wcc-separator-width: 2px;
    --wcc-separator-style: dashed;
    --wcc-separator-color: #b2ebf2;
    --wcc-scissor-size: 20px;
    --wcc-divider-x: 68%;
    --wcc-scissor-y: 50%;

    /* Button Positioning */
    --wcc-button-offset-x: 0px;
    --wcc-button-offset-y: 0px;

    /* Timer Positioning */
    --wcc-timer-offset-x: 0px;
    --wcc-timer-offset-y: 0px;

    /* Decorative Elements */
    --wcc-deco-color1: rgba(255, 255, 255, 0.4);
    --wcc-deco-color2: rgba(0, 0, 0, 0.1);
    --wcc-deco-offset-x: 0px;
    --wcc-deco-offset-y: 0px;
    --wcc-deco-gradient-angle: 45deg;

    /* Scallop Settings */
    --wcc-scallop-size: 6px;
    --wcc-scallop-spacing: 18px;
}

/* ==================== BASE BANNER STYLES ==================== */

.wcc-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
    height: 76px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.wcc-banner:hover {
    transform: translateY(-2px);
}

/* ==================== CONTENT SECTION ==================== */

.wcc-content {
    flex: 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
    z-index: 2;
    position: relative;
    padding-left: 20px;
    background: linear-gradient(90deg, #d4fcff 0%, #4fffe3 100%);
    height: 100%;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* Decorative Circle on Content */
.wcc-content::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
}

.wcc-badge {
    display: inline-block;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: #000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    width: fit-content;
    margin-bottom: 3px;
    font-weight: 700;
    line-height: 1;
}

.wcc-badge-inline {
    position: relative;
    top: auto;
    left: auto;
}

.wcc-badge-top-left,
.wcc-badge-top-right,
.wcc-badge-top-center {
    position: absolute;
    z-index: 7;
}

.wcc-badge-top-left {
    top: 8px;
    left: 20px;
}

.wcc-badge-top-right {
    top: 8px;
    right: 10px;
}

.wcc-badge-top-center {
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.wcc-offer {
    font-size: 24px;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    line-height: 1;
    font-style: italic;
    letter-spacing: 0.5px;
}

.wcc-description {
    font-size: 9px;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 600;
    opacity: 0.8;
    letter-spacing: 0.3px;
}

/* ==================== ACTION SECTION ==================== */

.wcc-action {
    flex: 3.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 2;
    position: relative;
    height: 100%;
    padding: 0 5px;
}

.wcc-code-pill {
    position: relative;
    width: 105px;
    height: 32px;
    border: 1px dashed #000;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f0fdff;
    transform: translate(var(--wcc-button-offset-x, 0), var(--wcc-button-offset-y, 0));
}

.wcc-actual-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    z-index: 1;
    width: 100%;
    text-align: center;
    user-select: none;
    transition: all 0.3s ease;
}

/* Copy Animation States */
.wcc-actual-code.wcc-copying {
    opacity: 0;
    transform: scale(0.8);
}

.wcc-actual-code.wcc-copied {
    color: #00bfa5;
    animation: popBounce 0.3s ease-in-out;
}

@keyframes popBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* ==================== STICKER/REVEAL BUTTON ==================== */

.wcc-sticker-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    overflow: hidden;
    transition: width 0.8s cubic-bezier(0.65, 0.05, 0.36, 1),
        border-radius 0.8s ease,
        background-color 0.3s ease;
}

.wcc-sticker-btn:hover {
    background-color: #222;
}

.wcc-sticker-content {
    color: white;
    font-weight: 600;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 105px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcc-sticker-content i,
.wcc-sticker-content svg {
    width: 12px;
    height: 12px;
    font-size: 12px;
}

/* Peel Highlight Effect */
.wcc-sticker-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.wcc-sticker-btn.peel-off {
    width: 0%;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
}

.wcc-sticker-btn.peel-off::after {
    opacity: 1;
}

/* ==================== EXPIRY TEXT ==================== */

.wcc-expiry-bottom {
    font-size: 7px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== COUNTDOWN TIMER ==================== */

.wcc-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    margin-top: 4px;
    position: relative;
    transform: translate(var(--wcc-timer-offset-x, 0), var(--wcc-timer-offset-y, 0));
}

.wcc-timer span {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
    min-width: 20px;
    text-align: center;
    font-size: 10px;
}

/* ==================== DIVIDER & SCISSOR ==================== */

.wcc-divider-line {
    position: absolute;
    left: var(--wcc-divider-x, 68%);
    top: 10px;
    bottom: 10px;
    width: 0;
    border-left: var(--wcc-separator-width, 2px) var(--wcc-separator-style, dashed) var(--wcc-separator-color, #b2ebf2);
    z-index: 5;
    transform: translateX(-50%);
}

.wcc-scissor-icon {
    position: absolute;
    left: var(--wcc-divider-x, 68%);
    top: var(--wcc-scissor-y, 50%);
    transform: translate(-50%, -50%);
    background: #fff;
    color: #999;
    width: var(--wcc-scissor-size, 20px);
    height: var(--wcc-scissor-size, 20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    border: 1px solid #eee;
}

.wcc-scissor-icon svg {
    width: 10px;
    height: 10px;
}

/* ==================== SCALLOPED EDGES ==================== */

.wcc-scallop-left,
.wcc-scallop-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    z-index: 30;
    background-size: 10px var(--wcc-scallop-spacing, 18px);
    background-repeat: repeat-y;
}

.wcc-scallop-left {
    left: 0;
    background-image: radial-gradient(circle at 0 50%, var(--wcc-page-bg, transparent) var(--wcc-scallop-size, 6px), transparent calc(var(--wcc-scallop-size, 6px) + 0.5px));
}

.wcc-scallop-right {
    right: 0;
    background-image: radial-gradient(circle at 100% 50%, var(--wcc-page-bg, transparent) var(--wcc-scallop-size, 6px), transparent calc(var(--wcc-scallop-size, 6px) + 0.5px));
}

.wcc-scallop-top,
.wcc-scallop-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    z-index: 30;
    background-size: var(--wcc-scallop-spacing, 18px) 10px;
    background-repeat: repeat-x;
}

.wcc-scallop-top {
    top: 0;
    background-image: radial-gradient(circle at 50% 0, var(--wcc-page-bg, transparent) var(--wcc-scallop-size, 6px), transparent calc(var(--wcc-scallop-size, 6px) + 0.5px));
}

.wcc-scallop-bottom {
    bottom: 0;
    background-image: radial-gradient(circle at 50% 100%, var(--wcc-page-bg, transparent) var(--wcc-scallop-size, 6px), transparent calc(var(--wcc-scallop-size, 6px) + 0.5px));
}

/* Split Notches (Center Top/Bottom) */
.wcc-notch-top,
.wcc-notch-bottom {
    position: absolute;
    left: var(--wcc-divider-x, 68%);
    width: 16px;
    height: 16px;
    background: var(--wcc-page-bg, transparent);
    border-radius: 50%;
    z-index: 10;
    transform: translateX(-50%);
}

.wcc-notch-top {
    top: -8px;
}

.wcc-notch-bottom {
    bottom: -8px;
}

/* ==================== SCALLOPED EDGE VISIBILITY CONTROLS ==================== */

/* 
 * Smart Visibility Control for Scalloped Edges
 * By default, all scallops are visible when "Enable Scalloped Edges" is ON
 * We hide specific edges based on the selected option
 */

/* Left Only - Hide right, top, bottom edges + notches */
.wcc-scallop-left .wcc-banner>.wcc-scallop-right,
.wcc-scallop-left .wcc-banner>.wcc-scallop-top,
.wcc-scallop-left .wcc-banner>.wcc-scallop-bottom,
.wcc-scallop-left .wcc-banner>.wcc-notch-top,
.wcc-scallop-left .wcc-banner>.wcc-notch-bottom {
    display: none !important;
}

/* Right Only - Hide left, top, bottom edges + notches */
.wcc-scallop-right .wcc-banner>.wcc-scallop-left,
.wcc-scallop-right .wcc-banner>.wcc-scallop-top,
.wcc-scallop-right .wcc-banner>.wcc-scallop-bottom,
.wcc-scallop-right .wcc-banner>.wcc-notch-top,
.wcc-scallop-right .wcc-banner>.wcc-notch-bottom {
    display: none !important;
}

/* Both Sides - Hide only top and bottom edges (keep notches visible) */
.wcc-scallop-both .wcc-banner>.wcc-scallop-top,
.wcc-scallop-both .wcc-banner>.wcc-scallop-bottom {
    display: none !important;
}

/* Top Only - Hide left, right, bottom edges + notches */
.wcc-scallop-top .wcc-banner>.wcc-scallop-left,
.wcc-scallop-top .wcc-banner>.wcc-scallop-right,
.wcc-scallop-top .wcc-banner>.wcc-scallop-bottom,
.wcc-scallop-top .wcc-banner>.wcc-notch-top,
.wcc-scallop-top .wcc-banner>.wcc-notch-bottom {
    display: none !important;
}

/* Bottom Only - Hide left, right, top edges + notches */
.wcc-scallop-bottom .wcc-banner>.wcc-scallop-left,
.wcc-scallop-bottom .wcc-banner>.wcc-scallop-right,
.wcc-scallop-bottom .wcc-banner>.wcc-scallop-top,
.wcc-scallop-bottom .wcc-banner>.wcc-notch-top,
.wcc-scallop-bottom .wcc-banner>.wcc-notch-bottom {
    display: none !important;
}

/* All Sides - Show everything (no hiding needed, this is the default state) */
/* No CSS rules needed for .wcc-scallop-all as all edges are visible by default */

/* ==================== TEMPLATE PRESET STYLES ==================== */

/* === Template 1: Cyan Gradient (Modern) === */
[class*="wcc-preset-cyan"] .wcc-banner {
    background: #fff;
    box-shadow: none;
    border: none;
}

[class*="wcc-preset-cyan"] .wcc-content {
    background: linear-gradient(90deg, #d4fcff 0%, #4fffe3 100%);
    color: #000;
}

[class*="wcc-preset-cyan"] .wcc-content::before {
    background: rgba(255, 255, 255, 0.4);
}

[class*="wcc-preset-cyan"] .wcc-offer {
    color: #000;
}

[class*="wcc-preset-cyan"] .wcc-description {
    color: rgba(0, 0, 0, 0.8);
}

[class*="wcc-preset-cyan"] .wcc-badge {
    background: #000;
    color: #fff;
}

[class*="wcc-preset-cyan"] .wcc-sticker-btn {
    background: #000;
}

[class*="wcc-preset-cyan"] .wcc-sticker-btn:hover {
    background: #222;
}

[class*="wcc-preset-cyan"] .wcc-code-pill {
    background-color: #f0fdff;
    border-color: #000;
}

[class*="wcc-preset-cyan"] .wcc-divider-line {
    border-color: #b2ebf2;
}

[class*="wcc-preset-cyan"] .wcc-actual-code {
    color: #000;
}

/* === Template 2: Royal Purple (Premium) === */
[class*="wcc-preset-purple"] .wcc-banner {
    background: #fff;
}

[class*="wcc-preset-purple"] .wcc-content {
    background: linear-gradient(90deg, #e8d5ff 0%, #b388ff 100%);
    color: #000;
}

[class*="wcc-preset-purple"] .wcc-content::before {
    background: rgba(255, 255, 255, 0.5);
}

[class*="wcc-preset-purple"] .wcc-offer {
    color: #4a148c;
}

[class*="wcc-preset-purple"] .wcc-description {
    color: rgba(74, 20, 140, 0.8);
}

[class*="wcc-preset-purple"] .wcc-badge {
    background: #7c4dff;
    color: #fff;
}

[class*="wcc-preset-purple"] .wcc-sticker-btn {
    background: linear-gradient(135deg, #7c4dff 0%, #b388ff 100%);
}

[class*="wcc-preset-purple"] .wcc-sticker-btn:hover {
    background: linear-gradient(135deg, #651fff 0%, #9c64ff 100%);
}

[class*="wcc-preset-purple"] .wcc-code-pill {
    background-color: #f3e5f5;
    border-color: #7c4dff;
}

[class*="wcc-preset-purple"] .wcc-divider-line {
    border-color: #ce93d8;
}

[class*="wcc-preset-purple"] .wcc-actual-code {
    color: #4a148c;
}

/* === Template 3: Sunset Orange (Vibrant) === */
[class*="wcc-preset-orange"] .wcc-banner {
    background: #fff;
}

[class*="wcc-preset-orange"] .wcc-content {
    background: linear-gradient(90deg, #ffe0b2 0%, #ff8a65 100%);
    color: #000;
}

[class*="wcc-preset-orange"] .wcc-content::before {
    background: rgba(255, 255, 255, 0.5);
}

[class*="wcc-preset-orange"] .wcc-offer {
    color: #bf360c;
}

[class*="wcc-preset-orange"] .wcc-description {
    color: rgba(191, 54, 12, 0.8);
}

[class*="wcc-preset-orange"] .wcc-badge {
    background: #ff5722;
    color: #fff;
}

[class*="wcc-preset-orange"] .wcc-sticker-btn {
    background: linear-gradient(135deg, #ff5722 0%, #ff8a65 100%);
}

[class*="wcc-preset-orange"] .wcc-sticker-btn:hover {
    background: linear-gradient(135deg, #e64a19 0%, #ff7043 100%);
}

[class*="wcc-preset-orange"] .wcc-code-pill {
    background-color: #fff3e0;
    border-color: #ff5722;
}

[class*="wcc-preset-orange"] .wcc-divider-line {
    border-color: #ffab91;
}

[class*="wcc-preset-orange"] .wcc-actual-code {
    color: #bf360c;
}

/* === Template 4: Ocean Blue (Corporate) === */
[class*="wcc-preset-blue"] .wcc-banner {
    background: #fff;
}

[class*="wcc-preset-blue"] .wcc-content {
    background: linear-gradient(90deg, #e3f2fd 0%, #64b5f6 100%);
    color: #000;
}

[class*="wcc-preset-blue"] .wcc-content::before {
    background: rgba(255, 255, 255, 0.5);
}

[class*="wcc-preset-blue"] .wcc-offer {
    color: #0d47a1;
}

[class*="wcc-preset-blue"] .wcc-description {
    color: rgba(13, 71, 161, 0.8);
}

[class*="wcc-preset-blue"] .wcc-badge {
    background: #1976d2;
    color: #fff;
}

[class*="wcc-preset-blue"] .wcc-sticker-btn {
    background: linear-gradient(135deg, #1976d2 0%, #64b5f6 100%);
}

[class*="wcc-preset-blue"] .wcc-sticker-btn:hover {
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
}

[class*="wcc-preset-blue"] .wcc-code-pill {
    background-color: #e3f2fd;
    border-color: #1976d2;
}

[class*="wcc-preset-blue"] .wcc-divider-line {
    border-color: #90caf9;
}

[class*="wcc-preset-blue"] .wcc-actual-code {
    color: #0d47a1;
}

/* ==================== REVEAL ANIMATIONS ==================== */

@keyframes fadeSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes zoomBounce {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Fade Animation */
.wcc-anim-fade .wcc-sticker-btn.peel-off {
    animation: fadeSlideUp 0.6s ease forwards;
}

/* Zoom Animation */
.wcc-anim-zoom .wcc-sticker-btn.peel-off {
    animation: zoomBounce 0.5s ease forwards;
}

/* Slide Animation */
.wcc-anim-slide .wcc-sticker-btn.peel-off {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s ease;
}

/* Peel-Off Animation (3D Rotation) */
.wcc-anim-peel .wcc-sticker-btn.peel-off {
    transform: perspective(600px) rotateY(90deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==================== DECORATIVE ELEMENTS ==================== */

.wcc-decorative {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.4;
    transform: translate(var(--wcc-deco-offset-x, 0), var(--wcc-deco-offset-y, 0));
}

.wcc-decorative.wcc-deco-below {
    z-index: 1;
}

.wcc-decorative.wcc-deco-above {
    z-index: 50;
}

/* 3D Effect */
.wcc-decorative.wcc-deco-3d::before,
.wcc-decorative.wcc-deco-3d::after {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Circles Style */
.wcc-decorative.wcc-deco-circles::before,
.wcc-decorative.wcc-deco-circles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.wcc-decorative.wcc-deco-circles::before {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
    background: radial-gradient(circle, var(--wcc-deco-color1) 0%, transparent 70%);
}

.wcc-decorative.wcc-deco-circles::after {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: -30px;
    background: radial-gradient(circle, var(--wcc-deco-color2) 0%, transparent 70%);
}

/* Blobs Style */
.wcc-decorative.wcc-deco-blobs::before,
.wcc-decorative.wcc-deco-blobs::after {
    content: '';
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(40px);
}

.wcc-decorative.wcc-deco-blobs::before {
    width: 250px;
    height: 250px;
    top: -80px;
    right: -80px;
    background: var(--wcc-deco-color1);
}

.wcc-decorative.wcc-deco-blobs::after {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: -60px;
    background: var(--wcc-deco-color2);
}

/* Waves Style */
.wcc-decorative.wcc-deco-waves::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, var(--wcc-deco-color1) 0px, transparent 10px, transparent 20px, var(--wcc-deco-color2) 30px);
    opacity: 0.3;
}

/* Dots Pattern Style */
.wcc-decorative.wcc-deco-dots::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--wcc-deco-color1) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.4;
}

/* ==================== CODE DISPLAY MODE ==================== */

.wcc-code-display {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wcc-code-display:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.wcc-code {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
}

.wcc-copy-hint {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.7);
    margin-left: 8px;
    font-weight: 500;
}

/* ==================== Z-INDEX LAYERING ==================== */

.wcc-scallop-left,
.wcc-scallop-right,
.wcc-scallop-top,
.wcc-scallop-bottom,
.wcc-notch-top,
.wcc-notch-bottom {
    z-index: 30;
}

.wcc-content {
    z-index: 5;
}

.wcc-offer,
.wcc-description,
.wcc-timer {
    z-index: 6;
}

.wcc-badge {
    z-index: 7;
}

.wcc-action {
    z-index: 8;
}

.wcc-sticker-btn,
.wcc-code-pill {
    z-index: 9;
}

.wcc-divider-line {
    z-index: 100;
}

.wcc-scissor-icon {
    z-index: 101;
}

/* ==================== COPY FEEDBACK ==================== */

.wcc-copied-feedback {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    z-index: 999;
}

.wcc-copied-feedback.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* ==================== RESPONSIVE VISIBILITY ==================== */

@media (min-width: 1025px) {
    .wcc-hide-desktop-yes .wcc-banner {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .wcc-hide-tablet-yes .wcc-banner {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .wcc-hide-mobile-yes .wcc-banner {
        display: none !important;
    }
}

/* ==================== RESPONSIVE LAYOUT ==================== */

@media (max-width: 500px) {
    .wcc-banner {
        flex-direction: row !important;
        height: 65px;
        width: 100%;
        max-width: 100%;
    }

    .wcc-content {
        padding-left: 12px;
    }

    .wcc-badge {
        font-size: 6px;
        padding: 1px 4px;
    }

    .wcc-offer {
        font-size: 16px;
    }

    .wcc-description {
        font-size: 7px;
    }

    .wcc-action {
        flex: 4;
    }

    .wcc-code-pill {
        width: 85px;
        height: 26px;
    }

    .wcc-sticker-content {
        font-size: 8px;
        min-width: 85px;
        gap: 3px;
    }

    .wcc-actual-code {
        font-size: 10px;
    }

    .wcc-expiry-bottom {
        font-size: 5px;
    }

    .wcc-scissor-icon {
        width: 16px;
        height: 16px;
    }

    .wcc-scissor-icon svg {
        width: 8px;
        height: 8px;
    }

    .wcc-timer {
        font-size: 10px;
    }

    .wcc-timer span {
        font-size: 8px;
        padding: 1px 3px;
    }
}

@media (max-width: 380px) {
    .wcc-offer {
        font-size: 14px;
    }

    .wcc-code-pill {
        width: 70px;
        height: 24px;
    }

    .wcc-sticker-content {
        font-size: 7px;
        min-width: 70px;
    }

    .wcc-actual-code {
        font-size: 9px;
    }
}