/* TND Creative Shipping — Frontend Preview Styles */

/* ── Main Banner ── */
.tnd-cs-banner {
    background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 12px 0 16px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(15, 52, 96, 0.25);
    overflow: hidden;
}

.tnd-cs-anim {
    animation: tnd-slide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tnd-slide-in {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.tnd-cs-banner-inner { display: flex; flex-direction: column; gap: 10px; }

.tnd-cs-zone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tnd-cs-zone-tag {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tnd-cs-rate {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.tnd-cs-rate small {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.75;
    display: block;
    text-align: right;
}

.tnd-cs-options-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tnd-cs-opt {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    transition: background 0.2s;
    white-space: nowrap;
}

.tnd-cs-opt--delivery { background: rgba(255,255,255,0.18); }
.tnd-cs-opt--pickup   { background: rgba(255,200,50,0.2); border-color: rgba(255,200,50,0.35); }

/* ── Free Shipping Banner ── */
.tnd-cs-free {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
}

.tnd-cs-free .tnd-cs-zone-tag {
    background: #22c55e;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ── Self Pickup default banner style ── */
.tnd-cs-pickup {
    background: #F1EFE8;
    border: 0.5px solid #D3D1C7;
}

.tnd-cs-hint-row {
    font-size: 12px;
    color: #5F5E5A;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.tnd-cs-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, #0f3460, #533483);
    color: #fff;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 99999;
    text-align: center;
    line-height: 1.3;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.tnd-cs-float--visible {
    opacity: 1;
    transform: translateX(0);
}

.tnd-cs-float small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

.tnd-cs-float--free {
    background: #15803d;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .tnd-cs-zone-row  { flex-direction: column; align-items: flex-start; }
    .tnd-cs-rate      { font-size: 18px; }
    .tnd-cs-opt       { font-size: 11px; padding: 4px 10px; }
    .tnd-cs-float     { bottom: 60px; right: 12px; font-size: 13px; padding: 10px 14px; }
}
