/* ======================================
   Business Detail Discounts - PixShow
====================================== */

.business-discount-section {
    scroll-margin-top: 115px;
}

.business-discount-card {
    border: 1px solid rgba(124, 58, 237, .15);
    background:
        linear-gradient(
            145deg,
            rgba(239, 246, 255, .88),
            rgba(250, 245, 255, .9)
        );
}

.business-discount-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.business-discount-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #7c3aed;
    font-size: 10px;
    font-weight: 900;
}

.business-discount-card-header h3 {
    margin: 0 0 5px;
    color: #172033;
    font-size: 16px;
    font-weight: 900;
}

.business-discount-card-header p {
    margin: 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.8;
}

.business-discount-count {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff;
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, .12);
    font-size: 9px;
    font-weight: 900;
}

.business-discounts-list {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.business-discount-item {
    padding: 13px;
    border: 1px solid #e7eaf4;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow:
        0 7px 18px rgba(15, 23, 42, .04);
}

.business-discount-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.business-discount-value {
    padding: 5px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 9px;
    font-weight: 900;
}

.business-discount-occasion {
    color: #7c3aed;
    font-size: 9px;
    font-weight: 800;
}

.business-discount-item h4 {
    margin: 11px 0 7px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.8;
}

.business-discount-description {
    margin: 0 0 9px;
    color: #64748b;
    font-size: 9px;
    line-height: 1.9;
}

.business-discount-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #64748b;
    font-size: 9px;
}

.business-discount-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.business-discount-action {
    width: 100%;
    margin-top: 11px;
    padding: 10px;
    border: 0;
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.business-discount-action.claimed {
    background: #eef4ff;
    color: #2563eb;
}

.business-discount-loading {
    grid-column: 1 / -1;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #94a3b8;
    font-size: 10px;
}

.business-discount-modal {
    direction: rtl;
    text-align: right;
}

.business-discount-modal-value {
    width: max-content;
    margin: 0 auto 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-weight: 900;
}

.business-discount-modal > p {
    color: #64748b;
    line-height: 1.9;
    font-size: 11px;
}

.business-discount-modal-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
    padding: 11px;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 10px;
}

.business-discount-terms {
    margin-top: 11px;
    padding: 10px;
    border-radius: 12px;
    background: #fff7ed;
}

.business-discount-terms strong {
    display: block;
    color: #c2410c;
    font-size: 10px;
}

.business-discount-terms p {
    margin: 5px 0 0;
    color: #7c2d12;
    line-height: 1.8;
    font-size: 9px;
}

.business-code-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.business-code-copy {
    width: 100%;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
    border: 1px dashed #60a5fa;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
}

.business-code-copy strong {
    letter-spacing: 2px;
    font-size: 18px;
}

.business-code-copy:disabled {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #94a3b8;
}

.business-code-status {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.business-code-status.active {
    background: #dcfce7;
    color: #15803d;
}

.business-code-status.used {
    background: #f3e8ff;
    color: #7c3aed;
}

.business-code-status.expired,
.business-code-status.cancelled {
    background: #f1f5f9;
    color: #64748b;
}

.business-code-result p,
.business-code-result small {
    margin: 0;
    color: #64748b;
    font-size: 10px;
}

body.dark .business-discount-card {
    border-color: rgba(124, 58, 237, .3);
    background:
        linear-gradient(
            145deg,
            rgba(30, 41, 59, .94),
            rgba(46, 16, 101, .35)
        );
}

body.dark .business-discount-item {
    background: #111827;
    border-color: rgba(148, 163, 184, .15);
}

body.dark .business-discount-card-header h3,
body.dark .business-discount-item h4 {
    color: #f1f5f9;
}

@media (max-width: 620px) {
    .business-discounts-list {
        grid-template-columns: 1fr;
    }

    .business-discount-card-header {
        flex-direction: column;
    }
}
