/* =========================================================
   SMT Toolkit - Discounts Frontend CSS
   Promo notices (cart / checkout / product page)
   ========================================================= */

/* ------------------------------------------------------------------
 * Wrapper - always present so WC fragments can replace it.
 * Empty wrapper takes no space.
 * ------------------------------------------------------------------ */
.smt-promo-notices-wrapper:empty,
.smt-promo-notices-wrapper > .smt-promo-notices:empty {
    display: none;
}

/* ------------------------------------------------------------------
 * Notices container
 * ------------------------------------------------------------------ */
.smt-promo-notices {
    margin: 0 0 1.5em;
    display: flex;
    flex-direction: column;
    gap: .75em;
}

/* ------------------------------------------------------------------
 * Individual promo block
 * ------------------------------------------------------------------ */
.smt-promo-block {
    background: #fff8ee;
    border: 1px solid #f0c060;
    border-left: 4px solid #f0a020;
    border-radius: 6px;
    padding: .9em 1.1em;
    font-size: .95em;
    line-height: 1.5;
}

.smt-promo-block.smt-promo-active {
    background: #f0fdf4;
    border-color: #86efac;
    border-left-color: #22c55e;
}

/* Header row */
.smt-promo-header {
    display: flex;
    align-items: center;
    gap: .5em;
    margin-bottom: .5em;
}

.smt-promo-icon {
    font-size: 1.2em;
    line-height: 1;
}

.smt-promo-title {
    font-weight: 600;
    color: #1a1a1a;
}

/* Condition / reward rows */
.smt-promo-conditions-row,
.smt-promo-rewards-row {
    display: flex;
    align-items: baseline;
    gap: .4em;
    margin-top: .3em;
}

.smt-promo-label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.smt-promo-desc {
    color: #333;
}

.smt-promo-desc em {
    color: #888;
    font-style: normal;
}

/* Actions row (add reward buttons) */
.smt-promo-actions {
    margin-top: .7em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5em;
}

.smt-promo-actions .button.smt-promo-add-reward {
    font-size: .875em;
    padding: .35em .9em;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .15s;
}

.smt-promo-actions .button.smt-promo-add-reward:hover:not(:disabled) {
    background: #16a34a;
}

.smt-promo-actions .button.smt-promo-add-reward:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.smt-promo-actions .button.smt-promo-add-reward.smt-promo-added {
    background: #86efac;
    color: #14532d;
    cursor: default;
}

.smt-promo-reward-added {
    font-size: .875em;
    color: #16a34a;
    font-weight: 600;
}

/* ------------------------------------------------------------------
 * Product-page promo info block
 * ------------------------------------------------------------------ */
.smt-promo-product-info {
    margin: 1em 0;
}

.smt-promo-product-info .smt-promo-block {
    font-size: .9em;
}

/* ------------------------------------------------------------------
 * Cart strikethrough prices (set by class-discounts-cart.php)
 * ------------------------------------------------------------------ */
.smt-cart-price {
    line-height: 1.6;
}

.smt-cart-price del.smt-cart-regular {
    color: #999;
    font-size: .9em;
    display: block;
}

.smt-cart-price ins.smt-cart-discounted {
    text-decoration: none;
    font-weight: 600;
    display: block;
}

/* ------------------------------------------------------------------
 * "You saved" row in cart totals
 * ------------------------------------------------------------------ */
tr.smt-discount-saving-total th,
tr.smt-discount-saving-total td {
    color: #16a34a;
    font-weight: 700;
}

/* ==================================================================
   MY ACCOUNT - USER LEVEL BLOCK
================================================================== */

.smt-ul-account-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* HERO */
.smt-ul-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, #4e6ef5 0%, #7aa9ff 100%);
    color: #fff;
    flex-wrap: wrap;
}

.smt-ul-hero-icon { font-size: 36px; line-height: 1; flex-shrink: 0; }
.smt-ul-hero-info { flex: 1 1 140px; }

.smt-ul-hero-label {
    font-size: 11px;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 2px;
}

.smt-ul-hero-name {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.smt-ul-hero-perks {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* CHIPS */
.smt-ul-chip {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.smt-ul-chip-disc  { background: rgba(255,255,255,.25); color: #fff; }
.smt-ul-chip-bonus { background: rgba(255,200,50,.25);  color: #fff; }
.smt-ul-chip-start { background: rgba(255,255,255,.18); color: #fff; }

/* STATS */
.smt-ul-stats-row {
    display: flex;
    border-bottom: 1px solid #f0f2f5;
}

.smt-ul-stat {
    flex: 1;
    text-align: center;
    padding: 14px 12px;
    border-right: 1px solid #f0f2f5;
}

.smt-ul-stat:last-child { border-right: none; }

.smt-ul-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.smt-ul-stat-disc  .smt-ul-stat-value { color: #16a34a; }
.smt-ul-stat-bonus .smt-ul-stat-value { color: #ea580c; }

.smt-ul-stat-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* PROGRESS */
.smt-ul-progress-wrap {
    padding: 18px 24px 14px;
    border-bottom: 1px solid #f0f2f5;
}

.smt-ul-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.smt-ul-progress-pct {
    font-weight: 700;
    color: #4e6ef5;
    font-size: 13px;
}

.smt-ul-progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.smt-ul-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4e6ef5, #7aa9ff);
    border-radius: 999px;
    transition: width .6s ease;
    min-width: 4px;
}

.smt-ul-progress-label {
    font-size: 13px;
    color: #374151;
    margin: 0;
}

.smt-ul-max-level {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    border-bottom: 1px solid #f0f2f5;
}

/* LEVELS LADDER */
.smt-ul-levels-ladder {
    padding: 18px 24px 20px;
}

.smt-ul-ladder-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    font-weight: 700;
    margin-bottom: 16px;
}

.smt-ul-ladder-steps {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0;
}

.smt-ul-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 80px;
    min-width: 60px;
}

.smt-ul-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    transition: background .3s, box-shadow .3s;
}

.smt-ul-step-current .smt-ul-step-dot {
    background: linear-gradient(135deg, #4e6ef5, #7aa9ff);
    box-shadow: 0 0 0 4px rgba(78,110,245,.18);
}

.smt-ul-step-done .smt-ul-step-dot { background: #e8f5e9; }

.smt-ul-step-icon {
    font-size: 16px;
    line-height: 1;
    color: #9ca3af;
}

.smt-ul-step-current .smt-ul-step-icon { color: #fff; }
.smt-ul-step-done    .smt-ul-step-icon { color: #16a34a; }

.smt-ul-step-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.smt-ul-step-name {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.smt-ul-step-current .smt-ul-step-name { color: #4e6ef5; }

.smt-ul-step-threshold {
    font-size: 11px;
    color: #6b7280;
}

.smt-ul-step-perks {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 1px;
}

.smt-ul-step-connector {
    flex: 0 0 24px;
    height: 2px;
    background: #e2e8f0;
    margin-top: 17px;
    align-self: flex-start;
}

.smt-ul-step-connector-done { background: #86efac; }
