/**
 * ChaosBoost Checkout Styles - VERSIÃ"N CORREGIDA Y COMPLETA
 * Incluye responsive móvil completo
 * Compatible con footer y otros elementos del sitio
 */

/* ========== CHECKOUT CONTAINER ========== */
.chaosboost-checkout-container {
 
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Rajdhani', sans-serif;
    
}

.checkout-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 45px;
    line-height: 86.14%;
    color: #FFFFFF;
    margin: 0 0 50px 0;
    text-transform: uppercase;
}

/* ========== CHECKOUT GRID ========== */
.chaosboost-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ========== CART SUMMARY ========== */
.checkout-cart-summary {
    grid-column: 1 / -1;
}

.checkout-cart-summary h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #FFC908;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

/* ========== CART ITEMS ========== */
.checkout-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-cart-item {
    padding: 25px 0;
    position: relative;
    background-image: 
        url(https://dragonboosting.com/wp-content/uploads/2025/11/image-4-scaled.webp),
        url(https://dragonboosting.com/wp-content/uploads/2025/11/image-4-scaled.webp);
    background-repeat: no-repeat, no-repeat;
    background-position: top center, bottom center;
    background-size: 100% auto, 100% auto;
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;
    gap: 42px !important;
    align-items: center;
    transition: all 0.3s ease;
}

.checkout-cart-item.removing {
    opacity: 0.3;
    pointer-events: none;
}

/* ========== ITEM INFO ========== */
.item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 86.14%;
    color: #FFFFFF;
    margin: 0;
}

.item-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-meta p {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 500;
    font-size: 14px !important;
    line-height: 122% !important;
    color: #FFFFFF !important;
    margin: 0 !important;
    text-align: left !important;
    display: flex;
    gap: 5px;
}

.item-meta strong {
    color: #FFC908;
    font-weight: 500;
}

/* ========== ITEM CONTROLS ========== */
.item-quantity,
.item-price {
    display: flex;
    align-items: center;
    gap: 20px;
}

.checkout-cart-quantity {
    justify-self: end !important;
    margin-right: 15px !important;
}

.checkout-cart-price {
    justify-self: end !important;
}

/* ========== QUANTITY SELECTOR ========== */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(90deg, rgba(128, 105, 0, 0.4872) 0%, rgba(255, 201, 8, 0.84) 131.34%);
    border-radius: 12px;
    width: 257px;
    height: 39px;
    padding: 8px;
}

.qty-btn {
    background: #FFFFFF;
    border: none;
    cursor: pointer;
    width: 34px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
    padding: 0;
    position: relative;
}

.qty-btn.minus {
    border-radius: 2px 0 0 2px;
    background: url('https://dragonboosting.com/wp-content/uploads/2025/11/image-20.webp') center center no-repeat;
    background-size: 34px 16px;
}

.qty-btn.plus {
    border-radius: 0 2px 2px 0;
    background: url('https://dragonboosting.com/wp-content/uploads/2025/11/image-21.webp') center center no-repeat;
    background-size: 34px 16px;
}

.qty-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-btn::before,
.qty-btn::after {
    display: none !important;
}

.qty {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 122%;
    color: #FFFFFF;
    flex: 1;
    text-align: center;
    user-select: none;
}

/* ========== ITEM SUBTOTAL Y REMOVE ========== */
.item-subtotal {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 122%;
    color: #FFC908;
    min-width: 90px;
    text-align: center;
}

.remove-item {
    background: #362C00;
    border: none;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-image: url('https://dragonboosting.com/wp-content/uploads/2025/11/image-22.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    background-color: #362C00;
}

.remove-item::before {
    display: none !important;
}

.remove-item:hover:not(:disabled) {
    background-color: #4a3a00;
    transform: scale(1.05);
}

.remove-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== CART TOTAL ========== */
.cart-total {
    margin-top: 20px;
}

.cart-total h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 45px;
    line-height: 122%;
    color: #FFC908;
    margin: 0;
    text-align: right;
}

#cart-total-amount {
    color: #FFFFFF !important;
}

/* ========== FORM COLUMN ========== */
.checkout-form-column {
    padding: 35px 80px 35px 0px;
}

.checkout-form-column h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #FFFFFF;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(90deg, #997905 0%, #332802 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 201, 8, 0.3);
}

.form-row input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ========== PAYMENT COLUMN ========== */
.checkout-payment-column {
    padding: 35px 40px;
    background: linear-gradient(180deg, rgba(128, 105, 0, 0.58) 0%, rgba(26, 21, 0, 0.232) 141.25%);
    border-radius: 12px;
}

.checkout-payment-column h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #FFFFFF;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

/* ========== PAYMENT SECTION ========== */
.payment-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.payment-method-info {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 201, 8, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.stripe-payment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.stripe-payment-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #C4C4C3;
    margin: 0;
}

.payment-secure-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ========== STRIPE ELEMENTS ========== */
#stripe-card-element-container {
    background: #171300;
    border: none;
    border-radius: 12px;
    padding: 20px;
}

#stripe-card-element {
    padding: 12px;
    background: transparent;
}

.stripe-errors {
    color: #ff6666;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.stripe-error-message {
    background: rgba(255, 102, 102, 0.1);
    border: 1px solid #ff6666;
    color: #ff6666;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-align: center;
}

/* ========== DISCOUNT CODE ========== */
.discount-code {
    margin: 20px 0;
}

.discount-code label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.discount-input {
    display: flex;
    gap: 10px;
}

.discount-input input {
    flex: 1;
    padding: 12px 15px;
    background: #171300;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.discount-input input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 201, 8, 0.3);
}

.apply-discount {
    width: 177px;
    height: 60px;
    background: #171300;
    border-radius: 12px;
    border: none;
    color: #C4C4C3;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 122%;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-discount:hover {
    background: #FFD000;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 201, 8, 0.4);
}

#coupon-message {
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

/* ========== TERMS AGREEMENT ========== */
.checkout-agreements {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 110%;
    color: #C4C4C3;
    margin-bottom: 15px;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 30px;
    height: 30px;
    accent-color: #FFD000;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    background: #FFD000;
    border-radius: 8px;
}

.terms-link {
    color: #FFC908;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #FFD900;
}

/* ========== FINAL PRICE ========== */
.final-price {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 201, 8, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.final-price p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    color: #FFFFFF;
    margin: 0 0 12px 0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

.final-price p:last-child {
    margin-bottom: 0 !important;
}

.final-price .total-row {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid rgba(255, 201, 8, 0.3);
    font-size: 28px;
    font-weight: 700;
}

.price-value {
    font-weight: 700;
    color: #ffffff;
}

.total-amount {
    font-size: 32px;
}

/* ========== SUBMIT BUTTON ========== */
.checkout-submit-btn {
    width: 100%;
    padding: 18px;
    background: #FFC908;
    border: none;
    border-radius: 12px;
    color: #000000;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.checkout-submit-btn:hover:not(:disabled) {
    background: #FFD000;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 201, 8, 0.4);
}

.checkout-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-footer-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-align: center !important;
    margin: 15px 0 0 0 !important;
    line-height: 1.4 !important;
}

/* ========== EMPTY CART ========== */
.chaosboost-empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.87) 0%, rgba(26, 21, 0, 0.76) 34.25%);
    backdrop-filter: blur(12.35px);
    border-radius: 12px;
    margin: 40px 0;
}

.chaosboost-empty-cart p {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 24px !important;
    color: #FFFFFF !important;
    margin-bottom: 30px !important;
}

.chaosboost-empty-cart .button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFC908;
    color: #000000;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
}

.chaosboost-empty-cart .button:hover {
    background: #FFD000;
    transform: translateY(-2px);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-cart-item {
    animation: fadeIn 0.3s ease;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

/* ========== RESPONSIVE - TABLET (1024px) ========== */
@media (max-width: 1024px) {
    .chaosboost-checkout-container {
        padding: 30px 40px;
    }

    .chaosboost-checkout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .checkout-cart-item {
        grid-template-columns: 1fr auto auto;
        gap: 25px;
    }
    
    .checkout-form-column {
        padding: 25px 40px 25px 0;
    }
    
    .checkout-payment-column {
        padding: 25px 30px;
    }
}

/* ========== RESPONSIVE - MOBILE (768px) ========== */
@media (max-width: 768px) {
    .chaosboost-checkout-container {
        padding: 25px 15px;
    }
    
    .checkout-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .checkout-cart-summary h2,
    .checkout-form-column h2,
    .checkout-payment-column h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .checkout-cart-item {
        grid-template-columns: 1fr;
        padding: 20px 0;
        gap: 15px;
        background-size: 100% auto;
    }
    
    .item-info h3 {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .item-meta p {
        font-size: 13px !important;
    }
    
    .item-quantity {
        width: 100%;
        justify-content: space-between;
    }
    
    .item-price {
        width: 100%;
        justify-content: space-between;
    }
    
    .quantity-selector {
        width: 180px;
        height: 44px;
        flex-shrink: 0;
    }
    
    .qty-btn {
        width: 36px;
    }
    
    .qty-btn.minus,
    .qty-btn.plus {
        background-size: 30px 14px;
    }
    
    .qty {
        font-size: 24px;
    }
    
    .item-subtotal {
        font-size: 24px;
        min-width: 80px;
    }
    
    .remove-item {
        width: 44px;
        height: 44px;
        background-size: 22px 22px;
        flex-shrink: 0;
    }
    
    .cart-total h2 {
        font-size: 36px;
    }
    
    .checkout-form-column {
        padding: 20px 0;
    }
    
    .checkout-payment-column {
        padding: 25px 20px;
    }
    
    .form-row input,
    .form-row select {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .discount-input {
        flex-direction: column;
        gap: 12px;
    }
    
    .apply-discount {
        width: 100%;
        height: 54px;
        font-size: 20px;
    }
    
    .final-price p {
        font-size: 18px;
    }
    
    .final-price .total-row {
        font-size: 24px;
    }
    
    .total-amount {
        font-size: 28px;
    }
    
    .checkout-submit-btn {
        font-size: 20px;
        padding: 16px;
    }
}

/* ========== RESPONSIVE - SMALL MOBILE (480px) ========== */
@media (max-width: 480px) {
    .chaosboost-checkout-container {
        padding: 20px 12px;
    }

    .checkout-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .checkout-cart-summary h2,
    .checkout-form-column h2,
    .checkout-payment-column h2 {
        font-size: 20px;
    }
    
    .item-info h3 {
        font-size: 18px;
    }
    
    .item-meta p {
        font-size: 12px !important;
    }
    
    .quantity-selector {
        width: 150px;
        height: 42px;
    }
    
    .qty-btn {
        width: 34px;
    }
    
    .qty-btn.minus,
    .qty-btn.plus {
        background-size: 28px 13px;
    }
    
    .qty {
        font-size: 22px;
    }
    
    .item-subtotal {
        font-size: 22px;
        min-width: 70px;
    }
    
    .remove-item {
        width: 42px;
        height: 42px;
        background-size: 20px 20px;
    }
    
    .cart-total h2 {
        font-size: 32px;
    }
    
    .checkout-payment-column {
        padding: 20px 15px;
    }
    
    .apply-discount {
        height: 50px;
        font-size: 18px;
    }
    
    .checkbox-label {
        font-size: 14px;
        gap: 10px;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }
    
    .final-price {
        padding: 15px;
    }
    
    .final-price p {
        font-size: 16px;
    }
    
    .final-price .total-row {
        font-size: 22px;
    }
    
    .total-amount {
        font-size: 24px;
    }
    
    .checkout-submit-btn {
        font-size: 18px;
        padding: 14px;
    }
    
    .payment-footer-text {
        font-size: 11px !important;
    }
}

/* ========== EXTRA SMALL MOBILE (360px) ========== */
@media (max-width: 360px) {
    .chaosboost-checkout-container {
        padding: 15px 10px;
    }
    
    .checkout-title {
        font-size: 24px;
    }
    
    .quantity-selector {
        width: 140px;
        height: 40px;
    }
    
    .qty {
        font-size: 20px;
    }
    
    .item-subtotal {
        font-size: 20px;
    }
    
    .checkout-submit-btn {
        font-size: 16px;
        padding: 12px;
    }
}

/* ========== LANDSCAPE ORIENTATION ========== */
@media (max-width: 900px) and (orientation: landscape) {
    .chaosboost-checkout-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .checkout-cart-summary {
        grid-column: 1 / -1;
    }
}