/* Custom Checkout Page Styles */

/*order*/

/* Order Table */
.order-table {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.order-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-row:last-child {
    border-bottom: none;
}

/* Product Row */
.product-row {
    gap: 15px;
    align-items: flex-start;
}

.order-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    position: relative;

}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 1;
}

.order-details {
    flex: 1;
}

.order-title {
    font-size: 15px !important;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: black !important;
}

.order-description {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.order-quantity {
    font-weight: 500;
    position: absolute !important;
    top: 0;
    right: 0;
    z-index: 999;
    background-color: #b87939 !important;
    color: white;
    font-size: 10px;
    /*padding: 2px 5px;*/
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.order-variation {
    margin-top: 6px;
}

.variation-item {
    display: inline-block;
    font-size: 12px;
    color: #95a5a6;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 6px;
    margin-top: 4px;
}

.order-price {
    font-weight: 700;
    color: #b87939;
    font-size: 16px;
    flex-shrink: 0;
}

/* Summary Rows */
.summary-row {
    justify-content: space-between;
    padding: 12px 0;
}

.summary-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.shipping-free {
    color: black;
    font-weight: 700;
    font-size: 15px;
    background-color: #f5f5f5 ;
    padding: 5px 14px;
    border-radius: 6px;
}

.shipping-cost {
    color: #e74c3c;
    font-weight: 600;
    font-size: 15px;
}

/* Total Row */
.total-row {
    justify-content: space-between;
    border-bottom: none !important;
    padding: 20px 0 0 0 !important;
    margin-top: 10px;
    border-top: 2px solid #34495e;
}

.total-label {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.total-value {
    font-size: 22px;
    font-weight: 700;
    color: #b87939;
}

/* Payment Methods Section */
.payment-methods-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.payment-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
}

.payment-method-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-method-box:hover {
    border-color: #27ae60;
    background: #f0f8f4;
}

.payment-radio-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
}

.payment-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.payment-radio-label input[type="radio"]:checked ~ .radio-custom {
    border-color: #27ae60;
    background: #27ae60;
}

.payment-radio-label input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.payment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.payment-name {
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
}

.payment-description {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
}

.payment-icon {
    color: #27ae60;
    flex-shrink: 0;
}

.payment-box {
    margin-top: 15px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Privacy & Terms */
.privacy-policy-section,
.terms-section {
    background: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.privacy-checkbox,
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
}

.privacy-checkbox input,
.terms-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.privacy-checkbox:hover .checkmark,
.terms-checkbox:hover .checkmark {
    border-color: #27ae60;
}

.privacy-checkbox input:checked ~ .checkmark,
.terms-checkbox input:checked ~ .checkmark {
    background-color: #27ae60;
    border-color: #27ae60;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.privacy-checkbox input:checked ~ .checkmark:after,
.terms-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.privacy-checkbox .checkmark:after,
.terms-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-text,
.terms-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.terms-text a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Place Order Button */
.place-order-section {
    margin-top: 24px;
}


.place-order-button:active {
    transform: translateY(0);
}

/*order*/
/**/
 .woocommerce-error li {
    padding-left: 20px !important;
    padding-bottom: 10px !important; 
}
.checkout-inline-error-message {
    position: absolute !important;
    top: 72px;
    left: 7px;
}
div.woocommerce {
    margin-top: 2rem;
}


#shipping_state, #shipping_country, #billing_country, #billing_state {
    color: gray !important;
}
.woocommerce-checkout-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Top Color Bar */
.woocommerce-checkout-wrapper .top-color {
    height: 8px;
    background: linear-gradient(to right, #b87939, #a36833);
}

/* Checkout Header */
.checkout-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: #f8f6f3;
}

.checkout-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(to right, #b87939, #a36833);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(184, 131, 79, 0.3);
}

.checkout-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.checkout-header p {
    color: #6c757d;
    font-size: 15px;
    margin: 0;
}

/* Main Content Area */
.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    padding: 40px 30px;
}
.additional-fields {
    margin: 30px 0;
}
/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-title svg {
    color: #b8834f;
}

/* Billing Fields */
.billing-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.billing-fields .custom-field-wrapper {
    width: 100%;
}

.billing-fields .form-row {
    margin-bottom: 0;
}

.billing-fields .form-row-wide .custom-field-wrapper,
.billing-fields .form-row-first + .form-row-last .custom-field-wrapper {
    grid-column: span 1;
}

/* Make sure specific fields span full width */
.billing-fields #billing_address_1_field,
.shipping-fields #shipping_address_1_field {
    grid-column: 1 / -1;
}

/* Country field specific styling - force proper width */
.billing-fields #billing_country_field,
.shipping-fields #shipping_country_field {
    grid-column: span 1;
    width: 100%;
}

.billing-fields #billing_country_field .custom-field-wrapper,
.shipping-fields #shipping_country_field .custom-field-wrapper {
    width: 100%;
}

.billing-fields #billing_country_field select,
.shipping-fields #shipping_country_field select {
    width: 100% !important;
}

/* Ship to Different Address - Radio Buttons */
.shipping-address-option {
    margin: 25px 0 0 0;
    padding: 0;
    background: transparent;
    border: none;
}

.shipping-address-option .section-title-small {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 0;
    border: none;
}

.shipping-address-option .section-title-small svg {
    color: #b8834f;
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shipping-option-label:hover {
    border-color: #b8834f;
    background: #fff9f5;
}

.shipping-option-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #b8834f;
    margin: 0;
    flex-shrink: 0;
}

.shipping-option-label input[type="radio"]:checked + .radio-text {
    color: #b8834f;
    font-weight: 600;
}

.shipping-option-label:has(input[type="radio"]:checked) {
    border-color: #b8834f;
    background: #fff9f5;
}

.radio-text {
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

/* Shipping Address Fields */
.woocommerce-shipping-fields .shipping_address {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

.woocommerce-shipping-fields .shipping_address .section-title {
    margin-bottom: 25px;
}

/* Shipping Fields */
.shipping-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.shipping-fields .custom-field-wrapper {
    width: 100%;
}

.shipping-fields .form-row {
    margin-bottom: 0;
}

.billing-fields #shipping_address_1_field,
.billing-fields #shipping_address_2_field,
.billing-fields #shipping_company_field,
.shipping-fields #shipping_address_1_field,
.shipping-fields #shipping_address_2_field,
.shipping-fields #shipping_company_field {
    grid-column: 1 / -1;
}

/* Form Fields Styling */
.woocommerce-checkout-wrapper label {
  display: block;                  /* block */
    font-size: 0.875rem;             /* text-sm = 14px */
    font-weight: 500;                /* font-medium */
    color: #374151;                  /* text-gray-700 */
    margin-bottom: 0.5rem; 
}

.woocommerce-checkout-wrapper label .required {
    display: none;
}

.custom-field-wrapper {
    position: relative;
    width: 100%;
}

.woocommerce-checkout-wrapper .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b8834f;
    pointer-events: none;
    z-index: 2;
    margin-top: 12px; /* Adjust for label height */
}

/* Ensure form rows display properly */
.billing-fields .form-row,
.shipping-fields .form-row {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
}

/* Fix for select2 dropdowns (WooCommerce uses select2 for country) */
.billing-fields .select2-container,
.shipping-fields .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.billing-fields .select2-container .select2-selection,
.shipping-fields .select2-container .select2-selection {
     width: 100%;                        /* w-full */
    padding-left: 2.75rem;              /* pl-11 = 44px */
    padding-right: 1rem;                /* pr-4 = 16px */
    padding-top: 0.40rem;               /* py-3 = 12px */
    padding-bottom: 0.40rem;            /* py-3 = 12px */
    border: 1px solid #E5E7EB;          /* border-gray-200 */
    border-radius: 1rem;                 /* rounded-xl = 16px */
    outline: none;                       /* outline-none */
    transition: all 0.2s ease;  
}
.billing-fields .select2-container .select2-selection:focus,
.shipping-fields .select2-container .select2-selection:focus {
     box-shadow: 0 0 0 2px #b87939;       /* focus:ring-2 focus:ring-blue-500 */
    border-color: transparent; 
}
.woocommerce-checkout-wrapper input[type="text"],
.woocommerce-checkout-wrapper input[type="email"],
.woocommerce-checkout-wrapper input[type="tel"],
.woocommerce-checkout-wrapper input[type="password"],
.woocommerce-checkout-wrapper input[type="number"],
.woocommerce-checkout-wrapper select,
.woocommerce-checkout-wrapper textarea {
      width: 100%;                        /* w-full */
    padding-left: 2.75rem;              /* pl-11 = 44px */
    padding-right: 1rem;                /* pr-4 = 16px */
    padding-top: 0.75rem;               /* py-3 = 12px */
    padding-bottom: 0.75rem;            /* py-3 = 12px */
    border: 1px solid #E5E7EB;          /* border-gray-200 */
    border-radius: 1rem;                 /* rounded-xl = 16px */
    outline: none;                       /* outline-none */
    transition: all 0.2s ease;  
}


.woocommerce-checkout-wrapper input[type="text"]:focus,
.woocommerce-checkout-wrapper input[type="email"]:focus,
.woocommerce-checkout-wrapper input[type="tel"]:focus,
.woocommerce-checkout-wrapper input[type="password"]:focus,
.woocommerce-checkout-wrapper input[type="number"]:focus,
.woocommerce-checkout-wrapper select:focus,
.woocommerce-checkout-wrapper textarea:focus {
        box-shadow: 0 0 0 2px #b87939;       /* focus:ring-2 focus:ring-blue-500 */
    border-color: transparent; 
}



.woocommerce-checkout-wrapper select {
    padding-left: 45px !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b8834f' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
}

.woocommerce-checkout-wrapper textarea {
    min-height: 100px;
    resize: vertical;
}

.woocommerce-checkout-wrapper input:focus,
.woocommerce-checkout-wrapper select:focus,
.woocommerce-checkout-wrapper textarea:focus {
    outline: none !important;
    border-color: #b8834f !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(184, 131, 79, 0.1) !important;
}



/* Payment Methods */
.woocommerce-checkout-payment {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc_payment_method {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc_payment_method:hover {
    border-color: #b8834f;
    background: #f8f9fa;
}

.wc_payment_method.active {
    border-color: #b8834f;
    background: #fff9f5;
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.wc_payment_method input[type="radio"] {
    accent-color: #b8834f;
}
/* Place Order Button */
#place_order {
    width: 100%;
    background: linear-gradient(to right, #b87939, #a36833);
    color: white;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#place_order:hover {
     background: linear-gradient(to right, #a36833, #b87939);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Terms & Conditions */
.woocommerce-terms-and-conditions-wrapper {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.woocommerce-terms-and-conditions-checkbox-text {
    font-size: 14px;
    color: #495057;
}

/* Notices */
.woocommerce-checkout-wrapper .woocommerce-error,
.woocommerce-checkout-wrapper .woocommerce-message,
.woocommerce-checkout-wrapper .woocommerce-info {
    padding: 15px 20px;
    margin: 20px 30px;
    border-radius: 8px;
    border-left: 4px solid;
}

.woocommerce-checkout-wrapper .woocommerce-error {
    background: #fff5f5;
    border-color: #dc3545;
    color: #dc3545;
}

.woocommerce-checkout-wrapper .woocommerce-message {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #22c55e;
}
.billing-radio-options {
        background: #f8f6f3 ;
        border-radius: 8px;
        padding: 20px;
        margin: 20px 0;
    }
   
   .billing-radio-options label:first-child {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
         border: 1px solid #ccc ;
        border-bottom: 0.5px solid #ccc ;

   }
   .billing-radio-options label:last-child {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        border-top: 0.5px solid #ccc ;
        border: 1px solid #ccc ;
   }
    .radio-option-label {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        background: white;
        margin-bottom: 0 !important;
        cursor: pointer;
        transition: all 0.3s ease;
    }
  
    
    .radio-option-label:last-child {
        margin-bottom: 0;
    }
    
   
    .radio-option-label input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 15px;
        accent-color: #b87939;
        cursor: pointer;
    }
    
    .radio-option-label .radio-text {
        font-size: 15px;
        color: #b87939;
        font-weight: 500;
    }
    
    .radio-option-label:has(input:checked) {
        border-color: #b87939;
        background: #e8f5e9;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    }
    
    .billing_address {
        margin-top: 20px;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Radio Button Styling */
/* Radio Button Styling */
.create-account-wrapper {
    margin: 20px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
    user-select: none;
}

.create-account-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background-color: white;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b87939;
}

.create-account-radio:checked ~ .radio-custom {
    border-color: #b87939;
    background-color: white;
}

.create-account-radio:checked ~ .radio-custom::after {
    display: block;
}

.radio-label:hover .radio-custom {
    border-color: #b87939;
    box-shadow: 0 0 0 3px rgba(184, 121, 57, 0.1);
}

.radio-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .checkout-order-review {
        position: static;
    }
    
    .billing-fields,
    .shipping-fields {
        grid-template-columns: 1fr;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .product-row {
        flex-wrap: wrap;
    }
    
    .order-image {
        width: 60px;
        height: 60px;
    }
    
    .order-details {
        flex: 1 1 calc(100% - 140px);
    }
    
    .order-price {
        flex: 1 1 100%;
        text-align: right;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed #e0e0e0;
    }
}


@media (max-width: 576px) {
    .woocommerce-checkout-wrapper {
        margin: 20px 10px;
        border-radius: 8px;
    }
    
    .checkout-header {
        padding: 30px 20px 20px;
    }
    
    .checkout-content {
        padding: 30px 20px;
    }
    
    .checkout-header h2 {
        font-size: 24px;
    }
    
    .checkout-icon {
        width: 60px;
        height: 60px;
    }
    
    .billing-fields,
    .shipping-fields {
        grid-template-columns: 1fr;
    }
}
