/* === LL_FILE_START ===
 * File: smart-offer-dashboard.css
 * Description: Business-dashboard Smart Coupon setup, metrics, campaign actions, and merchant redemption tools.
 */
.ll-smart-offer-dashboard {
    margin-top: 24px;
}

.ll-smart-offer-dashboard__intro {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 1px solid #dbe3ec;
    border-radius: 9px;
    background: #f8fafc;
}

.ll-smart-offer-dashboard__intro h3 {
    margin: 0 0 6px;
}

.ll-smart-offer-dashboard__intro p {
    max-width: 760px;
    margin: 0;
}

.ll-smart-offer-dashboard__price {
    min-width: 100px;
    text-align: right;
}

.ll-smart-offer-dashboard__price strong,
.ll-smart-offer-dashboard__price span {
    display: block;
}

.ll-smart-offer-dashboard__price strong {
    font-size: 24px;
}

.ll-smart-offer-dashboard__admin-link {
    text-align: right;
}

.ll-smart-offer-campaign-card {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
}

.ll-smart-offer-campaign-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ll-smart-offer-campaign-card__header h4 {
    margin: 0 0 6px;
}

.ll-smart-offer-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
}

.ll-smart-offer-status--active {
    background: #dcfce7;
    color: #166534;
}

.ll-smart-offer-status--paused {
    background: #fef3c7;
    color: #92400e;
}

.ll-smart-offer-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(90px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.ll-smart-offer-metric {
    padding: 11px;
    border-radius: 7px;
    background: #f1f5f9;
    text-align: center;
}

.ll-smart-offer-metric__value,
.ll-smart-offer-metric__label {
    display: block;
}

.ll-smart-offer-metric__value {
    font-size: 20px;
    font-weight: 800;
}

.ll-smart-offer-metric__label {
    margin-top: 3px;
    color: #475569;
    font-size: 12px;
}

.ll-smart-offer-redeem {
    margin-top: 18px;
    padding: 16px;
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
}

.ll-smart-offer-redeem h5 {
    margin: 0 0 12px;
}

.ll-smart-offer-lookup-form {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.ll-smart-offer-lookup-form label,
.ll-smart-offer-sale-fields label {
    display: grid;
    gap: 4px;
    font-weight: 700;
}

.ll-smart-offer-lookup-form input {
    min-width: 190px;
    text-transform: uppercase;
}

.ll-smart-offer-lookup-result {
    margin-top: 12px;
}

.ll-smart-offer-lookup-result.is-error,
.ll-smart-offer-confirm-status.is-error {
    color: #b91c1c;
}

.ll-smart-offer-confirm-status.is-success {
    color: #166534;
}

.ll-smart-offer-claim-check {
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    background: #fff;
}

.ll-smart-offer-sale-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.ll-smart-offer-dashboard__empty {
    margin-top: 15px;
    padding: 14px;
    border: 1px dashed #94a3b8;
    border-radius: 7px;
    color: #475569;
}

@media (max-width: 900px) {
    .ll-smart-offer-metrics {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
    }
}

@media (max-width: 640px) {
    .ll-smart-offer-dashboard__intro,
    .ll-smart-offer-campaign-card__header {
        display: block;
    }

    .ll-smart-offer-dashboard__price {
        margin-top: 12px;
        text-align: left;
    }

    .ll-smart-offer-metrics,
    .ll-smart-offer-sale-fields {
        grid-template-columns: 1fr;
    }
}

.ll-smart-offer-dashboard__flow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 250px;
    font-size: 13px;
}

.ll-smart-offer-dashboard__notice {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 7px;
}

.ll-smart-offer-dashboard__notice.is-success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.ll-smart-offer-dashboard__notice.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.ll-smart-offer-create-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
    gap: 22px;
    align-items: center;
    margin-top: 16px;
    padding: 18px;
    border: 1px dashed #94a3b8;
    border-radius: 9px;
    background: #fff;
}

.ll-smart-offer-create-card h4 {
    margin: 0 0 6px;
}

.ll-smart-offer-create-card p {
    margin: 0;
}

.ll-smart-offer-create-card__expires {
    margin-top: 8px !important;
    color: #64748b;
    font-size: 13px;
}

.ll-smart-offer-create-form {
    display: grid;
    gap: 10px;
}

.ll-smart-offer-create-form label {
    display: grid;
    gap: 5px;
    font-weight: 700;
}

.ll-smart-offer-create-form label small {
    color: #64748b;
    font-weight: 400;
}

.ll-smart-offer-create-form input {
    width: 100%;
}

.ll-smart-offer-campaign-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}


.ll-smart-offer-draft-settings {
    display: flex;
    align-items: end;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    padding: 10px 0;
}

.ll-smart-offer-draft-settings label {
    display: grid;
    gap: 4px;
    min-width: 190px;
    font-weight: 700;
}

.ll-smart-offer-draft-settings label small {
    color: #64748b;
    font-weight: 400;
}

.ll-smart-offer-inline-form {
    display: inline-block;
    margin: 0;
}

.ll-smart-offer-inline-form ._wp_http_referer {
    display: none;
}

.ll-smart-offer-campaign-actions__message {
    color: #475569;
    font-size: 13px;
}

.ll-smart-offer-status--awaiting_approval {
    background: #dbeafe;
    color: #1e40af;
}

.ll-smart-offer-status--approved {
    background: #e0e7ff;
    color: #3730a3;
}

.ll-smart-offer-status--completed,
.ll-smart-offer-status--cancelled {
    background: #f1f5f9;
    color: #475569;
}

@media (max-width: 640px) {
    .ll-smart-offer-dashboard__flow {
        justify-content: flex-start;
        margin-top: 12px;
        min-width: 0;
    }

    .ll-smart-offer-create-card {
        grid-template-columns: 1fr;
    }
}


.ll-smart-offer-create-card__eyebrow {
    margin-bottom: 5px;
    color: #2271b1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ll-smart-offer-create-card__benefits {
    margin: 10px 0 0 18px;
}

.ll-smart-offer-create-card__benefits li {
    margin: 4px 0;
}

.ll-smart-promotion-purchase {
    display: grid;
    gap: 10px;
    align-content: start;
}

.ll-smart-promotion-purchase__price strong,
.ll-smart-promotion-purchase__price span {
    display: block;
}

.ll-smart-promotion-purchase__price strong {
    font-size: 26px;
    line-height: 1.1;
}

.ll-smart-promotion-purchase__price span,
.ll-smart-promotion-purchase__note {
    color: #64748b;
    font-size: 13px;
}

.ll-smart-promotion-purchase__note {
    margin: 0 !important;
}

.ll-smart-promotion-checkout {
    margin-top: 4px;
}

.ll-smart-promotion-checkout[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .ll-smart-offer-create-card {
        grid-template-columns: 1fr;
    }
}


 .ll-smart-offer-create-card.needs-purchase {
    display: block;
}

.ll-smart-offer-create-card__lead {
    margin: 0;
    color: #334155;
}

.ll-smart-promotion-pricing-wrap {
    margin-top: 14px;
    overflow-x: auto;
}

.ll-smart-promotion-pricing-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.ll-smart-promotion-pricing-table th,
.ll-smart-promotion-pricing-table td {
    padding: 12px 14px;
    border-top: 1px solid #e5edf5;
    vertical-align: middle;
}

.ll-smart-promotion-pricing-table thead th {
    border-top: 0;
    background: #f8fafc;
    text-align: left;
}

.ll-smart-promotion-pricing-table__benefit-heading {
    width: 36%;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #475569;
}

.ll-smart-promotion-pricing-table__plan-col {
    width: 32%;
}

.ll-smart-promotion-pricing-table__plan-col.is-recommended,
.ll-smart-promotion-pricing-table tfoot td.is-recommended {
    background: #f8fff9;
}

.ll-smart-promotion-pricing-table tbody th {
    font-weight: 700;
    color: #1e293b;
    background: #fff;
}

.ll-smart-promotion-pricing-table tbody td {
    text-align: center;
    background: #fff;
}

.ll-smart-promotion-pricing-table__plan-head {
    display: grid;
    gap: 6px;
}

.ll-smart-promotion-pricing-table__plan-head strong {
    font-size: 18px;
    line-height: 1.2;
    color: #0f172a;
}

.ll-smart-promotion-pricing-table__plan-head small {
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
}

.ll-smart-promotion-pricing-table__tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ll-smart-promotion-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 18px;
}

.ll-smart-promotion-check.yes {
    background: #dcfce7;
    color: #166534;
}

.ll-smart-promotion-check.no {
    background: #f1f5f9;
    color: #64748b;
}

.ll-smart-promotion-pricing-table__actions-row th,
.ll-smart-promotion-pricing-table__actions-row td {
    background: #f8fafc;
}

.ll-smart-promotion-pricing-table__price {
    margin-bottom: 10px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
}

.ll-smart-promotion-plan-button {
    width: 100%;
    text-align: center;
}

.ll-smart-promotion-plan-button--recommended {
    box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.04);
}

.ll-smart-promotion-purchase {
    margin-top: 10px;
}

.ll-smart-promotion-purchase__note {
    margin: 0 !important;
    color: #64748b;
    font-size: 13px;
}

.ll-smart-promotion-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.ll-smart-promotion-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.ll-smart-promotion-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 620px);
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    padding: 22px 22px 18px;
    overflow: auto;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.28);
}

.ll-smart-promotion-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.ll-smart-promotion-modal__eyebrow {
    margin-bottom: 5px;
    color: #2271b1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ll-smart-promotion-modal__dialog h5 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.15;
}

.ll-smart-promotion-modal__summary {
    margin: 0;
    color: #475569;
}

.ll-smart-promotion-modal__price {
    margin-top: 12px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
}

.ll-smart-promotion-modal__checkout-intro {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 700;
}

.ll-smart-promotion-modal .ll-smart-promotion-checkout {
    margin-top: 14px;
}

.ll-smart-promotion-checkout[hidden],
.ll-smart-promotion-modal[hidden] {
    display: none !important;
}

html.ll-smart-promotion-modal-open,
body.ll-smart-promotion-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .ll-smart-promotion-pricing-table {
        min-width: 660px;
    }
}

@media (max-width: 640px) {
    .ll-smart-promotion-modal__dialog {
        width: calc(100vw - 24px);
        margin: 12px auto;
        padding: 18px 16px 16px;
    }

    .ll-smart-promotion-modal__dialog h5 {
        font-size: 24px;
    }
}

/* Smart Promotion inline offer-row UX — release 2026.09.08.2 */
.ll-smart-offer-dashboard--inline {
    margin-top: 0;
}

.ll-smart-offer-inline-source {
    display: none;
}

.ll-smart-offer-inline-placement-error {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fef2f2;
    color: #991b1b;
}

.ll-smart-promotion-row > td {
    padding: 0 12px 14px !important;
    border-top: 0 !important;
}

.ll-smart-promotion-host {
    margin: -2px 0 2px;
}

.ll-smart-promotion-host .ll-smart-offer-create-card {
    margin: 0;
    padding: 14px;
    border: 1px solid #dbe3ec;
    border-radius: 9px;
    background: #f8fafc;
}

.ll-smart-promotion-host .ll-smart-offer-create-card h4 {
    margin: 0 0 4px;
    font-size: 18px;
}

.ll-smart-promotion-host .ll-smart-offer-create-card p {
    color: #475569;
    font-size: 13px;
}

.ll-smart-promotion-host .ll-smart-offer-create-card__eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
}

.ll-smart-promotion-host .ll-smart-promotion-purchase {
    min-width: 0;
}

.ll-smart-promotion-host .ll-smart-promotion-purchase__note {
    text-align: left;
}

.ll-smart-promotion-host .ll-smart-promotion-checkout:not([hidden]) {
    width: 100%;
    justify-self: stretch;
}

.ll-smart-promotion-host .ll-smart-offer-campaign-card {
    margin: 0;
    padding: 14px;
    border-color: #bfdbfe;
    background: #f8fbff;
}

.ll-smart-promotion-host .ll-smart-offer-campaign-card__message {
    margin: 10px 0 0;
    color: #475569;
}

.ll-smart-promotion-host .ll-smart-offer-metrics {
    margin: 14px 0 8px;
}

.ll-smart-promotion-host .ll-smart-offer-redeem {
    margin-top: 14px;
}

@media (max-width: 700px) {
    .ll-smart-promotion-host .ll-smart-promotion-purchase {
        min-width: 0;
        justify-items: stretch;
    }

    .ll-smart-promotion-host .ll-smart-promotion-purchase__button {
        white-space: normal;
    }

    .ll-smart-promotion-host .ll-smart-promotion-checkout:not([hidden]) {
        width: 100%;
    }
}
