body {
    background-color: #F6F6F6 !important;
}


/* Checkout Container */
.checkout-container {
    padding: 2rem 0;
}

.checkout-section {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Form Elements */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff !important;
    padding-right: calc(1.5em + 0.75rem) !important;
}

.invalid-feedback {
    display: block !important;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
} */

/* Payment Fields */
.payment-fields {
    margin-top: 1rem;
}

.payment-field {
    padding: 10px;
    background: white;
    height: 40px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.payment-field.StripeElement--focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.payment-field.StripeElement--invalid {
    border-color: #dc3545;
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: 60px;
}

.checkout-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #dee2e6;
}

/* Error Messages */
#card-errors {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.5rem;
}

/* Select2 Customization */
.select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.checkout-items-list {
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

#checkout-items .item-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    flex-shrink: 0;

    background: #fff;
    padding: 10px;

}

#checkout-items .item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-item-details {
    flex: 1;
}

.checkout-item-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.checkout-item-options {
    font-size: 14px;
    color: #666;
}

.checkout-item-color {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

.discounted-price {
    color: #4CAF50;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 15px;
}

.quantity-adjust {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.quantity-adjust:hover {
    background: #f8f9fa;
    border-color: #ced4da;
}

.quantity-adjust.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-value {
    min-width: 20px;
    text-align: center;
}

.checkout-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

/* Payment Submit Button */
.checkout-submit .btn {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    background-color: #28a745;
    border-color: #28a745;
    transition: all 0.3s ease;
}

#submit-button {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    background-color: #28a745;
    border-color: #28a745;
    transition: all 0.3s ease;
    color: #fff;
    width: 100%;
}



#submit-button :hover {
    background-color: #18702b;
    border-color: #18702b;
    transform: translateY(-1px);
}

#submit-button:active {
    transform: translateY(0);
}

.checkout-submit .btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
}

.checkout-submit .btn:active {
    transform: translateY(0);
}

/* Garantir que o select2 também mostre erro */
.select2-container--default .select2-selection--single.is-invalid {
    border-color: #dc3545 !important;
}

/* Shipping Calculation */
.shipping-calculation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.shipping-amount {
    display: flex;
    justify-content: space-between;
}

.shipping-amount .amount {
    font-weight: 500;
}

.shipping-note {
    font-size: 0.875em;
    color: #666;
}

/* ZIP Code Loading */
#zip-loading {
    display: none;
    font-size: 0.875em;
    color: #666;
    margin-top: 0.25rem;
}

/* Campo de CEP */
.postal-code-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.postal-code-field .spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

/* Campos bloqueados */
.form-control[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Ordem dos campos */
.address-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-fields > div:first-child {
    order: 1; /* País */
}

.postal-code-field {
    order: 2; /* CEP */
}

.name-fields {
    order: 3; /* Nome */
}

.address-line {
    order: 4; /* Endereço */
}

.city-state-fields {
    order: 5; /* Cidade/Estado */
}

.tax-rate,
.shipping-rate {
    font-size: 0.85em;
    color: #666;
    margin-left: 5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    font-size: 0.9rem;
}

.checkout-section .order-summary {
    background: #f5f5f5;
    padding: 20px 20px 10px 20px;
    border-radius: 6px;
}

.order-summary .total {
    font-weight: bold;
    border-top: solid 1px;
    padding-top: 0.4rem;
    font-size: 1rem;
}

/* Braintree Container */
#braintree-dropin {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
}

/* Braintree Input Fields */
.braintree-form__field {
    margin-bottom: 1rem;
}

.braintree-form__field-error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

/* Braintree PayPal Button */
.braintree-paypal-button {
    margin-top: 1rem;
}

.hosted-field {
    height: 40px;
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
}

.hosted-field.braintree-hosted-fields-focused {
    border-color: #66afe9;
    outline: 0;
}

.hosted-field.braintree-hosted-fields-invalid {
    border-color: #dc3545;
}

.hosted-field.braintree-hosted-fields-valid {
    border-color: #28a745;
}

/* Custom braintree FOrm Card */
.braintree-card .braintree-form .braintree-sheet label {
    width: 100%!important;
}

.braintree-sheet__content--form .braintree-form__field-group.braintree-form__field-group--has-error label {
    width: 100%!important;
}
.braintree-sheet__content--form .braintree-form__field-group.braintree-form__field-group--has-error {
    width: 100%!important;
}

/* Braintree Card Section */
/* .braintree-option__card {
    display: block !important;
}

.braintree-sheet__content--form {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.braintree-sheet--active {
    display: block !important;
}

.braintree-sheet__header {
    display: none !important;
} */

/* Account Options */
.account-options {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.account-options .form-check {
    margin-bottom: 0.5rem;
}

.password-field {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.password-field.show {
    display: block;
}