/* =========================================================
   1. OUTER WRAPPER & ALIGNMENT
   ========================================================= */
.ccb-countdown-outer-wrapper {
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.ccb-countdown-outer-wrapper.ccb-align-center {
    display: flex !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 24px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: center;
}

.ccb-countdown-outer-wrapper.ccb-align-left {
    display: flex !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    margin-top: 24px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: center;
}

.ccb-countdown-outer-wrapper.ccb-align-right {
    display: flex !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    margin-top: 24px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: center;
}

/* Outer Wrapper Shapes */
.ccb-outer-shape-square {
    border-radius: 0 !important;
}

.ccb-outer-shape-rounded {
    border-radius: 24px;
}

.ccb-outer-shape-pill {
    border-radius: 9999px;
    padding-left: clamp(20px, 4vw, 48px) !important;
    padding-right: clamp(20px, 4vw, 48px) !important;
}

/* FULL CIRCLE: Fluid 1:1 Aspect Ratio */
.ccb-outer-shape-full-circle {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex-shrink: 0;
    max-width: 94vw !important;
    box-sizing: border-box !important;
}

.ccb-outer-none {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Outer Drop Shadows */
.ccb-outer-shadow-none {
    box-shadow: none;
}
.ccb-outer-shadow-subtle {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}
.ccb-outer-shadow-medium {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}
.ccb-outer-shadow-deep {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 0 12px 16px -8px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   2. INNER ROW CONTAINER
   ========================================================= */
.ccb-countdown-wrapper {
    display: flex;
    gap: clamp(8px, 1.8vw, 16px);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    z-index: 1;
    width: 100%;
}

/* 2x2 grid for full circle outer wrapper */
.ccb-layout-circle-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(6px, 1.8vw, 14px) !important;
    justify-content: center !important;
    align-content: center !important;
    align-items: center !important;
    margin: auto !important;
    width: 80% !important;
    max-width: 80% !important;
}

/* =========================================================
   3. INDIVIDUAL UNIT CARDS (Fully Fluid Responsive Geometry)
   ========================================================= */
.ccb-unit-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    flex-shrink: 1;
    aspect-ratio: 1 / 1; /* Guarantees circle/square symmetry remains intact */
}

.ccb-num {
    font-weight: 700;
    line-height: 1;
}

.ccb-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

/* Unit Shapes */
.ccb-shape-square .ccb-unit-box {
    border-radius: 0;
}

.ccb-shape-rounded .ccb-unit-box {
    border-radius: clamp(6px, 1.5vw, 14px);
}

.ccb-shape-circle .ccb-unit-box {
    border-radius: 50%;
}

/* Unit Shadows */
.ccb-unit-shadow-none .ccb-unit-box {
    box-shadow: none;
}
.ccb-unit-shadow-subtle .ccb-unit-box {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.ccb-unit-shadow-medium .ccb-unit-box {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.ccb-unit-shadow-deep .ccb-unit-box {
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.22);
}

/* Sizing Options: Using responsive clamp() and viewport limits */
.ccb-size-small .ccb-unit-box {
    width: clamp(48px, 15vw, 70px);
    height: clamp(48px, 15vw, 70px);
    padding: clamp(3px, 1vw, 6px);
}
.ccb-size-small .ccb-num {
    font-size: clamp(0.95rem, 3.2vw, 1.3rem);
}
.ccb-size-small .ccb-label {
    font-size: clamp(0.5rem, 1.5vw, 0.65rem);
    margin-top: 2px;
}

.ccb-size-medium .ccb-unit-box {
    width: clamp(64px, 19vw, 105px);
    height: clamp(64px, 19vw, 105px);
    padding: clamp(6px, 1.5vw, 10px);
}
.ccb-size-medium .ccb-num {
    font-size: clamp(1.2rem, 4.2vw, 2rem);
}
.ccb-size-medium .ccb-label {
    font-size: clamp(0.55rem, 1.8vw, 0.75rem);
    margin-top: 3px;
}

.ccb-size-large .ccb-unit-box {
    width: clamp(75px, 21vw, 145px);
    height: clamp(75px, 21vw, 145px);
    padding: clamp(8px, 2vw, 14px);
}
.ccb-size-large .ccb-num {
    font-size: clamp(1.5rem, 5.5vw, 2.75rem);
}
.ccb-size-large .ccb-label {
    font-size: clamp(0.6rem, 2vw, 0.85rem);
    margin-top: 4px;
}

/* When placed inside full circle wrapper, scale unit boxes proportionally */
.ccb-layout-circle-grid .ccb-unit-box {
    width: 100% !important;
    height: auto !important;
    max-width: 130px;
    margin: 0 auto;
}

/* Mobile Screens (<= 480px) */
@media (max-width: 480px) {
    .ccb-countdown-wrapper {
        gap: 6px;
    }
    .ccb-unit-box {
        max-width: 22vw;
    }
    .ccb-size-large .ccb-unit-box {
        width: clamp(64px, 20vw, 85px);
        height: clamp(64px, 20vw, 85px);
    }
    .ccb-size-medium .ccb-unit-box {
        width: clamp(56px, 18vw, 75px);
        height: clamp(56px, 18vw, 75px);
    }
    .ccb-size-small .ccb-unit-box {
        width: clamp(46px, 15vw, 60px);
        height: clamp(46px, 15vw, 60px);
    }
}

.ccb-expired-message {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 8px;
    text-align: center;
}