/* =========================================================
 * Advenced SMM Sales — Frontend card (tiers + packs + price)
 * Intentionally self-contained so it works inside Elementor
 * "Shortcode" widget without depending on theme styles.
 * ========================================================= */

.advsmms-product {
    position: relative;
    isolation: isolate;
    z-index: 1;
    max-width: 540px;
    margin: 0 auto;
    padding: 33px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: #1c1c1e;
    box-sizing: border-box;
    line-height: 1.4;
    text-align: left;
}
.advsmms-product *, .advsmms-product *::before, .advsmms-product *::after { box-sizing: border-box; }

/* ─────────── Tiers (top 3 cards) ─────────── */
.advsmms-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}
.advsmms-tier {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 28px 14px 26px;
    border: 1px solid #e6e6ec;
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #1c1c1e;
    line-height: 1.25;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.advsmms-tier:hover { transform: translateY(-1px); }
.advsmms-tier.is-active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary));
    box-shadow: 0 6px 20px var(--advsmms-primary-shadow);
}
.advsmms-tier.is-active.is-tier-exclusive {
    background: linear-gradient(135deg, #8a5cff, #5c2ed0);
    box-shadow: 0 6px 20px rgba(92, 46, 208, 0.3);
}
.advsmms-tier.is-active.is-tier-blue {
    background: linear-gradient(135deg, #3aa0ff, #1470e0);
    box-shadow: 0 6px 20px rgba(20, 112, 224, 0.3);
}
.advsmms-tier.is-tier-blue {
    border: 1px solid #8055f0;
}
.advsmms-tier-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    border-radius: 6px;
    white-space: nowrap;
}
.advsmms-tier-badge.badge-recommended { background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary)); }
.advsmms-tier-badge.badge-exclusive   { background: linear-gradient(135deg, #8a5cff, #5c2ed0); }

/* ─────────── Packs (quantity grid) ─────────── */
.advsmms-packs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}
.advsmms-pack {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 30px 12px 28px;
    border: 1px solid #e6e6ec;
    background: #bcc0c633;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    font-family: inherit;
    line-height: 1.2;
}
.advsmms-pack:hover { transform: translateY(-1px); border-color: #ff6a14; background:#FFF!important; }
button.advsmms-pack.is-active:hover {
    background: #ff7117 !important;
}
.advsmms-pack-qty {
    display: block;
    width: 100%;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.1;
    color: #404040;
}
.advsmms-pack-sub {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #bc7a26;
    min-height: 14px;
    letter-spacing: 0.01em;
    text-transform: none;
}
.advsmms-pack-sub:empty { min-height: 0; }
.advsmms-pack.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary));
    box-shadow: 0 6px 20px var(--advsmms-primary-shadow);
}
.advsmms-pack.is-active .advsmms-pack-qty,
.advsmms-pack.is-active .advsmms-pack-sub { color: #fff; }
.advsmms-pack.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.advsmms-pack.is-hidden { display: none !important; }
.advsmms-pack-badge {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 7px;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
    border-radius: 4px;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary));
    line-height: 1.3;
}
.advsmms-pack-badge.badge-bestselling { background: linear-gradient(135deg, #4ac15a, #2a9e3b); }
.advsmms-pack-badge.badge-bulkprice   { background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary)); }
.advsmms-pack-badge.badge-recommended { background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary)); }
.advsmms-pack-badge.badge-exclusive   { background: linear-gradient(135deg, #8a5cff, #5c2ed0); }

/* ─────────── Title + price ─────────── */
.advsmms-title {
    margin: 10px 0 6px;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    color: #1c1c1e;
}
.advsmms-title:empty { display: none; }
.advsmms-price {
    text-align: center;
    margin: 6px 0 18px;
    line-height: 1;
}
.advsmms-cur-sign {
    font-size: 20px;
    font-weight: 700;
    color: #6b6b76;
    vertical-align: super;
}
.advsmms-cur-val {
    font-size: 42px;
    font-weight: 700;
    color: #404040;
    margin: 0 2px;
}
.advsmms-old {
    display: inline-block;
    margin-left: 8px;
    font-size: 16px;
    color: #9a9aa3;
    text-decoration: line-through;
    bottom: 16px;
    position: relative;
}
.advsmms-old:empty { display: none; }

/* ─────────── CTA ─────────── */
.advsmms-add-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 50%;
    padding: 26px 24px;
    background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary));
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.3;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .1s ease, opacity .15s ease, box-shadow .15s ease;
    box-shadow: 0 6px 20px var(--advsmms-primary-shadow);
    font-family: inherit;
    margin: 0 auto;
}
.advsmms-add-btn:hover { transform: translateY(-1px); }
.advsmms-add-btn:active { transform: translateY(0); }
.advsmms-add-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.advsmms-save {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--advsmms-primary);
}
.advsmms-save:empty { display: none; }

/* Feedback toast shown under the Add button after AJAX add */
.advsmms-feedback {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
}
.advsmms-feedback.is-success { background: #e7f7ec; color: #1e8a3c; }
.advsmms-feedback.is-error   { background: #fee2e2; color: #991b1b; }

/* "Complete Cart →" button appears once at least one item is in the cart */
.advsmms-complete-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-decoration: none;
    color: #1c1c1e;
    background: #fff;
    border: 2px solid var(--advsmms-primary);
    transition: background .15s ease, color .15s ease;
}
.advsmms-complete-cart:hover {
    background: var(--advsmms-primary);
    color: #fff;
}
.advsmms-complete-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--advsmms-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.advsmms-complete-cart:hover .advsmms-complete-cart-count {
    background: #fff;
    color: var(--advsmms-primary);
}

/* Recommended grid under the widget (stage 1) */
.advsmms-rec-grid {
    margin-top: 24px;
}
.advsmms-rec-grid-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1c1c1e;
}
.advsmms-rec-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.advsmms-rec-card {
    background: #fff;
    border: 1px solid #e6e6ea;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.advsmms-rec-card:hover { border-color: #d0d0d6; box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.advsmms-rec-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}
.advsmms-rec-body { flex: 1 1 auto; }
.advsmms-rec-name {
    font-weight: 700;
    font-size: 14px;
    color: #1c1c1e;
    margin-bottom: 4px;
}
.advsmms-rec-price {
    font-size: 13px;
    color: #6b6b76;
}
.advsmms-rec-price strong { color: var(--advsmms-primary); font-size: 15px; margin-left: 4px; }
.advsmms-rec-from { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.advsmms-rec-add {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary));
    box-shadow: 0 4px 12px var(--advsmms-primary-shadow);
    transition: transform .1s ease;
    font-family: inherit;
}
.advsmms-rec-add:hover { transform: translateY(-1px); }
.advsmms-rec-add[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.advsmms-rec-feedback {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
}
.advsmms-rec-feedback.is-success { background: #e7f7ec; color: #1e8a3c; }
.advsmms-rec-feedback.is-error   { background: #fee2e2; color: #991b1b; }

/* ─────────── Responsive ─────────── */
@media (max-width: 560px) {
    .advsmms-product { padding: 16px; border-radius: 12px; }
    .advsmms-tiers { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .advsmms-tier { padding: 14px 8px; font-size: 12px; }
    .advsmms-tier-badge { font-size: 8px; padding: 2px 7px; }
    .advsmms-packs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .advsmms-pack-qty { font-size: 17px; }
    .advsmms-pack-sub { font-size: 11px; }
    .advsmms-cur-val { font-size: 34px; }
    .advsmms-cur-sign { font-size: 17px; }
    .advsmms-old { font-size: 15px; }
}
@media (max-width: 380px) {
    .advsmms-packs { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
 * Order form ([adss_order_form])
 * ========================================================= */
.advsmms-order-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: #1c1c1e;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(320px, 520px);
    gap: 28px;
    align-items: start;
    justify-content: center;  /* centers the two-column grid horizontally */
}
.advsmms-order-wrap *, .advsmms-order-wrap *::before, .advsmms-order-wrap *::after { box-sizing: border-box; }

/* Stack on tablets & phones */
@media (max-width: 900px) {
    .advsmms-order-wrap {
        grid-template-columns: 1fr;
        max-width: 560px;
        justify-content: stretch;
    }
}

.advsmms-order-empty {
    max-width: 640px;
    margin: 40px auto;
    padding: 40px 20px;
    text-align: center;
    background: #fafafc;
    border: 1px dashed #d0d0d6;
    border-radius: 14px;
    color: #6b6b76;
}

.advsmms-order-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
    padding: 24px 22px;
}
.advsmms-order-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 800;
    color: #1c1c1e;
    line-height: 1.25;
}

.advsmms-order-summary {
    background: #fafafc;
    border: 1px solid #eceef2;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.advsmms-order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eceef2;
    font-size: 14px;
}
.advsmms-order-summary-row:last-child { border-bottom: none; }
.advsmms-order-label {
    color: #6b6b76;
    font-weight: 600;
}
.advsmms-order-value {
    text-align: right;
    color: #1c1c1e;
}
.advsmms-order-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--advsmms-primary);
}
.advsmms-order-price-old {
    margin-left: 8px;
    color: #9a9aa3;
    font-size: 14px;
}
.advsmms-order-bonus { color: var(--advsmms-success); }

.advsmms-order-off {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--advsmms-success);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    vertical-align: middle;
}

/* ── Link input form ── */
.advsmms-order-link-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.advsmms-order-link-label {
    font-size: 14px;
    font-weight: 700;
    color: #1c1c1e;
}
.advsmms-order-platform-chip {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    color: #fff;
    border-radius: 6px;
    text-transform: uppercase;
    background: #6b6b76;
}
.advsmms-order-platform-instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.advsmms-order-platform-tiktok    { background: linear-gradient(135deg, #25f4ee, #000, #fe2c55); color: #fff; }
.advsmms-order-platform-youtube   { background: #ff0000; }
.advsmms-order-platform-facebook  { background: #1877f2; }
.advsmms-order-platform-twitter   { background: #000; }
.advsmms-order-platform-telegram  { background: #27a4e5; }

.advsmms-order-link-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 2px solid #e6e6ec;
    border-radius: 12px;
    background: #fff;
    color: #1c1c1e;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    font-family: inherit;
}
.advsmms-order-link-input:focus {
    border-color: var(--advsmms-primary-light);
    box-shadow: 0 0 0 4px var(--advsmms-primary-ring);
}
.advsmms-order-link-input::placeholder { color: #a0a0ab; }

/* ── Account search: dropdown + selected chip ── */
.advsmms-account-search { position: relative; }

.advsmms-account-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e6e6ec;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
    padding: 4px;
}
.advsmms-account-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .12s ease;
}
.advsmms-account-row:hover { background: #fafafc; }
.advsmms-account-row-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #eceef2;
}
.advsmms-account-row-body {
    flex: 1 1 auto;
    min-width: 0;
}
.advsmms-account-row-user {
    font-size: 14px;
    font-weight: 700;
    color: #1c1c1e;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.advsmms-account-row-lock { font-size: 12px; opacity: .7; }
.advsmms-account-row-name {
    margin-top: 2px;
    font-size: 12px;
    color: #6b6b76;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.advsmms-account-loading,
.advsmms-account-empty {
    padding: 12px 14px;
    text-align: center;
    font-size: 13px;
    color: #6b6b76;
    font-style: italic;
}

/* Selected account chip */
.advsmms-account-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 2px solid var(--advsmms-success);
    background: #f0fdf4;
    border-radius: 12px;
}
.advsmms-account-selected-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e6e6ec;
}
.advsmms-account-selected-body {
    flex: 1 1 auto;
    min-width: 0;
}
.advsmms-account-selected-name {
    font-size: 13px;
    font-weight: 700;
    color: #1c1c1e;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.advsmms-account-selected-user {
    margin-top: 2px;
    font-size: 12px;
    color: #6b6b76;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.advsmms-account-selected-clear {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #6b6b76;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
    flex-shrink: 0;
}
.advsmms-account-selected-clear:hover { background: #fee2e2; color: #d63638; }
.advsmms-order-link-hint {
    margin: 0;
    font-size: 12px;
    color: #6b6b76;
    line-height: 1.5;
}

.advsmms-order-submit {
    display: block;
    width: 100%;
    padding: 16px 24px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary));
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .1s ease, box-shadow .15s ease;
    box-shadow: 0 6px 20px var(--advsmms-primary-shadow);
    font-family: inherit;
}
.advsmms-order-submit:hover  { transform: translateY(-1px); }
.advsmms-order-submit:active { transform: translateY(0); }

/* ── Recommended products ── */
.advsmms-recommended {
    /* side-by-side with the order card on desktop; bumped down on mobile via media query */
    margin-top: 0;
    position: sticky;
    top: 20px;
}
@media (max-width: 900px) {
    .advsmms-recommended { margin-top: 12px; position: static; }
}
.advsmms-recommended-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
    color: #1c1c1e;
    position: relative;
    padding-left: 14px;
}
.advsmms-recommended-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, var(--advsmms-primary-light), var(--advsmms-primary));
    border-radius: 2px;
}
.advsmms-recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.advsmms-recommended-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #1c1c1e;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.advsmms-recommended-card:hover {
    transform: translateY(-2px);
    border-color: var(--advsmms-primary-light);
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.advsmms-recommended-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafafc;
}
.advsmms-recommended-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.advsmms-recommended-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.advsmms-recommended-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #1c1c1e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.advsmms-recommended-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--advsmms-primary);
}
.advsmms-recommended-price del { color: #9a9aa3; margin-right: 4px; font-weight: 500; }

/* ── Accordion (recommended products — in-panel order form) ── */
.advsmms-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.advsmms-accordion-item {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.advsmms-accordion-item.is-open {
    border-color: var(--advsmms-primary);
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}
.advsmms-accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: #1c1c1e;
    transition: background .15s ease;
}
.advsmms-accordion-header:hover { background: #fafafc; }
.advsmms-accordion-item.is-open .advsmms-accordion-header {
    background: var(--advsmms-primary);
    color: #fff;
}
.advsmms-accordion-img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafc;
}
.advsmms-accordion-img img { width:100%; height:100%; object-fit: cover; display:block; }
.advsmms-accordion-headline {
    flex: 1 1 auto;
    min-width: 0;
}
.advsmms-accordion-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.advsmms-accordion-sub {
    margin-top: 2px;
    font-size: 12px;
    color: #6b6b76;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.advsmms-accordion-item.is-open .advsmms-accordion-sub { color: rgba(255,255,255,.85); }
.advsmms-accordion-bonus {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: var(--advsmms-success);
    border-radius: 10px;
    letter-spacing: .2px;
    vertical-align: middle;
    white-space: nowrap;
}
.advsmms-accordion-item.is-open .advsmms-accordion-bonus {
    background: rgba(255,255,255,.3);
    color: #fff;
}
.advsmms-accordion-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    line-height: 1.1;
}
.advsmms-accordion-from {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #9a9aa3;
}
.advsmms-accordion-item.is-open .advsmms-accordion-from { color: rgba(255,255,255,.75); }
.advsmms-accordion-price strong {
    font-size: 16px;
    font-weight: 800;
    color: inherit;
}
.advsmms-accordion-chev {
    font-size: 18px;
    color: #9a9aa3;
    transition: transform .2s ease, color .15s ease;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.advsmms-accordion-item.is-open .advsmms-accordion-chev {
    transform: rotate(180deg);
    color: #fff;
}

.advsmms-accordion-body {
    padding: 16px 18px 18px;
    border-top: 1px solid #eceef2;
}
.advsmms-accordion-body .advsmms-order-summary {
    margin-bottom: 16px;
}
.advsmms-accordion-body .advsmms-order-link-form {
    margin: 0;
}
.advsmms-accordion-more {
    margin: 14px 0 0;
    text-align: center;
    font-size: 13px;
}
.advsmms-accordion-more a {
    color: var(--advsmms-primary);
    text-decoration: none;
    font-weight: 600;
}
.advsmms-accordion-more a:hover { text-decoration: underline; }

/* ── Toast shown inside accordion body after AJAX add-to-cart ── */
.advsmms-toast {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    animation: advsmms-toast-slide .25s ease both;
}
.advsmms-toast--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.advsmms-toast--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.advsmms-toast strong { font-weight: 700; }
.advsmms-toast .advsmms-toast-meta {
    display: inline-block;
    margin: 0 6px;
    color: inherit;
    opacity: .7;
    font-size: 12px;
}
.advsmms-toast a {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
    white-space: nowrap;
}
@keyframes advsmms-toast-slide {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
    .advsmms-accordion-img { flex: 0 0 40px; width: 40px; height: 40px; }
    .advsmms-accordion-title { font-size: 13px; }
    .advsmms-accordion-price strong { font-size: 14px; }
    .advsmms-accordion-body { padding: 14px; }
}

/* ── Responsive ── */
@media (max-width: 560px) {
    .advsmms-order-wrap { padding: 14px; }
    .advsmms-order-card { padding: 18px 16px; border-radius: 12px; }
    .advsmms-order-title { font-size: 19px; }
    .advsmms-order-price { font-size: 18px; }
    .advsmms-order-summary-row { flex-wrap: wrap; }
    .advsmms-recommended-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .advsmms-recommended-name { font-size: 13px; }
}
@media (max-width: 380px) {
    .advsmms-recommended-grid { grid-template-columns: 1fr; }
}

/* ─────────── Cart accordion ([adss_order_form] stage 2) ─────────── */
.advsmms-cart-wrap {
    max-width: 820px;
    margin: 0 auto;
    --advsmms-primary: var(--advsmms-primary, #ff5a0d);
    --advsmms-primary-light: var(--advsmms-primary-light, #ff9e2c);
    --advsmms-success: var(--advsmms-success, #16a34a);
}
.advsmms-cart-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #1c1c1e;
}
.advsmms-cart-sub {
    margin: 0 0 20px;
    color: #6b6b76;
    font-size: 14px;
}
.advsmms-cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b6b76;
    border: 1px dashed #dcdcde;
    border-radius: 12px;
}
.advsmms-cart-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.advsmms-cart-item {
    border: 1.5px solid #e6e6ea;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.advsmms-cart-item.is-filled { border-color: var(--advsmms-success); }
.advsmms-cart-item.is-empty { border-color: #e6e6ea; }
.advsmms-cart-item.advsmms-shake {
    animation: advsmms-shake 0.4s;
    border-color: #d63638;
}
@keyframes advsmms-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.advsmms-cart-head {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.advsmms-cart-head:hover { background: #fafafa; }
.advsmms-cart-img {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f7f9;
}
.advsmms-cart-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.advsmms-cart-head-main {
    flex: 1 1 auto;
    min-width: 0;
}
.advsmms-cart-name {
    font-weight: 700;
    color: #1c1c1e;
    font-size: 15px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.advsmms-cart-combo {
    font-size: 12px;
    color: #6b6b76;
}
.advsmms-cart-price {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 15px;
    color: var(--advsmms-primary);
    margin: 0 8px;
}
.advsmms-cart-status {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f1;
    position: relative;
}
.advsmms-cart-item.is-filled .advsmms-cart-status {
    background: var(--advsmms-success);
}
.advsmms-cart-item.is-filled .advsmms-cart-status::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}
.advsmms-cart-item.is-empty .advsmms-cart-status::after {
    content: '!';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a9aa3;
    font-weight: 800;
    font-size: 14px;
}
.advsmms-cart-body {
    padding: 0 18px 18px;
    border-top: 1px solid #f0f0f1;
}
.advsmms-cart-label {
    display: block;
    font-weight: 600;
    color: #1c1c1e;
    margin: 14px 0 8px;
    font-size: 13px;
}
.advsmms-cart-input-row {
    display: flex;
    gap: 8px;
}
.advsmms-cart-link-input {
    flex: 1 1 auto;
    padding: 12px 14px;
    border: 1.5px solid #dcdcde;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}
.advsmms-cart-link-input:focus {
    outline: none;
    border-color: var(--advsmms-primary);
    box-shadow: 0 0 0 3px var(--advsmms-primary-ring, rgba(255,90,13,0.15));
}
.advsmms-cart-save-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary));
    font-family: inherit;
}
.advsmms-cart-save-btn:hover { transform: translateY(-1px); }
.advsmms-cart-save-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.advsmms-cart-msg {
    margin-top: 8px;
    font-size: 13px;
    min-height: 18px;
}
.advsmms-cart-msg.is-success { color: var(--advsmms-success); }
.advsmms-cart-msg.is-error   { color: #d63638; }

.advsmms-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #f6f7f9;
    border-radius: 12px;
    flex-wrap: wrap;
}
.advsmms-cart-progress {
    font-size: 14px;
    color: #6b6b76;
    font-weight: 600;
}
.advsmms-cart-next {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #fff;
    background: #c6c9cd;
    cursor: not-allowed;
    transition: background .15s ease;
    pointer-events: none;
}
.advsmms-cart-next.is-ready {
    background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary));
    box-shadow: 0 6px 20px var(--advsmms-primary-shadow);
    cursor: pointer;
    pointer-events: auto;
}
.advsmms-cart-next.is-ready:hover { transform: translateY(-1px); }

@media (max-width: 560px) {
    .advsmms-cart-img { flex: 0 0 44px; width: 44px; height: 44px; }
    .advsmms-cart-name { font-size: 14px; }
    .advsmms-cart-price { font-size: 14px; }
    .advsmms-cart-head { padding: 12px 14px; gap: 10px; }
    .advsmms-cart-body { padding: 0 14px 14px; }
    .advsmms-cart-input-row { flex-direction: column; }
    .advsmms-cart-footer { padding: 14px; }
    .advsmms-cart-next { width: 100%; text-align: center; }
}

/* Row wrapper holding the expand header + × remove button */
.advsmms-cart-row {
    display: flex;
    align-items: stretch;
}
.advsmms-cart-row .advsmms-cart-head { flex: 1 1 auto; }
.advsmms-cart-remove {
    flex: 0 0 48px;
    width: 48px;
    border: none;
    border-left: 1px solid #f0f0f1;
    background: transparent;
    color: #9a9aa3;
    font-size: 22px;
    font-weight: 400;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    font-family: inherit;
    line-height: 1;
}
.advsmms-cart-remove:hover {
    background: #fee2e2;
    color: #d63638;
}
.advsmms-cart-remove[disabled] { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 560px) {
    .advsmms-cart-remove { flex: 0 0 40px; width: 40px; font-size: 20px; }
}

/* ═════════════ Slide Cart Drawer (plugin-provided) ═════════════ */
html.advsmms-no-scroll, html.advsmms-no-scroll body { overflow: hidden; }

.advsmms-slide-cart {
    --advsmms-primary: var(--advsmms-primary, #ff5a0d);
    --advsmms-primary-light: var(--advsmms-primary-light, #ff9e2c);
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
.advsmms-slide-cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.advsmms-slide-cart.is-open .advsmms-slide-cart-overlay { opacity: 1; pointer-events: auto; }

.advsmms-slide-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.2,.9,.3,1);
    box-shadow: -8px 0 28px rgba(0,0,0,0.12);
    pointer-events: none;
}
.advsmms-slide-cart.is-open .advsmms-slide-cart-panel {
    transform: translateX(0);
    pointer-events: auto;
}

.advsmms-slide-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f1;
}
.advsmms-slide-cart-head h3 { margin: 0; font-size: 18px; font-weight: 800; color: #1c1c1e; }
.advsmms-slide-cart-count { color: #6b6b76; font-weight: 500; font-size: 15px; margin-left: 4px; }
.advsmms-slide-cart-close {
    border: none;
    background: transparent;
    font-size: 26px;
    color: #6b6b76;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1;
    font-family: inherit;
}
.advsmms-slide-cart-close:hover { background: #f6f7f9; color: #1c1c1e; }

.advsmms-slide-cart-items {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px 16px;
}
.advsmms-slide-cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b6b76;
    font-style: italic;
}
.advsmms-slide-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #f0f0f1;
}
.advsmms-slide-cart-item:last-child { border-bottom: none; }
.advsmms-slide-cart-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f7f9;
}
.advsmms-slide-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.advsmms-slide-cart-info { flex: 1 1 auto; min-width: 0; }
.advsmms-slide-cart-name {
    font-weight: 700;
    font-size: 14px;
    color: #1c1c1e;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.advsmms-slide-cart-meta { font-size: 13px; color: #6b6b76; }
.advsmms-slide-cart-meta strong { color: var(--advsmms-primary); }
.advsmms-slide-cart-remove {
    border: none;
    background: transparent;
    color: #9a9aa3;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1;
    font-family: inherit;
}
.advsmms-slide-cart-remove:hover { background: #fee2e2; color: #d63638; }
.advsmms-slide-cart-remove[disabled] { opacity: 0.4; cursor: not-allowed; }

.advsmms-slide-cart-foot {
    padding: 16px 20px 20px;
    border-top: 1px solid #f0f0f1;
    background: #fafafa;
}
.advsmms-slide-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    font-size: 15px;
    color: #1c1c1e;
}
.advsmms-slide-cart-total { font-size: 18px; color: #fff; font-weight: 800; }
.advsmms-slide-cart-checkout {
    display: block;
    text-align: center;
    padding: 14px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary));
    color: #fff;
    font-weight: 800;
    letter-spacing: .4px;
    text-decoration: none;
    margin-bottom: 8px;
    box-shadow: 0 6px 20px var(--advsmms-primary-shadow);
}
.advsmms-slide-cart-checkout:hover { transform: translateY(-1px); color: #fff; }
.advsmms-slide-cart-viewcart {
    display: block;
    text-align: center;
    padding: 10px;
    color: #6b6b76;
    text-decoration: underline;
    font-size: 13px;
}
.advsmms-slide-cart-viewcart:hover { color: var(--advsmms-primary); }

@media (max-width: 480px) {
    .advsmms-slide-cart-panel { width: 100vw; }
}

/* ─────────── Cart-page link input (per ADSS item) ─────────── */
.advsmms-cart-linker {
    margin: 8px 0 4px;
    padding: 10px 12px;
    background: #fafafa;
    border-left: 3px solid #dcdcde;
    border-radius: 6px;
    font-size: 13px;
}
.advsmms-cart-linker.is-filled { border-left-color: var(--advsmms-success, #16a34a); background: #f4fbf6; }
.advsmms-cart-linker.is-empty  { border-left-color: #f0a500; background: #fff8ea; }
.advsmms-cart-linker-label {
    display: block;
    font-weight: 600;
    color: #1c1c1e;
    margin-bottom: 6px;
}
.advsmms-cart-linker-row {
    display: flex;
    gap: 6px;
}
.advsmms-cart-linker-input {
    flex: 1 1 auto;
    padding: 8px 12px;
    border: 1.5px solid #dcdcde;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}
.advsmms-cart-linker-input:focus {
    outline: none;
    border-color: var(--advsmms-primary, #ff5a0d);
    box-shadow: 0 0 0 3px var(--advsmms-primary-ring, rgba(255,90,13,0.15));
}
.advsmms-cart-linker-save {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--advsmms-primary-light, #ff9e2c), var(--advsmms-primary, #ff5a0d));
    font-family: inherit;
}
.advsmms-cart-linker-save:hover { transform: translateY(-1px); }
.advsmms-cart-linker-save[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.advsmms-cart-linker-msg {
    margin-top: 6px;
    font-size: 12px;
    min-height: 16px;
}
.advsmms-cart-linker-msg.is-success { color: var(--advsmms-success, #16a34a); }
.advsmms-cart-linker-msg.is-error   { color: #d63638; }

/* ─────────── Floating cart button (alternative opener) ─────────── */
.advsmms-floating-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--advsmms-primary-light, #ff9e2c), var(--advsmms-primary, #ff5a0d));
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: transform .2s ease;
}
.advsmms-floating-cart:hover { transform: scale(1.06); }
.advsmms-floating-cart-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    visibility: visible !important;
    opacity: 1 !important;
}
.advsmms-floating-cart-icon svg {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.advsmms-floating-cart-icon svg path,
.advsmms-floating-cart-icon svg circle {
    fill: #fff !important;
    stroke: none !important;
}
.advsmms-floating-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #1c1c1e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
@media (max-width: 560px) {
    .advsmms-floating-cart { width: 52px; height: 52px; bottom: 16px; right: 16px; }
}

/* ─────────── Slide cart: recommended section ─────────── */
.advsmms-slide-cart-recommended {
    padding: 14px 16px 4px;
    border-top: 1px solid #f0f0f1;
    background: #fafafa;
}
.advsmms-slide-cart-recommended h4 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #6b6b76;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.advsmms-slide-cart-rec-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.advsmms-slide-cart-rec-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e6e6ea;
    border-radius: 10px;
}
.advsmms-slide-cart-rec-thumb {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    background: #f6f7f9;
}
.advsmms-slide-cart-rec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.advsmms-slide-cart-rec-info { flex: 1 1 auto; min-width: 0; }
.advsmms-slide-cart-rec-name {
    font-size: 13px;
    font-weight: 600;
    color: #1c1c1e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.advsmms-slide-cart-rec-price { font-size: 12px; color: var(--advsmms-primary, #ff5a0d); font-weight: 700; }
.advsmms-slide-cart-rec-add {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--advsmms-primary, #ff5a0d);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}
.advsmms-slide-cart-rec-add:hover { transform: scale(1.05); }
.advsmms-slide-cart-rec-add[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ═══════════════ Order Form V2 — Details / Checkout ═══════════════ */
.advsmms-ov2 {
    --advsmms-primary: var(--advsmms-primary, #ff5a0d);
    --advsmms-primary-light: var(--advsmms-primary-light, #ff9e2c);
    --advsmms-success: var(--advsmms-success, #16a34a);
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    color: #1c1c1e;
    box-sizing: border-box;
}
.advsmms-ov2 *, .advsmms-ov2 *::before, .advsmms-ov2 *::after { box-sizing: border-box; }
.advsmms-ov2-empty { padding: 40px; text-align: center; color: #6b6b76; }

/* Stepper */
.advsmms-ov2-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #6b6b76;
}
.advsmms-ov2-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.advsmms-ov2-step.is-active { color: #1c1c1e; }
.advsmms-ov2-step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #e6e6ea;
    color: #6b6b76;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.advsmms-ov2-step.is-active .advsmms-ov2-step-num {
    background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary));
    color: #fff;
}
.advsmms-ov2-step-sep { color: #c0c0c6; }

/* Grid */
.advsmms-ov2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 900px) {
    .advsmms-ov2-grid { grid-template-columns: 1fr; }
}

.advsmms-ov2-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    border: 1px solid #eeeef0;
}
.advsmms-ov2-title {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}
.advsmms-ov2-liveusers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 22px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e7f7ec;
    font-size: 13px;
    color: #1e8a3c;
    font-weight: 500;
    justify-content: center;
}
.advsmms-ov2-left .advsmms-ov2-liveusers { margin-bottom: 22px; display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
.advsmms-ov2-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #1e8a3c;
    animation: advsmms-pulse 1.8s ease-in-out infinite;
}
@keyframes advsmms-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.advsmms-ov2-form { display: flex; flex-direction: column; gap: 10px; }
.advsmms-ov2-field {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1.5px solid #e6e6ea;
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease;
}
.advsmms-ov2-field:focus-within { border-color: var(--advsmms-primary); }
.advsmms-ov2-field.advsmms-ov2-shake {
    animation: advsmms-shake-ov2 0.4s;
    border-color: #d63638;
}
@keyframes advsmms-shake-ov2 {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.advsmms-ov2-field-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f6f7f9;
    color: #6b6b76;
}
.advsmms-ov2-plat-ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #515bd4); color: #fff; border-radius: 8px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.advsmms-ov2-plat-tt { background: #000; color: #fff; border-radius: 8px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.advsmms-ov2-plat-yt { background: #ff0000; color: #fff; border-radius: 8px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.advsmms-ov2-plat-fb { background: #1877f2; color: #fff; border-radius: 8px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.advsmms-ov2-plat-tw { background: #000; color: #fff; border-radius: 8px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.advsmms-ov2-plat-tg { background: #229ed9; color: #fff; border-radius: 8px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }

.advsmms-ov2-field-body { flex: 1 1 auto; display: flex; flex-direction: column; cursor: text; }
.advsmms-ov2-field-label {
    font-size: 11px;
    font-weight: 600;
    color: #9a9aa3;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 2px;
}
.advsmms-ov2-field-input, .advsmms-ov2-email {
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    color: #1c1c1e;
    width: 100%;
    font-family: inherit;
}
.advsmms-ov2-field-input:focus, .advsmms-ov2-email:focus { outline: none; }

.advsmms-ov2-promo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 4px;
    font-size: 14px;
    color: #1c1c1e;
    cursor: pointer;
}
.advsmms-ov2-promo input { accent-color: var(--advsmms-primary); transform: scale(1.15); }

.advsmms-ov2-continue {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--advsmms-primary-light), var(--advsmms-primary));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--advsmms-primary-shadow);
    transition: transform .1s ease;
    font-family: inherit;
}
.advsmms-ov2-continue:hover { transform: translateY(-1px); }
.advsmms-ov2-continue[disabled] { opacity: 0.55; cursor: not-allowed; }

.advsmms-ov2-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: #6b6b76;
}
.advsmms-ov2-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #1e8a3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.advsmms-ov2-err {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.advsmms-ov2-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    border: 1px solid #eeeef0;
}
.advsmms-ov2-stars { color: #00b67a; font-size: 14px; letter-spacing: 1px; }

/* Bundles (right top) */
.advsmms-ov2-bundles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.advsmms-ov2-bundle {
    position: relative;
    padding: 18px 16px 14px;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffd88c, #ffae5b);
    color: #1c1c1e;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.advsmms-ov2-bundle.is-primary {
    background: linear-gradient(145deg, #ffc772, #ffa145);
}
.advsmms-ov2-bundle-title {
    font-size: 15px;
    font-weight: 800;
}
.advsmms-ov2-bundle-sub {
    font-size: 12px;
    color: #6d4a1a;
    margin-top: 2px;
}
.advsmms-ov2-bundle-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 0;
}
.advsmms-ov2-bundle-img img {
    width: 60px; height: 60px; object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background: #fff;
}
.advsmms-ov2-bundle-name {
    font-size: 11px;
    font-weight: 700;
    max-width: 80px;
    line-height: 1.2;
}
.advsmms-ov2-bundle-price {
    font-size: 20px;
    font-weight: 800;
    color: #1c1c1e;
}
.advsmms-ov2-bundle-add {
    margin: 4px auto 0;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: #1c1c1e;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.advsmms-ov2-bundle-add:hover { transform: translateY(-1px); }
.advsmms-ov2-bundle-add[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Summary (right bottom) */
.advsmms-ov2-summary {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    border: 1px solid #eeeef0;
}
.advsmms-ov2-savings {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, #ffe2ef, #f6d5ff);
    margin-bottom: 14px;
}
.advsmms-ov2-savings-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #d83cb3;
    flex: 0 0 auto;
}
.advsmms-ov2-savings-text { flex: 1 1 auto; font-size: 13px; }
.advsmms-ov2-savings-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.advsmms-ov2-savings-text span { color: #6b6b76; }
.advsmms-ov2-savings-plus {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #d83cb3;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex: 0 0 auto;
}

.advsmms-ov2-summary-list { display: flex; flex-direction: column; gap: 10px; }
.advsmms-ov2-summary-group {
    border-top: 1px solid #f0f0f1;
    padding-top: 12px;
}
.advsmms-ov2-summary-group:first-child { border-top: none; padding-top: 0; }
.advsmms-ov2-summary-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #6b6b76;
    margin-bottom: 8px;
}
.advsmms-ov2-summary-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 14px;
}
.advsmms-ov2-line-icon { color: var(--advsmms-primary); font-size: 15px; }
.advsmms-ov2-line-label { flex: 1 1 auto; color: #1c1c1e; }
.advsmms-ov2-line-price { font-weight: 600; color: #1c1c1e; }
.advsmms-ov2-line-remove {
    border: none;
    background: transparent;
    color: #9a9aa3;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1;
}
.advsmms-ov2-line-remove:hover { color: #d63638; }
.advsmms-ov2-line-remove[disabled] { opacity: 0.4; cursor: not-allowed; }

.advsmms-ov2-summary-totals {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.advsmms-ov2-totrow {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #1c1c1e;
}
.advsmms-ov2-totrow.is-total { font-size: 17px; margin-top: 4px; }
.advsmms-ov2-cur-badge {
    background: #1c1c1e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 8px;
}

@media (max-width: 560px) {
    .advsmms-ov2-card { padding: 22px 18px; }
    .advsmms-ov2-title { font-size: 24px; }
    .advsmms-ov2-bundles { grid-template-columns: 1fr; }
}

/* ═══════════════ Slide Cart (v2 — grouped by platform) ═══════════════ */
.advsmms-slide-cart-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px;
    background: #f6f7f9;
}
.advsmms-slide-cart-groups { display: flex; flex-direction: column; gap: 16px; }
.advsmms-slide-cart-group {}
.advsmms-slide-cart-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.advsmms-slide-cart-group-head strong { flex: 1 1 auto; color: #1c1c1e; font-weight: 800; }
.advsmms-slide-cart-group-count { color: #9a9aa3; font-weight: 500; letter-spacing: 0; }
.advsmms-slide-cart-plat-icon {
    display: inline-flex;
}
.advsmms-slide-cart-group-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eeeef0;
}
.advsmms-slide-cart-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f1;
}
.advsmms-slide-cart-line:last-child { border-bottom: none; }
.advsmms-slide-cart-line-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.advsmms-slide-cart-line-icon .advsmms-ov2-plat-ig,
.advsmms-slide-cart-line-icon .advsmms-ov2-plat-tt,
.advsmms-slide-cart-line-icon .advsmms-ov2-plat-yt,
.advsmms-slide-cart-line-icon .advsmms-ov2-plat-fb,
.advsmms-slide-cart-line-icon .advsmms-ov2-plat-tw,
.advsmms-slide-cart-line-icon .advsmms-ov2-plat-tg,
.advsmms-slide-cart-line-icon .advsmms-ov2-plat-gen {
    width: 44px; height: 44px; border-radius: 10px;
}
.advsmms-slide-cart-line-main { flex: 1 1 auto; min-width: 0; }
.advsmms-slide-cart-line-name {
    font-weight: 600;
    font-size: 14px;
    color: #1c1c1e;
    margin-bottom: 4px;
}
.advsmms-slide-cart-line-qty {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0f1;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #6b6b76;
}
.advsmms-slide-cart-line-price {
    font-weight: 700;
    font-size: 14px;
    color: #1c1c1e;
}
.advsmms-slide-cart-remove {
    width: 26px;
    height: 26px;
    border: 1px solid #e6e6ea;
    background: #fff;
    border-radius: 50%;
    color: #9a9aa3;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}
.advsmms-slide-cart-remove:hover { border-color: #d63638; color: #d63638; }

/* Recommended section */
.advsmms-slide-cart-recommended {
    margin-top: 24px;
    padding: 0;
    background: transparent;
    border-top: none;
}
.advsmms-slide-cart-recommended h4 {
    margin: 0 0 10px 4px;
    font-size: 11px;
    font-weight: 800;
    color: #9a9aa3;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.advsmms-slide-cart-rec-items { display: flex; flex-direction: column; gap: 8px; }
.advsmms-slide-cart-rec-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #eeeef0;
    border-radius: 12px;
}
.advsmms-slide-cart-rec-thumb {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.advsmms-slide-cart-rec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.advsmms-slide-cart-rec-thumb .advsmms-ov2-plat-ig,
.advsmms-slide-cart-rec-thumb .advsmms-ov2-plat-tt,
.advsmms-slide-cart-rec-thumb .advsmms-ov2-plat-yt,
.advsmms-slide-cart-rec-thumb .advsmms-ov2-plat-fb,
.advsmms-slide-cart-rec-thumb .advsmms-ov2-plat-tw,
.advsmms-slide-cart-rec-thumb .advsmms-ov2-plat-tg,
.advsmms-slide-cart-rec-thumb .advsmms-ov2-plat-gen {
    width: 42px; height: 42px; border-radius: 10px;
}
.advsmms-slide-cart-rec-info { flex: 1 1 auto; min-width: 0; }
.advsmms-slide-cart-rec-name {
    font-weight: 600;
    font-size: 14px;
    color: #1c1c1e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.advsmms-slide-cart-rec-price {
    font-size: 12px;
    color: #6b6b76;
    margin-top: 2px;
}
.advsmms-slide-cart-rec-add {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--advsmms-primary-light, #ff9e2c), var(--advsmms-primary, #ff5a0d));
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 12px var(--advsmms-primary-shadow, rgba(255,90,13,0.28));
    transition: transform .1s ease;
}
.advsmms-slide-cart-rec-add:hover { transform: scale(1.06); }
.advsmms-slide-cart-rec-add[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Footer: big checkout button + Clear Cart link */
.advsmms-slide-cart-foot {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #eeeef0;
}
.advsmms-slide-cart-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.3px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--advsmms-primary-light, #ff9e2c), var(--advsmms-primary, #ff5a0d));
    box-shadow: 0 6px 18px var(--advsmms-primary-shadow, rgba(255,90,13,0.28));
    transition: transform .1s ease;
    margin-bottom: 0;
}
.advsmms-slide-cart-checkout:hover { color: #fff; transform: translateY(-1px); }
.advsmms-slide-cart-sep { opacity: 0.7; }
.advsmms-slide-cart-arrow { font-size: 18px; }
.advsmms-slide-cart-clear {
    display: block;
    margin: 12px auto 0;
    border: none;
    background: transparent;
    color: #6b6b76;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
}
.advsmms-slide-cart-clear:hover { color: #d63638; }
.advsmms-slide-cart-clear[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Old .advsmms-slide-cart-items class shim — now hidden by new structure */
.advsmms-slide-cart-items { display: none; }
.advsmms-slide-cart-total-row { display: none; }
.advsmms-slide-cart-viewcart { display: none; }

/* Icon boxes for slide cart line + /advsmms-order/ summary (platform-colored container with SVG inside) */
.advsmms-cart-ic {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 44px;
}
.advsmms-cart-ic-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #515bd4); }
.advsmms-cart-ic-tiktok    { background: #000; }
.advsmms-cart-ic-youtube   { background: #ff0000; }
.advsmms-cart-ic-facebook  { background: #1877f2; }
.advsmms-cart-ic-twitter   { background: #000; }
.advsmms-cart-ic-telegram  { background: #229ed9; }
.advsmms-cart-ic-generic   { background: #6b6b76; }
.advsmms-cart-ic svg { width: 22px; height: 22px; }

/* Tier + qty badge row under the product name in slide cart */
.advsmms-slide-cart-line-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.advsmms-slide-cart-line-tier,
.advsmms-slide-cart-line-qty {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0f1;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #6b6b76;
}
.advsmms-slide-cart-line-tier { background: #eef5fc; color: #2563eb; }

/* Hide WooCommerce's auto-generated "View Cart →" button that appears after AJAX add-to-cart.
   We have our own slide cart, so the core WC one is redundant and ugly. */
a.added_to_cart,
a.wc-forward.added_to_cart,
.woocommerce-message .button.wc-forward,
.woocommerce-notices-wrapper .wc-forward,
.advsmms-product ~ a.added_to_cart,
.advsmms-product a.added_to_cart { display: none !important; }
