/* ============================================================
 * Floating cart bar (desktop) — detached, rounded, centered.
 * Overrides the old edge-anchored .desktop-footer positioning.
 * ============================================================ */
.df-cartbar.desktop-footer,
.df-cartbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 22px;
    margin-left: auto;
    margin-right: auto;
    transform: none !important;
    width: min(640px, calc(100% - 48px));
    background: transparent;
    z-index: 1000;
    pointer-events: none;
}

.df-cartbar-card {
    display: block;
    pointer-events: auto;
    text-decoration: none !important;
    color: #fff;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rd-green-2, #2c5d40) 0%, var(--rd-green, #1f3d2e) 100%);
    box-shadow: 0 18px 44px rgba(20, 40, 30, 0.30), 0 2px 6px rgba(20, 40, 30, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.22s var(--rd-easing, cubic-bezier(0.22, 0.61, 0.36, 1)),
                box-shadow 0.22s ease;
}
.df-cartbar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(20, 40, 30, 0.36), 0 3px 8px rgba(20, 40, 30, 0.20);
    color: #fff;
}

/* Offer strip — populated by JS; collapses when empty */
.df-cartbar-offer {
    display: block;
    background: var(--rd-orange, #f08a3a);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: max-height 0.2s ease, padding 0.2s ease;
}
.df-cartbar-offer:not(:empty) {
    padding: 6px 14px;
    max-height: 40px;
}

.df-cartbar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px 12px 18px;
}

/* Shopping-bag glyph + count badge */
.df-cartbar-bag {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 20px;
    color: #fff;
}
.df-cartbar-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--rd-orange, #f08a3a);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--rd-green, #1f3d2e);
}

/* Message + amount block */
.df-cartbar-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.df-cartbar-msg {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.df-cartbar-amt {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
}
.df-cartbar-amt strong {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.df-cartbar-amt em {
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    color: var(--rd-gold, #d4a849);
}

/* CTA pill */
.df-cartbar-cta,
.btn.df-cartbar-cta.footercartbtn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff !important;
    color: var(--rd-green, #1f3d2e) !important;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    border-radius: 999px !important;
    padding: 9px 18px !important;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.18s ease;
}
.df-cartbar-card:hover .df-cartbar-cta {
    background: var(--rd-gold, #d4a849) !important;
    color: var(--rd-green, #1f3d2e) !important;
}
.df-cartbar-cta i {
    font-size: 12px;
    transition: transform 0.18s ease;
}
.df-cartbar-card:hover .df-cartbar-cta i {
    transform: translateX(3px);
}

@media (max-width: 575px) {
    .df-cartbar { width: calc(100% - 24px); bottom: 14px; }
    .df-cartbar-row { gap: 12px; padding: 10px 12px; }
    .df-cartbar-bag { width: 40px; height: 40px; font-size: 18px; }
    .df-cartbar-cta { padding: 8px 14px !important; font-size: 12.5px; }
}
