/* ============================================================
   PMW Add to Cart Card — styles matching Figma design 177:33
   ============================================================ */

/* ── Card container ────────────────────────────────────────── */
.pmw-atc-card {
    background-color: #edf4ff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
    font-family: inherit;
    position: relative;
}

/* ── Price Row ─────────────────────────────────────────────── */
.pmw-atc-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.pmw-atc-price {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    color: #121c26;
}

/* WooCommerce price markup reset inside our price container */
.pmw-atc-price .woocommerce-Price-amount,
.pmw-atc-price .amount {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    color: #121c26;
}

.pmw-atc-price del {
    font-size: 20px;
    opacity: 0.55;
    margin-right: 6px;
}

.pmw-atc-price ins {
    text-decoration: none;
}

.pmw-atc-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 20px;
    color: #5d3f3b;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Body ──────────────────────────────────────────────────── */
.pmw-atc-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* ── Quantity Row ──────────────────────────────────────────── */
.pmw-atc-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pmw-atc-qty-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 20px;
    color: #121c26;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.pmw-atc-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(231, 189, 183, 0.2);
    border-radius: 12px;
    padding: 5px;
}

.pmw-atc-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
    outline: none;
}

.pmw-atc-qty-btn:hover {
    background-color: rgba(231, 189, 183, 0.15);
}

.pmw-atc-qty-btn:focus-visible {
    box-shadow: 0 0 0 2px #E82121;
}

.pmw-atc-qty-val {
    width: 48px;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    line-height: 28px;
    color: #121c26;
    user-select: none;
    flex-shrink: 0;
}

/* ── Add to Cart Button ────────────────────────────────────── */
.pmw-atc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(171.82deg, #E82121 0%, #E82121 100%);
    box-shadow:
        0px 10px 15px -3px rgba(192, 0, 15, 0.2),
        0px 4px 6px -4px rgba(192, 0, 15, 0.2);
    color: #ffffff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    outline: none;
    box-sizing: border-box;
}

.pmw-atc-btn:hover {
    opacity: 0.92;
    box-shadow:
        0px 14px 20px -3px rgba(192, 0, 15, 0.28),
        0px 6px 8px -4px rgba(192, 0, 15, 0.2);
}

.pmw-atc-btn:active {
    transform: scale(0.98);
}

.pmw-atc-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(192, 0, 15, 0.4);
}

.pmw-atc-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── PayPal Section ────────────────────────────────────────── */
.pmw-atc-paypal-section {
    padding-top: 8px;
}

/* Hide WooCommerce's default form elements — we use our own UI */
.pmw-atc-wc-wrapper > form.cart,
.pmw-atc-wc-wrapper .cart {
    display: none !important;
}

/* Show PPCP PayPal message (e.g. "Pay in 4") */
.pmw-atc-wc-wrapper .ppcp-messages {
    display: block;
    margin-bottom: 8px;
}

/* Show PPCP PayPal Smart Button wrapper */
.pmw-atc-wc-wrapper .ppc-button-wrapper {
    display: block;
}

/* Round PPCP button container to match design */
.pmw-atc-wc-wrapper .ppc-button-wrapper > div {
    border-radius: 12px;
    overflow: hidden;
}

.pmw-atc-wc-wrapper .paypal-buttons {
    border-radius: 12px !important;
    min-height: 48px !important;
}
