/**
 * Mr. Ted Shop — MX Checkout Pro Theme Override v2
 * Selectores verificados contra HTML real del plugin
 */

/* ── Variables globales ── */
.mxcheckout {
    --mxcheckout-primary:        #7b42cd;
    --mxcheckout-primary-hover:  #5c2fa0;
    --mxcheckout-success:        #53ffa7;
    --mxcheckout-error:          #ff6464;
    --mxcheckout-text:           #e5deff;
    --mxcheckout-text-muted:     rgba(205, 195, 213, 0.55);
    --mxcheckout-border:         rgba(123, 66, 205, 0.25);
    --mxcheckout-border-focus:   #7b42cd;
    --mxcheckout-bg:             #130647;
    --mxcheckout-bg-secondary:   rgba(30, 21, 82, 0.6);
    --mxcheckout-bg-sidebar:     rgba(63, 33, 105, 0.35);
    --mxcheckout-radius:         6px;
    --mxcheckout-radius-sm:      4px;
    --mxcheckout-shadow:         0 4px 24px rgba(19, 6, 71, 0.4);
    --mxcheckout-font:           'Inter', system-ui, sans-serif;
    --mxcheckout-gap:            24px;
    padding: 2.5rem 1.5rem;
}

/* ── Section titles (.mxcheckout__section-title) ── */
.mxcheckout__section-title {
    font-family: var(--mt-font-display) !important;
    font-size: 1.6rem !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.875rem !important;
    border-bottom: 1px solid rgba(123, 66, 205, 0.2) !important;
}

/* ── Labels ── */
.mxcheckout label,
.mxcheckout .form-row label {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: rgba(205, 195, 213, 0.55) !important;
    margin-bottom: 0.4rem !important;
}

/* ── Inputs (.input-text) ── */
.mxcheckout .input-text,
.mxcheckout input[type="text"],
.mxcheckout input[type="email"],
.mxcheckout input[type="tel"],
.mxcheckout input[type="password"],
.mxcheckout select,
.mxcheckout textarea {
    background: rgba(30, 21, 82, 0.8) !important;
    border: 1px solid rgba(123, 66, 205, 0.25) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    padding: 0.875rem 1rem !important;
    width: 100% !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
}

.mxcheckout .input-text:focus,
.mxcheckout input:focus,
.mxcheckout select:focus {
    border-color: #7b42cd !important;
    box-shadow: 0 0 0 3px rgba(123, 66, 205, 0.15) !important;
    outline: none !important;
}

.mxcheckout input:-webkit-autofill,
.mxcheckout input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1a104e inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
}

/* Select arrow */
.mxcheckout select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.5rem !important;
}

/* ── Sidebar summary ── */
.mxcheckout__sidebar {
    background: rgba(63, 33, 105, 0.3) !important;
    border: 1px solid rgba(123, 66, 205, 0.2) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

/* Sidebar title (.mxcheckout-summary__title) */
.mxcheckout-summary__title {
    font-family: var(--mt-font-display, 'Georgia', serif) !important;
    font-size: 1.75rem !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
    padding: 1.25rem 1.5rem !important;
    background: rgba(30, 21, 82, 0.5) !important;
    border-bottom: 1px solid rgba(123, 66, 205, 0.2) !important;
    margin: 0 !important;
}

/* Items en sidebar */
.mxcheckout__cart-item-name {
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #ffffff !important;
}

.mxcheckout__cart-item-price,
.mxcheckout__cart-item-subtotal {
    color: #53ffa7 !important;
    font-weight: 700 !important;
}

/* Totales */
.mxcheckout-summary__row {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: rgba(205, 195, 213, 0.5) !important;
    padding: 0.4rem 0 !important;
}

.mxcheckout-summary__row--total {
    font-size: 1.1rem !important;
    color: #ffffff !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid rgba(123, 66, 205, 0.3) !important;
}

.mxcheckout-summary__row--total .woocommerce-Price-amount,
.mxcheckout-summary__row--total .amount {
    color: #53ffa7 !important;
    font-size: 1.4rem !important;
}

/* Qty buttons */
.mxcheckout__qty-btn {
    background: rgba(123, 66, 205, 0.2) !important;
    border: 1px solid rgba(123, 66, 205, 0.35) !important;
    color: #ffffff !important;
    border-radius: 3px !important;
}

.mxcheckout__qty-btn:hover {
    background: #7b42cd !important;
}

/* Coupon */
.mxcheckout__coupon .input-text,
.mxcheckout__coupon input {
    background: rgba(30, 21, 82, 0.7) !important;
    border: 1px solid rgba(123, 66, 205, 0.2) !important;
    color: #ffffff !important;
    border-radius: 4px 0 0 4px !important;
}

.mxcheckout__coupon-btn,
.mxcheckout__coupon button {
    background: rgba(123, 66, 205, 0.3) !important;
    border: 1px solid rgba(123, 66, 205, 0.4) !important;
    color: #53ffa7 !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border-radius: 0 4px 4px 0 !important;
}

.mxcheckout__coupon-btn:hover,
.mxcheckout__coupon button:hover {
    background: #7b42cd !important;
    color: #ffffff !important;
}

/* Trust badges */
.mxcheckout__trust-badge-label {
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: rgba(205, 195, 213, 0.45) !important;
}

/* ── Métodos de pago ── */
.mxcheckout .wc_payment_methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.mxcheckout .wc_payment_methods li {
    background: rgba(63, 33, 105, 0.3) !important;
    border: 1px solid rgba(123, 66, 205, 0.15) !important;
    border-radius: 4px !important;
    padding: 1rem 1.25rem !important;
    transition: border-color 0.15s ease !important;
    list-style: none !important;
}

.mxcheckout .wc_payment_methods li:has(input:checked) {
    border-color: #7b42cd !important;
    background: rgba(123, 66, 205, 0.15) !important;
}

.mxcheckout .wc_payment_methods li label {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

.mxcheckout .wc_payment_methods li input[type="radio"] {
    accent-color: #7b42cd !important;
}

.mxcheckout .payment_box {
    background: rgba(30, 21, 82, 0.4) !important;
    border-top: 1px solid rgba(123, 66, 205, 0.1) !important;
    color: rgba(205, 195, 213, 0.6) !important;
    font-size: 0.8rem !important;
    padding: 0.875rem 1.25rem !important;
}

/* ── Place Order ── */
.mxcheckout #place_order,
.mxcheckout .woocommerce-button.button.alt,
#place_order {
    background: #53ffa7 !important;
    color: #130647 !important;
    font-family: var(--mt-font-display, 'Georgia', serif) !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 3px !important;
    padding: 1rem 2rem !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
    box-shadow: 0 0 30px rgba(83, 255, 167, 0.2) !important;
    margin-top: 1rem !important;
}

.mxcheckout #place_order:hover,
#place_order:hover {
    opacity: 0.88 !important;
}

/* ── Checkbox CFDI ── */
.mxcheckout input[type="checkbox"] {
    accent-color: #7b42cd !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

/* ── Mobile toggle ── */
.mxcheckout__mobile-summary-btn {
    background: rgba(63, 33, 105, 0.6) !important;
    color: #53ffa7 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

.mxcheckout__mobile-summary-total {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #53ffa7 !important;
}

/* ── Notices ── */
.mxcheckout .woocommerce-message,
.mxcheckout .woocommerce-info {
    background: rgba(83, 255, 167, 0.08) !important;
    border-left: 3px solid #53ffa7 !important;
    color: #53ffa7 !important;
    padding: 0.875rem 1.25rem !important;
    border-radius: 0 4px 4px 0 !important;
    list-style: none !important;
}

.mxcheckout .woocommerce-error {
    background: rgba(255, 100, 100, 0.08) !important;
    border-left: 3px solid #ff6464 !important;
    color: #ff9999 !important;
    padding: 0.875rem 1.25rem !important;
    border-radius: 0 4px 4px 0 !important;
    list-style: none !important;
}

.mxcheckout .woocommerce-error::before,
.mxcheckout .woocommerce-message::before,
.mxcheckout .woocommerce-info::before {
    display: none !important;
}

/* ── Logged in as ── */
.mxcheckout__logged-in-as {
    font-size: 0.8rem !important;
    color: rgba(205, 195, 213, 0.5) !important;
    margin-bottom: 1.25rem !important;
}

.mxcheckout__logged-in-as strong {
    color: rgba(205, 195, 213, 0.8) !important;
}

.mxcheckout__logged-in-as a {
    color: #53ffa7 !important;
    text-decoration: none !important;
}
