/* ==========================================================================
   WooCommerce Daily Progress Bar – Frontend Styles  v4.0
   Bulletproof Theme Isolation
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --wcdp-primary: #3094AC;
    --wcdp-primary-light: rgba(48, 148, 172, 0.10);
    --wcdp-accent: #ffc215;
    --wcdp-accent-light: rgba(255, 194, 21, 0.15);
    --wcdp-bg: #ffffff;
    --wcdp-bg-soft: #fbf8f4;
    --wcdp-text: #55524e;
    --wcdp-text-muted: #7e8890;
    --wcdp-border: #f4ece1;
    --wcdp-track-bg: #f1ede8;
    --wcdp-shadow: 0px 5px 30px rgba(0, 0, 0, 0.08);
    --wcdp-shadow-hover: 0px 8px 35px rgba(0, 0, 0, 0.12);
    --wcdp-radius: 10px;
    --wcdp-radius-sm: 8px;
    --wcdp-font-heading: "poppinsbold", "Poppins", sans-serif;
    --wcdp-font-body: "open_sansregular", "Open Sans", sans-serif;

    /* Fluid spacing */
    --wcdp-pad-x: 32px;
    --wcdp-pad-y: 28px;
    --wcdp-gap: 12px;
}

/* ==========================================================================
   CONTAINER  –  Double-class specificity beats theme selectors
   ========================================================================== */
#wcdp-daily-progress-bar.wcdp-container {
    /*
     * The Alayn NL theme sets html { font-size: 62.5% } (10px) and
     * body { font: 300 11px/1.4 … }. Its global reset also applies
     * `font: inherit` to div, span, li, nav, h3, h4, strong, ul …
     * We must use the `font` shorthand ourselves to override it fully.
     */
    font: 400 16px/1.5 var(--wcdp-font-body) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    word-spacing: normal !important;
    white-space: normal !important;
    text-align: left !important;
    color: var(--wcdp-text) !important;
    width: 100%;
    box-sizing: border-box !important;
    margin: 32px auto !important;
    padding: var(--wcdp-pad-y) var(--wcdp-pad-x) calc(var(--wcdp-pad-y) - 4px) !important;
    background: var(--wcdp-bg) !important;
    border: 1px solid var(--wcdp-border) !important;
    border-radius: var(--wcdp-radius) !important;
    box-shadow: var(--wcdp-shadow) !important;
    transition: box-shadow 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Kill any float / overflow the theme wrapper may impose */
    float: none !important;
    clear: both !important;
    overflow: visible !important;
    /* Ensure this isn't shrunk by parent flex/grid */
    min-height: 0 !important;
    min-width: 0 !important;
}

#wcdp-daily-progress-bar.wcdp-container:hover {
    box-shadow: var(--wcdp-shadow-hover) !important;
}

/* ---------- Box-model reset for ALL descendants ---------- */
#wcdp-daily-progress-bar.wcdp-container *,
#wcdp-daily-progress-bar.wcdp-container *::before,
#wcdp-daily-progress-bar.wcdp-container *::after {
    box-sizing: border-box !important;
    text-decoration: none !important;
}

/*
 * Nuclear reset for every inline/block descendant.
 * This must beat the theme's bare-element selectors AND the
 * .content_boxes context selectors.
 */
#wcdp-daily-progress-bar.wcdp-container div,
#wcdp-daily-progress-bar.wcdp-container span,
#wcdp-daily-progress-bar.wcdp-container nav,
#wcdp-daily-progress-bar.wcdp-container ul,
#wcdp-daily-progress-bar.wcdp-container li,
#wcdp-daily-progress-bar.wcdp-container a,
#wcdp-daily-progress-bar.wcdp-container p {
    font: 400 16px/1.5 var(--wcdp-font-body) !important;
    color: var(--wcdp-text) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-indent: 0 !important;
    list-style: none !important;
    float: none !important;
    text-align: left !important;
    vertical-align: baseline !important;
}

#wcdp-daily-progress-bar.wcdp-container h1,
#wcdp-daily-progress-bar.wcdp-container h2,
#wcdp-daily-progress-bar.wcdp-container h3,
#wcdp-daily-progress-bar.wcdp-container h4,
#wcdp-daily-progress-bar.wcdp-container h5,
#wcdp-daily-progress-bar.wcdp-container h6 {
    font: 700 16px/1.4 var(--wcdp-font-heading) !important;
    color: var(--wcdp-text) !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    border: none !important;
    background: none !important;
    text-align: left !important;
    float: none !important;
    position: static !important;
    /* Reset any pseudo content the theme may add via h3:before / h3:after */
}

#wcdp-daily-progress-bar.wcdp-container h3::before,
#wcdp-daily-progress-bar.wcdp-container h3::after,
#wcdp-daily-progress-bar.wcdp-container h4::before,
#wcdp-daily-progress-bar.wcdp-container h4::after {
    content: none !important;
    display: none !important;
}

#wcdp-daily-progress-bar.wcdp-container strong {
    font-weight: 700 !important;
    font-family: inherit !important;
    color: inherit !important;
}

#wcdp-daily-progress-bar.wcdp-container ul {
    list-style: none !important;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
#wcdp-daily-progress-bar.wcdp-container .wcdp-header {
    margin-bottom: 20px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-header-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    border: none !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-title {
    font: 700 1.1em/1.4 var(--wcdp-font-heading) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--wcdp-text) !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
    padding: 0 !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-title-icon {
    font: 400 1.15em/1 var(--wcdp-font-body) !important;
    color: inherit !important;
}

/* ---------- Badge ---------- */
#wcdp-daily-progress-bar.wcdp-container .wcdp-badge {
    font: 700 0.75em/1.5 var(--wcdp-font-body) !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    background: var(--wcdp-primary-light) !important;
    color: var(--wcdp-primary) !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    margin: 0 !important;
    border: none !important;
    display: inline-block !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-badge--complete {
    background: var(--wcdp-accent) !important;
    color: #55524e !important;
    animation: wcdp-pulse 2s ease-in-out infinite;
}

@keyframes wcdp-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.85;
        transform: scale(1.04);
    }
}

/* ==========================================================================
   AMOUNTS
   ========================================================================== */
#wcdp-daily-progress-bar.wcdp-container .wcdp-amounts {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-current-amount {
    /* clamp() for fluid type: min 24px, ideal 4.5vw, max 30px */
    font: 700 clamp(24px, 4.5vw, 30px)/1.15 var(--wcdp-font-heading) !important;
    letter-spacing: -0.03em !important;
    color: var(--wcdp-primary) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--wcdp-primary) !important;
    background-clip: unset !important;
    padding: 0 !important;
    margin: 0 !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-separator {
    font: 300 1.1em/1.5 var(--wcdp-font-body) !important;
    color: var(--wcdp-text-muted) !important;
    padding: 0 !important;
    margin: 0 !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-target-amount {
    font: 600 clamp(15px, 2.5vw, 18px)/1.5 var(--wcdp-font-body) !important;
    color: var(--wcdp-text-muted) !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   PROGRESS TRACK
   ========================================================================== */
#wcdp-daily-progress-bar.wcdp-container .wcdp-progress-track {
    background: var(--wcdp-track-bg) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    position: relative !important;
    border: none !important;
    display: block !important;
    width: 100% !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-progress-fill {
    height: 100% !important;
    width: 0;
    border-radius: 999px !important;
    background: linear-gradient(90deg, var(--bar-color), color-mix(in srgb, var(--bar-color) 80%, #ffc215)) !important;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    display: block !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-progress-fill.wcdp-animated {
    width: var(--fill-width) !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-progress-shimmer {
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.35) 50%,
            transparent 100%) !important;
    animation: wcdp-shimmer 2.5s ease-in-out infinite;
}

@keyframes wcdp-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ==========================================================================
   REMAINING TEXT
   ========================================================================== */
#wcdp-daily-progress-bar.wcdp-container .wcdp-remaining {
    font: 400 0.85em/1.6 var(--wcdp-font-body) !important;
    color: var(--wcdp-text-muted) !important;
    margin: 0 0 22px 0 !important;
    padding: 0 !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-remaining strong {
    color: var(--wcdp-primary) !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   PAYMENTS SECTION
   ========================================================================== */
#wcdp-daily-progress-bar.wcdp-container .wcdp-payments {
    border-top: 1px solid var(--wcdp-border) !important;
    padding: 18px 0 0 0 !important;
    margin: 0 !important;
    background: none !important;
    display: block !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payments-title {
    font: 700 0.9em/1.4 var(--wcdp-font-heading) !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--wcdp-text) !important;
    letter-spacing: -0.02em !important;
    position: static !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payments-icon {
    font: 400 1em/1 var(--wcdp-font-body) !important;
    color: inherit !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payments-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--wcdp-gap) !important;
    border: none !important;
    background: none !important;
}

/* ==========================================================================
   PAYMENT ITEM
   ========================================================================== */
#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    background: var(--wcdp-bg-soft) !important;
    border: 1px solid var(--wcdp-border) !important;
    border-radius: var(--wcdp-radius-sm) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    margin: 0 !important;
    font: 400 16px/1.5 var(--wcdp-font-body) !important;
    /* Staggered entrance */
    animation: wcdp-slide-up 0.35s ease-out both;
    list-style: none !important;
    float: none !important;
    width: auto !important;
}

/* Stagger each payment item */
#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item:nth-child(1) {
    animation-delay: 0.04s;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item:nth-child(2) {
    animation-delay: 0.08s;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item:nth-child(3) {
    animation-delay: 0.12s;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item:nth-child(4) {
    animation-delay: 0.16s;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item:nth-child(5) {
    animation-delay: 0.20s;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item:nth-child(6) {
    animation-delay: 0.24s;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item:nth-child(7) {
    animation-delay: 0.28s;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item:nth-child(8) {
    animation-delay: 0.32s;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item:nth-child(9) {
    animation-delay: 0.36s;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item:nth-child(10) {
    animation-delay: 0.40s;
}

@keyframes wcdp-slide-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--wcdp-primary) !important;
}

/* Avatar */
#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-avatar {
    flex-shrink: 0 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: var(--wcdp-primary) !important;
    color: #fff !important;
    font: 700 0.85em/1 var(--wcdp-font-heading) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Details */
#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-details {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-name {
    font: 600 0.85em/1.4 var(--wcdp-font-body) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: var(--wcdp-text) !important;
    padding: 0 !important;
    margin: 0 !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-time {
    font: 400 0.72em/1.3 var(--wcdp-font-body) !important;
    color: var(--wcdp-text-muted) !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Amount */
#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-amount {
    font: 700 0.9em/1.5 var(--wcdp-font-heading) !important;
    white-space: nowrap !important;
    text-align: right !important;
    color: var(--wcdp-primary) !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Status Badge */
#wcdp-daily-progress-bar.wcdp-container .wcdp-payment-status {
    font: 600 0.65em/1.6 var(--wcdp-font-body) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-status--completed {
    background: rgba(48, 148, 172, 0.12) !important;
    color: #3094AC !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-status--processing {
    background: var(--wcdp-accent-light) !important;
    color: #92400e !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-status--on-hold {
    background: #fef3c7 !important;
    color: #92400e !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-status--pending {
    background: #fce7f3 !important;
    color: #9d174d !important;
}

#wcdp-daily-progress-bar.wcdp-container .wcdp-status--refunded {
    background: #f1ede8 !important;
    color: var(--wcdp-text-muted) !important;
}


/* ==========================================================================
   CONTENT_BOXES CONTEXT OVERRIDES
   These selectors match or exceed the specificity of the theme's
   .content_boxes h3, .content_boxes ul li, .content_boxes p, etc.
   ========================================================================== */
.content_boxes #wcdp-daily-progress-bar.wcdp-container h3,
.content_boxes #wcdp-daily-progress-bar.wcdp-container h4 {
    font: 700 16px/1.4 var(--wcdp-font-heading) !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--wcdp-text) !important;
    position: static !important;
}

.content_boxes #wcdp-daily-progress-bar.wcdp-container h3::before,
.content_boxes #wcdp-daily-progress-bar.wcdp-container h3::after,
.content_boxes #wcdp-daily-progress-bar.wcdp-container h4::before,
.content_boxes #wcdp-daily-progress-bar.wcdp-container h4::after {
    content: none !important;
    display: none !important;
}

.content_boxes #wcdp-daily-progress-bar.wcdp-container .wcdp-title {
    font: 700 1.1em/1.4 var(--wcdp-font-heading) !important;
    display: flex !important;
    padding: 0 !important;
}

.content_boxes #wcdp-daily-progress-bar.wcdp-container .wcdp-payments-title {
    font: 700 0.9em/1.4 var(--wcdp-font-heading) !important;
    display: flex !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
}

.content_boxes #wcdp-daily-progress-bar.wcdp-container ul {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.content_boxes #wcdp-daily-progress-bar.wcdp-container ul li {
    font: 400 16px/1.5 var(--wcdp-font-body) !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    float: none !important;
}

.content_boxes #wcdp-daily-progress-bar.wcdp-container ul li.wcdp-payment-item {
    display: grid !important;
    padding: 10px 14px !important;
    background: var(--wcdp-bg-soft) !important;
    border: 1px solid var(--wcdp-border) !important;
}

.content_boxes #wcdp-daily-progress-bar.wcdp-container p,
.content_boxes #wcdp-daily-progress-bar.wcdp-container a {
    font: 400 16px/1.5 var(--wcdp-font-body) !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--wcdp-text) !important;
    text-decoration: none !important;
}

.content_boxes #wcdp-daily-progress-bar.wcdp-container .wcdp-remaining {
    font: 400 0.85em/1.6 var(--wcdp-font-body) !important;
    color: var(--wcdp-text-muted) !important;
    margin: 0 0 22px 0 !important;
    padding: 0 !important;
}


/* ==========================================================================
   GUTENBERG WRAP CONTEXT OVERRIDES
   ========================================================================== */
.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container h3,
.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container h4 {
    font: 700 16px/1.4 var(--wcdp-font-heading) !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--wcdp-text) !important;
    position: static !important;
}

.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container h3::before,
.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container h3::after,
.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container h4::before,
.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container h4::after {
    content: none !important;
    display: none !important;
}

.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container .wcdp-title {
    font: 700 1.1em/1.4 var(--wcdp-font-heading) !important;
    display: flex !important;
    padding: 0 !important;
}

.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container .wcdp-payments-title {
    font: 700 0.9em/1.4 var(--wcdp-font-heading) !important;
    display: flex !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
}

.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container ul {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container ul li {
    font: 400 16px/1.5 var(--wcdp-font-body) !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    float: none !important;
}

.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container ul li.wcdp-payment-item {
    display: grid !important;
    padding: 10px 14px !important;
    background: var(--wcdp-bg-soft) !important;
    border: 1px solid var(--wcdp-border) !important;
}

.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container p,
.gutenberg__wrap #wcdp-daily-progress-bar.wcdp-container a {
    font: 400 16px/1.5 var(--wcdp-font-body) !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--wcdp-text) !important;
}


/* ==========================================================================
   BLESSING FULL CONTENT CONTEXT OVERRIDES
   ========================================================================== */
.blessing__full_content #wcdp-daily-progress-bar.wcdp-container h3,
.blessing__full_content #wcdp-daily-progress-bar.wcdp-container h4 {
    font: 700 16px/1.4 var(--wcdp-font-heading) !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--wcdp-text) !important;
    position: static !important;
}

.blessing__full_content #wcdp-daily-progress-bar.wcdp-container ul {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.blessing__full_content #wcdp-daily-progress-bar.wcdp-container ul li {
    font: 400 16px/1.5 var(--wcdp-font-body) !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.blessing__full_content #wcdp-daily-progress-bar.wcdp-container p,
.blessing__full_content #wcdp-daily-progress-bar.wcdp-container a {
    font: 400 16px/1.5 var(--wcdp-font-body) !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--wcdp-text) !important;
}


/* ==========================================================================
   RESPONSIVE — TABLET  (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --wcdp-pad-x: 24px;
        --wcdp-pad-y: 24px;
        --wcdp-gap: 10px;
    }

    #wcdp-daily-progress-bar.wcdp-container {
        margin: 20px auto !important;
        border-radius: 8px !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-header {
        margin-bottom: 16px !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-current-amount {
        font-size: 26px !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-target-amount {
        font-size: 1em !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-remaining {
        margin-bottom: 18px !important;
    }

    /* Payment items: keep the grid but tighten padding */
    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item {
        padding: 8px 12px !important;
        gap: 10px !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8em !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-name {
        font-size: 0.82em !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-amount {
        font-size: 0.85em !important;
    }
}


/* ==========================================================================
   RESPONSIVE — MOBILE  (≤ 480px)
   ========================================================================== */
@media (max-width: 480px) {
    :root {
        --wcdp-pad-x: 18px;
        --wcdp-pad-y: 20px;
        --wcdp-gap: 8px;
    }

    #wcdp-daily-progress-bar.wcdp-container {
        margin: 12px !important;
        border-radius: 8px !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-header-top {
        gap: 6px !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-title {
        font-size: 0.95em !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-badge {
        font-size: 0.7em !important;
        padding: 2px 8px !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-current-amount {
        font-size: 22px !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-separator {
        font-size: 0.95em !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-target-amount {
        font-size: 0.92em !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-remaining {
        font-size: 0.78em !important;
        margin-bottom: 16px !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-payments-title {
        font-size: 0.85em !important;
        margin-bottom: 10px !important;
    }

    /* Switch payment item to a 2-row layout on narrow screens */
    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-item {
        grid-template-columns: auto 1fr auto !important;
        grid-template-rows: auto auto !important;
        gap: 4px 10px !important;
        padding: 10px 12px !important;
    }

    /* Avatar spans both rows */
    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-avatar {
        grid-row: 1 / 3 !important;
        grid-column: 1 !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 0.8em !important;
    }

    /* Name + time row */
    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-details {
        grid-row: 1 !important;
        grid-column: 2 !important;
    }

    /* Amount aligned right on first row */
    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-amount {
        grid-row: 1 !important;
        grid-column: 3 !important;
        font-size: 0.85em !important;
    }

    /* Status badge on second row, spanning cols 2-3 */
    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-status {
        grid-row: 2 !important;
        grid-column: 2 / 4 !important;
        justify-self: start !important;
        font-size: 0.6em !important;
    }
}


/* ==========================================================================
   RESPONSIVE — SMALL MOBILE  (≤ 360px)
   ========================================================================== */
@media (max-width: 360px) {
    :root {
        --wcdp-pad-x: 14px;
        --wcdp-pad-y: 16px;
    }

    #wcdp-daily-progress-bar.wcdp-container {
        margin: 8px !important;
        border-radius: 8px !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-title {
        font-size: 0.88em !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-current-amount {
        font-size: 20px !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-target-amount {
        font-size: 0.85em !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-name {
        font-size: 0.78em !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-time {
        font-size: 0.68em !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-amount {
        font-size: 0.8em !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-payment-avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.75em !important;
    }
}


/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
    #wcdp-daily-progress-bar.wcdp-container {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-progress-shimmer {
        display: none !important;
    }

    #wcdp-daily-progress-bar.wcdp-container .wcdp-progress-fill {
        transition: none !important;
        width: var(--fill-width) !important;
    }
}