/* ============================================================
   Related Product Card Section  v1.1.0 (card design matched to Category Page Product Tab)
   Amber ORDER button · Outlined cart · Sale badge
   ============================================================ */

.rppt-wrapper *,
.rppt-wrapper *::before,
.rppt-wrapper *::after { box-sizing: border-box; }

.rppt-wrapper a,
.rppt-wrapper a:link,
.rppt-wrapper a:visited,
.rppt-wrapper a:hover,
.rppt-wrapper a:active,
.rppt-wrapper a:focus { text-decoration: none !important; }

.rppt-wrapper {
    --rppt-accent: #ED1C24;
    font-family: 'Poppins', inherit, sans-serif;
    background: #fff;
    color: inherit;
}

/* ── Header Row ────────────────────────────────────────────── */
.rppt-header-row {
    display: flex;
    align-items: stretch;
    border-bottom: 4px solid var(--rppt-accent);
    background: #fff;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.rppt-section-label {
    background: linear-gradient(135deg, #F47B31 0%, #ED1C24 100%)!important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 0 16px 0 0;
    padding: 12px 22px 12px 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 30px;
}

/* ── Body ──────────────────────────────────────────────────── */
.rppt-body { display: flex; align-items: stretch; }

.rppt-products-wrap { flex: 1; position: relative; min-width: 0; }

.rppt-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Row divider under every row except the last.
   Border on all cards, then removed from the last row (1-4 items). */
.rppt-products-grid .rppt-product-card {
    border-bottom: 1px solid #DDDDDD;
}
/* 4-column layout: strip border from the last row */
@media (min-width: 901px) {
    .rppt-products-grid .rppt-product-card:nth-last-child(-n+4):nth-child(4n+1),
    .rppt-products-grid .rppt-product-card:nth-last-child(-n+4):nth-child(4n+1) ~ .rppt-product-card {
        border-bottom: none;
    }
}

/* ── Product Card ──────────────────────────────────────────── */
.rppt-product-card { display: flex; }

.rppt-product-inner {
    display: block;
    width: 100%;
    border: 2px solid transparent;
    padding: 10px 10px 12px;
    transition: border-color .2s;
    background: #fff;
    height: 100%;
}
 
.rppt-product-card:hover .rppt-product-inner{
    border:2px solid #F47B31!important;
}

/* ── Product Image area ────────────────────────────────────── */
.rppt-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius:6px;
}

.rppt-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position:relative;
}

.rppt-product-image img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform .35s;
    display: block;
}

.rppt-product-card:hover .rppt-product-image img { transform: scale(1.06); }

/* ── Sale / Discount Badge ─────────────────────────────────── */
.rppt-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: #ED1C24;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 5px;
    letter-spacing: .02em;
    box-shadow: 0 2px 6px rgba(237,28,36,.35);
}

/* ── Image hover overlay (eye + wishlist icons) ───────────── */
.rppt-image-overlay {
    inset: 0;
    display: flex;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}

.rppt-image-overlay .rppt-quickview-btn,
.rppt-image-overlay .rppt-wishlist-btn {
    pointer-events: auto;
}

.rppt-quickview-btn {
    width: 42px;
    height: 42px;
    border-radius: 50px;
    background: #ED1C24;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transform: translateY(8px);
    opacity: 0;
    transition: transform .25s, opacity .25s, background .2s, color .2s;
    position: absolute;
    right: 10px;
    top: 10px;
    padding:0px;
}

.rppt-product-card:hover .rppt-quickview-btn {
    transform: translateY(0);
    opacity: 1;
}

.rppt-quickview-btn:hover {
    background:#c41219;
    color: #fff;
}

.rppt-quickview-btn svg { width: 20px; height: 20px; color:#ffffff;}

/* ── Wishlist heart (round red badge below the quick-view eye) ── */
.rppt-wishlist-btn {
    width: 42px;
    height: 42px;
    border-radius: 50px;
    background: #ED1C24;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 60px; /* 10px + 42px eye height + 8px gap */
    opacity: 0;
    transform: translateY(8px);
    transition: transform .25s, opacity .25s, background .2s, color .2s;
    z-index: 2;
}
.rppt-product-card:hover .rppt-wishlist-btn {
    opacity: 1;
    transform: translateY(0);
}
.rppt-wishlist-btn:hover { background: #c41219; }

.rppt-wishlist-btn svg { width: 18px; height: 18px; display: block; }

/* YITH WooCommerce Wishlist — fit inside the round red badge */
.rppt-wishlist-btn .yith-wcwl-add-to-wishlist,
.rppt-wishlist-btn .yith-wcwl-add-button,
.rppt-wishlist-btn .yith-wcwl-wishlistexistsbrowse,
.rppt-wishlist-btn .yith-wcwl-wishlistaddedbrowse {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.rppt-wishlist-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    line-height: 1;
}
/* Icon only — hide YITH label text + tooltip, keep the .feedback message */
.rppt-wishlist-btn a span,
.rppt-wishlist-btn .yith-wcwl-add-to-wishlist-tooltip {
    display: none !important;
}
.rppt-wishlist-btn .feedback {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    white-space: nowrap;
    background: #111;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    z-index: 5;
    pointer-events: none;
}
.rppt-wishlist-btn i,
.rppt-wishlist-btn svg {
    width: 20px!important;
    height: 20px!important;
    margin: 0;
    color: #fff!important;
}
.rppt-wishlist-btn .yith-wcwl-wishlistexistsbrowse i,
.rppt-wishlist-btn .yith-wcwl-wishlistaddedbrowse i,
.rppt-wishlist-btn a.exists i { color: #fff!important; }
.rppt-wishlist-btn .ajax-loading { position: absolute; margin: 0; }

/* Self-rendered fallback heart: outline ↔ filled toggle */
.rppt-wishlist-btn .rppt-wl-o,
.rppt-wishlist-btn .rppt-wl-f {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: #fff;
}
.rppt-wishlist-btn .rppt-wl-f { display: none; }
.rppt-wishlist-btn .rppt-wl-link.is-active .rppt-wl-o { display: none; }
.rppt-wishlist-btn .rppt-wl-link.is-active .rppt-wl-f { display: inline-flex; }

/* ── Product Info (link) ───────────────────────────────────── */
.rppt-product-info-link {
    display: block;
    color: inherit;
    text-decoration: none !important;
    text-align: left;
}

.rppt-product-info { padding: 2px 2px 0; margin-top:25px; }

.rppt-brand {
    display: block;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    color: #A2A2A2;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .04em;
    margin-bottom: 5px;
}

/* Price — current (sale) price first, then "Was [regular]" struck through */
.rppt-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    margin: 0 0 5px !important;
    line-height: 1.2;
}
.rppt-price-current {
    font-size: 16px;
    font-weight: 500;
    color: #ED1C24;
    text-transform: uppercase;
}
.rppt-price-current .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
.rppt-price-was {
    font-size: 14px;
    font-weight: 400;
    color: #A2A2A2;
    text-transform: uppercase;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.rppt-price-was::before { content: "|"; color: #A2A2A2; font-weight: 400; }
.rppt-price-was del { text-decoration: line-through; color: #A2A2A2; font-weight: 400; }
.rppt-price-was .woocommerce-Price-amount { color: inherit; font-weight: inherit; }

.rppt-title {
    font-family: 'Poppins', sans-serif;
    color: #000000 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    margin: 0 0 5px !important;
    transition: color .2s;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rppt-product-card:hover .rppt-title { color: #ED1C24 !important; }

.rppt-rating { display: flex; align-items: center; gap: 1px; margin-top: 4px; }
.rppt-star   { font-size: 14px; line-height: 1; color: #ddd; }
.rppt-star.full, .rppt-star.half { color: #F47B31; }
.rppt-review-count { font-size: 11px; color: #A2A2A2; margin-left: 3px; }

/* ── Loading Overlay ───────────────────────────────────────── */
.rppt-loading-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.7);
    opacity: 0; pointer-events: none;
    transition: opacity .2s; z-index: 10;
}
.rppt-loading-overlay.visible { opacity: 1; pointer-events: all; }

.rppt-spinner {
    width: 34px; height: 34px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--rppt-accent);
    border-radius: 50%;
    animation: rppt-spin .7s linear infinite;
}

@keyframes rppt-spin { to { transform: rotate(360deg); } }

/* ── Load More Button ──────────────────────────────────────── */
.rppt-load-more-wrap { display: flex; justify-content: center; padding: 30px 0 10px; }

.rppt-load-more-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: #fff; color: var(--rppt-accent); border: 2px solid var(--rppt-accent);
    border-radius: 30px; padding: 12px 36px; font-size: 13px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
    outline: none; appearance: none; -webkit-appearance: none;
    transition: background .22s, color .22s, box-shadow .22s; min-width: 180px;
}
.rppt-load-more-btn:hover { background: var(--rppt-accent); color: #fff; box-shadow: 0 4px 14px rgba(245,166,35,.3); }
.rppt-load-more-btn:disabled { opacity: .65; cursor: wait; }

.rppt-load-more-spinner {
    display: none; width: 14px; height: 14px;
    border: 2px solid currentColor; border-top-color: transparent;
    border-radius: 50%; animation: rppt-spin .6s linear infinite;
}
.rppt-load-more-btn.is-loading .rppt-load-more-spinner { display: inline-block; }

.rppt-no-products {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; color: #bbb; font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════
   QUICK VIEW MODAL
   ══════════════════════════════════════════════════════════════ */
.rppt-qv-modal {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
}
.rppt-qv-modal.is-open { opacity: 1; pointer-events: all; }

.rppt-qv-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.52);
}

.rppt-qv-dialog {
    position: relative; background: #fff;
    border-radius: 10px; width: 92%;
    max-width: 880px; max-height: 92vh;
    overflow-y: auto; z-index: 1;
    transform: translateY(24px);
    transition: transform .3s;
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.rppt-qv-modal.is-open .rppt-qv-dialog { transform: translateY(0); }

.rppt-qv-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background .2s, color .2s;
    padding: 0;
}
.rppt-qv-close:hover { background: #ED1C24; color: #fff;}
.rppt-qv-close svg   { width: 16px; height: 16px; position: absolute;}

.rppt-qv-loading {
    display: flex; align-items: center; justify-content: center;
    padding: 80px;
}
.rppt-qv-spinner {
    width: 42px; height: 42px;
    border: 3px solid #eee;
    border-top-color: var(--rppt-accent);
    border-radius: 50%;
    animation: rppt-spin .7s linear infinite;
}

.rppt-qv-body {
    display: grid;
    grid-template-columns: 42% 1fr;
}

.rppt-qv-image-col {
    display: flex; align-items: center; justify-content: center;
    background: #f7f7f7;
    padding: 36px 28px;
    border-radius: 10px 0 0 10px;
    min-height: 360px;
}
.rppt-qv-main-image img {
    max-width: 100%; height: auto;
    max-height: 340px; object-fit: contain; display: block;
}

.rppt-qv-info-col {
    padding: 32px 32px 26px;
    display: flex; flex-direction: column;
}

.rppt-qv-brand {
    font-size: 11px; font-weight: 600; color: #bbb;
    text-transform: uppercase; letter-spacing: .1em;
    margin-bottom: 8px;
}

.rppt-qv-title {
    font-size: 22px; font-weight: 400; color: #000000;
    margin: 0 0 10px; line-height: 1.3;
}

.rppt-qv-rating {
    display: flex; align-items: center; gap: 2px;
    margin-bottom: 12px;
}
.rppt-qv-star       { font-size: 15px; color: #ddd; }
.rppt-qv-star.full, .rppt-qv-star.half { color: #FFA726; }
.rppt-qv-review-count { font-size: 12px; color: #bbb; margin-left: 6px; }

.rppt-qv-price-wrap { margin-bottom: 14px; }
.rppt-qv-price,
.rppt-qv-price * { font-size: 22px !important; font-weight: 700 !important; color: #000000important; }
.rppt-qv-price ins { color: var(--rppt-accent) !important; text-decoration: none !important; }
.rppt-qv-price del { font-size: 17px !important; color: #bbb !important; font-weight: 400 !important; text-decoration: line-through !important; }

.rppt-qv-desc {
    font-size: 14px; color: #555; line-height: 1.65;
    margin-bottom: 14px; padding-top: 14px;
    border-top: 1px solid #eee;
}
.rppt-qv-desc p { margin: 0; }

.rppt-qv-sku { font-size: 12px; color: #aaa; margin-bottom: 14px; }
.rppt-qv-sku span { color: #666; }

.rppt-qv-attributes {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 16px; padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.rppt-qv-attr-row { display: flex; align-items: center; gap: 14px; }
.rppt-qv-attr-label { min-width: 62px; font-size: 16px; font-weight: 700; color: #000000; }
.rppt-qv-attr-select {
    flex: 1; padding: 8px 32px 8px 12px;
    border: 1px solid #ddd; border-radius: 6px;
    font-size: 16px; background: #fff; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
    transition: border-color .2s;
}
.rppt-qv-attr-select:focus { outline: none; border-color: var(--rppt-accent); }

.rppt-qv-variation-price { font-size: 22px; font-weight: 700; color: var(--rppt-accent); margin-bottom: 12px; }
.rppt-qv-variation-notice { font-size: 13px; color: #b33; background: #fff8ee; border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; }

.rppt-qv-form { margin-top: auto; }
.rppt-qv-qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.rppt-qv-qty-wrap {
    display: flex; align-items: center;
    border: 1.5px solid #ddd; border-radius: 6px;
    overflow: hidden; flex-shrink: 0;
}
.rppt-qv-qty-btn {
    width: 36px; height: 44px; border: none;
    background: #f5f5f5; cursor: pointer;
    font-size: 20px; line-height: 1; color: #555;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.rppt-qv-qty-btn:hover { background: #ebebeb; }
.rppt-qv-qty {
    width: 50px; height: 44px;
    border: none; border-left: 1.5px solid #ddd; border-right: 1.5px solid #ddd;
    text-align: center; font-size: 15px; font-weight: 600;
    -moz-appearance: textfield;
}
.rppt-qv-qty::-webkit-inner-spin-button,
.rppt-qv-qty::-webkit-outer-spin-button { -webkit-appearance: none; }

.rppt-qv-atc-btn {
    flex: 1; height: 46px;
    background: var(--rppt-accent);
    color: #fff; border: none; border-radius: 6px;
    font-size: 13px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 8px;
    transition: filter .18s, opacity .2s; position: relative;
}
.rppt-qv-atc-btn:hover:not(:disabled) { filter: brightness(1.08); }
.rppt-qv-atc-btn:disabled { opacity: .4; cursor: not-allowed; }
.rppt-qv-atc-spinner {
    display: none; width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
    border-radius: 50%; animation: rppt-spin .6s linear infinite;
}
.rppt-qv-atc-btn.is-loading .rppt-qv-atc-text    { opacity: 0; }
.rppt-qv-atc-btn.is-loading .rppt-qv-atc-spinner { display: inline-block; }

.rppt-qv-view-full {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; color: var(--rppt-accent) !important;
    font-weight: 500; transition: gap .15s;
}
.rppt-qv-view-full:hover { gap: 9px !important; }
.rppt-qv-error { padding: 40px; text-align: center; color: #c0392b; font-size: 14px; }

body.rppt-modal-open { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════ */
.rppt-toast {
    position: fixed;
    bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #222; color: #fff;
    padding: 11px 22px; border-radius: 30px;
    font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 8px;
    opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s;
    z-index: 999999; white-space: nowrap;
    box-shadow: 0 4px 18px rgba(0,0,0,.2);
}
.rppt-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.rppt-toast.is-error   { background: #c0392b; }
.rppt-toast-icon       { font-size: 15px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .rppt-body { flex-direction: column; padding: 0 12px; }
    .rppt-products-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 2-column layout: divider on every row except the last */
@media (max-width: 900px) and (min-width: 381px) {
    .rppt-products-grid .rppt-product-card:nth-last-child(-n+2):nth-child(2n+1),
    .rppt-products-grid .rppt-product-card:nth-last-child(-n+2):nth-child(2n+1) ~ .rppt-product-card {
        border-bottom: none;
    }
}

@media (max-width: 680px) {
    .rppt-qv-body { grid-template-columns: 1fr; }
    .rppt-qv-image-col { border-radius: 10px 10px 0 0; padding: 24px 20px; min-height: auto; }
    .rppt-qv-main-image img { max-height: 200px; }
    .rppt-qv-info-col { padding: 20px; }
    .rppt-qv-title { font-size: 18px; }
}

@media (max-width: 520px) {
    .rppt-header-row { flex-direction: column; }
    .rppt-products-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .rppt-load-more-btn { padding: 11px 28px; font-size: 12px; min-width: 150px; }
    .rppt-qv-dialog { width: 98%; }
}

@media (max-width: 380px) {
    .rppt-products-grid { grid-template-columns: 1fr !important; }
    /* 1-column layout: divider on every row except the last */
    .rppt-products-grid .rppt-product-card:last-child { border-bottom: none; }
}

/* ══════════════════════════════════════════════════════════════
   THEME-OVERRIDE GUARDS  (v2.1.2)
   Higher specificity + !important to defeat aggressive theme rules
   that broke the modal layout (huge title, missing ATC button,
   vertically wrapped "View Full Product" link).
   ══════════════════════════════════════════════════════════════ */

/* Modal dialog itself */
.rppt-qv-modal .rppt-qv-dialog {
    box-sizing: border-box !important;
    background: #fff !important;
}

/* Title — defeat theme h2 overrides */
.rppt-qv-modal .rppt-qv-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #111 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: inherit !important;
}

/* Price */
.rppt-qv-modal .rppt-qv-price,
.rppt-qv-modal .rppt-qv-price * {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--rppt-accent) !important;
    line-height: 1.3 !important;
}
.rppt-qv-modal .rppt-qv-price del {
    font-size: 16px !important;
    color: #bbb !important;
    font-weight: 400 !important;
}

/* Info column */
.rppt-qv-modal .rppt-qv-info-col {
    display: flex !important;
    flex-direction: column !important;
    padding: 32px 32px 26px !important;
}

/* Form block */
.rppt-qv-modal .rppt-qv-form {
    margin-top: auto;
    display: block !important;
    width: 100% !important;
}

/* QTY + ATC row — must stay one row */
.rppt-qv-modal .rppt-qv-qty-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 14px !important;
}

/* QTY stepper wrap */
.rppt-qv-modal .rppt-qv-qty-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    width: auto !important;
}

/* All buttons inside modal — clean reset against theme button styles */
.rppt-qv-modal button {
    box-sizing: border-box !important;
    font-family: inherit !important;
    line-height: 1 !important;
    text-transform: none;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ATC button — must be visible! */
.rppt-qv-modal .rppt-qv-atc-btn {
    display: inline-flex !important;
    flex: 1 1 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 140px !important;
    max-width: none !important;
    height: 46px !important;
    padding: 0 16px !important;
    background: var(--rppt-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    gap: 8px !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1;
    overflow: hidden !important;
    white-space: nowrap !important;
}
.rppt-qv-modal .rppt-qv-atc-btn:disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
    display: inline-flex !important;
    visibility: visible !important;
}
.rppt-qv-modal .rppt-qv-atc-btn:hover:not(:disabled) {
    filter: brightness(1.08) !important;
    background: var(--rppt-accent) !important;
    color: #fff !important;
}

/* Qty stepper buttons */
.rppt-qv-modal .rppt-qv-qty-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 44px !important;
    background: #f5f5f5 !important;
    border: none !important;
    border-radius: 0 !important;
    color: #555 !important;
    cursor: pointer !important;
    font-size: 20px !important;
    padding: 0 !important;
}
.rppt-qv-modal .rppt-qv-qty {
    width: 50px !important;
    height: 44px !important;
    border: none !important;
    border-left: 1.5px solid #ddd !important;
    border-right: 1.5px solid #ddd !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background: #fff !important;
    color: #111 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* View Full Product link — must stay on one line */
.rppt-qv-modal .rppt-qv-view-full {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    width: fit-content !important;
    max-width: 100% !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--rppt-accent) !important;
    text-decoration: none !important;
    line-height: 1 !important;
    padding: 4px 0 !important;
}
.rppt-qv-modal .rppt-qv-view-full svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.rppt-qv-modal .rppt-qv-view-full:hover{
    color:#ED1C24!important;
}

/* Variation attribute selects */
.rppt-qv-modal .rppt-qv-attr-select {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
}

/* Brand label */
.rppt-qv-modal .rppt-qv-brand {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #bbb !important;
    text-transform: uppercase !important;
    letter-spacing: .1em !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
}

/* Description */
.rppt-qv-modal .rppt-qv-desc {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.65 !important;
    margin: 0 0 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #eee !important;
}

/* Mobile: stack qty + ATC if needed */
@media (max-width: 480px) {
    .rppt-qv-modal .rppt-qv-title { font-size: 18px !important; }
    .rppt-qv-modal .rppt-qv-atc-btn { min-width: 0 !important; font-size: 12px !important; }
}

/* ══════════════════════════════════════════════════════════════
   MODAL ORDER + CART BUTTONS  (v2.1.3)
   These work alongside the inline styles in PHP for maximum
   defeat-the-theme reliability.
   ══════════════════════════════════════════════════════════════ */

.rppt-qv-modal .rppt-qv-buttons-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
}

.rppt-qv-modal .rppt-qv-order-btn {
    flex: 1 1 140px !important;
    min-width: 140px !important;
    height: 46px !important;
    background: #ED1C24 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
.rppt-qv-modal .rppt-qv-order-btn:hover{ opacity:0.8!important; }
.rppt-qv-modal .rppt-qv-order-btn:disabled { opacity: .55 !important; cursor: not-allowed !important; display: inline-flex !important; }

.rppt-qv-modal .rppt-qv-order-spinner {
    display: none;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rppt-spin .65s linear infinite;
}
.rppt-qv-modal .rppt-qv-order-btn .rppt-qv-order-spinner[style*="display: block"],
.rppt-qv-modal .rppt-qv-order-btn .rppt-qv-order-spinner[style*="inline"] {
    position: absolute;
}

.rppt-qv-modal .rppt-qv-cart-btn {
    width: 46px !important;
    height: 46px !important;
    flex-shrink: 0 !important;
    border: 2px solid #ED1C24 !important;
    background: #fff !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ED1C24 !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.rppt-qv-modal .rppt-qv-cart-btn:hover:not(:disabled) {
    background: #ED1C24 !important;
    color: #fff !important;
}
.rppt-qv-modal .rppt-qv-cart-btn:disabled { opacity: .55 !important; cursor: not-allowed !important; display: inline-flex !important; }

.rppt-qv-modal .rppt-qv-cart-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: rppt-spin .65s linear infinite;
}

.rppt-qv-modal .rppt-qv-cart-btn svg {
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
    pointer-events: none;
}
