/* Custom Checkout Styles - Standalone CSS File */

/* Reset WooCommerce review order table default styling */
.woocommerce-checkout-review-order-table {
    display: block !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.entry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.paypal-payment-text{
    padding: 24px 0px;
    text-align: center;
}

.paypal-payment-text p{
    font-size: 14px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
}
.ast-container{
    max-width: 1440px;
}

.checkout-main-content {
    display: flex;
    flex-direction: column;
}

.ast-container{
    flex-direction: column;
}

.checkout-form-title {
    margin-bottom: 32px;
    color: rgba(0,0,0,1);
}

.checkout-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 124px;
}

.woocommerce-checkout #content {
    max-width: 1036px;
}

.checkout-form-section {
    background: #ffffff;
    border-radius: 12px;

}

.checkout-order-review {
    background: #ffffff;
    border-radius: 12px;

    height: fit-content;
}

/* Delivery Options Section */
.delivery-options-section {
    max-width: 456px;
}

.section-title {
    color: #000;

    /* Desktop/H5 */
    font-family: Inter;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px; /* 145.455% */
}

.subsection-title {
    font-family: Inter, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin: 32px 0 20px 0;
}

.delivery-methods {
    margin-bottom: 16px;
}

.delivery-method {
    margin-bottom: 12px;
}


.delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delivery-option:hover {
    border-color: black;
    background: #fff;
}

.delivery-option:has(input[type="radio"]:checked) {
    border-color: #000000;
    background: #f9fafb;
    box-shadow: none;
    border: 2px solid black;
}

.delivery-method input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #000000;
    border-radius: 50%;
    background: #ffffff;
    position: relative;
}

.delivery-method input[type="radio"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.delivery-method input[type="radio"]:checked::after {
    opacity: 1;
}

.delivery-option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.delivery-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 1);
}

.delivery-price {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 1);
}

.delivery-details {
    font-size: 14px;
    color: rgba(148, 148, 148, 1);
}

.delivery-option:has(input[type="radio"]:checked) .delivery-name,
.delivery-option:has(input[type="radio"]:checked) .delivery-price {
    color: #000000;
    font-weight: 600;
}

.delivery-option:has(input[type="radio"]:checked) .delivery-details {
    color: #6b7280;
}

.delivery-info {
    margin-bottom: 56px;
}

.delivery-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-style: italic;
}

/* Delivery Information Form */
.delivery-information {
    margin-top: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.delivery-information > .form-group:not(:has(~ .form-group)) {
  margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Mobile responsive - stack form fields vertically */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400 !important;
    color: #000;
    font-size: 14px !important;
    line-height: 150% !important;
}
.form-group label.checkbox-label{
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #949494;
    border-radius: 8px;
    font-size: 14px;
    background-color: #F8F8F8;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group input[type="tel"]:hover {
    border: 2px solid #000000;
    padding: 11px 15px;
}

.form-group input:focus {
    outline: none;
    border-color: black;

}

/* Phone field with fixed prefix */
.form-group--phone .phone-input-wrapper {
    display: flex;
    align-items: center;
    background: #F8F8F8;
    border: 1px solid #949494;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-group--phone .phone-input-wrapper:hover {
    border: 2px solid #000000;
}

.form-group--phone .phone-input-wrapper:focus-within {
    border-color: black;
    border-width: 2px;
}

.form-group--phone .phone-prefix {
    padding: 12px 0 12px 16px;
    font-size: 14px;
    color: #000;
    white-space: nowrap;
    flex-shrink: 0;
    background: transparent;
}

.form-group--phone .phone-input-wrapper input[type="tel"] {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 16px 12px 8px !important;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.form-group--phone .phone-input-wrapper input[type="tel"]:hover,
.form-group--phone .phone-input-wrapper input[type="tel"]:focus {
    border: none !important;
    padding: 12px 16px 12px 8px !important;
    outline: none;
    box-shadow: none;
}

.form-group--phone .phone-input-wrapper input[type="tel"]::placeholder {
    color: #999;
}

/* Postal code field - half width */
#postcode {
    width: 50% !important;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #1f2937;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
}


.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color:black;
    cursor: pointer;
}

/* === Universal Custom Checkbox Styling (overrides WooCommerce defaults) === */
.woocommerce-js form .form-row .input-checkbox,
.woocommerce-js form .form-row.place-order .input-checkbox,
.checkout-form-section input[type="checkbox"],
#terms,
#company_purchase_toggle,
#omnisend_newsletter_checkbox {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border: 1.5px solid #9b9b9b !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    position: relative !important;
    margin: 0 12px 0 0 !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.woocommerce-js form .form-row .input-checkbox:checked,
.woocommerce-js form .form-row.place-order .input-checkbox:checked,
.checkout-form-section input[type="checkbox"]:checked,
#terms:checked,
#company_purchase_toggle:checked,
#omnisend_newsletter_checkbox:checked {
    background: #000000 !important;
    border-color: #000000 !important;
}

.woocommerce-js form .form-row .input-checkbox:checked::before,
.woocommerce-js form .form-row.place-order .input-checkbox:checked::before,
.checkout-form-section input[type="checkbox"]:checked::before,
#terms:checked::before,
#company_purchase_toggle:checked::before,
#omnisend_newsletter_checkbox:checked::before {
    content: "" !important;
    position: absolute !important;
    top: 2px !important;
    left: 6px !important;
    width: 5px !important;
    height: 10px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* Omnisend newsletter checkbox row styling */
#omnisend_newsletter_checkbox_field {
    margin: 16px 0 !important;
}

#omnisend_newsletter_checkbox_field label.checkbox {
    display: flex !important;
    align-items: center !important;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
}

/* .checkbox-label:has(input[type="checkbox"]:checked) {
    
    background: #f8fafc;
} */

/* Order Summary Styling */
.order-summary {
    margin-bottom: 32px;
}

.order-summary-title {
    font-family: Inter, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 24px 0;
}

.order-summary .order-item:first-child {
    padding-top: 0;
}
.order-summary .order-item:last-child {
    padding-bottom: 0;
}

.order-items {
    margin-bottom: 24px;
}

.order-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 16px 0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item__image {
    width: 108px;
    height: 144px;

}

.order-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*aspect-ratio: 89/118;*/
}

.order-item__details {
    display: flex;
    flex-direction: column;
}

.order-item__name {
    margin: 0;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 150%;
    font-weight: 500;
    color: #000;
}

.order-item__name a {
    color: inherit;
    text-decoration: none;
}

/*.order-item__name a:hover {*/
/*    color: #3b82f6;*/
/*}*/

.order-item__brand,
.order-item__variation,
.order-item__quantity {
    margin: 0;
    font-size: 14px;
    line-height: 150%;
    color: #000;
}
.order-item__brand,
.order-item__variation{
    color: #808080;
}

.order-item__quantity{
    margin-top: 24px;
}

.order-item__price {
    font-size: 16px;
    line-height: 150%;
    font-weight: 600;
    color: #000;
    text-align: right;
}

/* Order Totals Styling */
.order-totals {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.order-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.order-totals__label {
    color: rgba(0, 0, 0, 1);
    font-weight: 400;
    line-height: 1;
    font-size: 16px;
    line-height: 25.6px;
    font-weight: 400;
}

.order-totals__label-br{
    color: rgba(0, 0, 0, 0.5);
    /* Desktop/Caption 1 */
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.order-totals__value {
    color: rgba(0, 0, 0, 1);
    font-weight: 400;
    line-height: 1;
    font-size: 16px;
    line-height: 25.6px;
    font-weight: 400;
}

.order-totals__total {
    font-size: 18px;
    font-weight: 700;
}

.order-totals__note {
    text-align: left;
    margin-top: 2px;
}

.order-totals__row.order-totals__total .order-totals__label{
    line-height: 1;  
    font-weight: 600;
}
.order-totals__note-text {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* Help Section */
.help-section {
    margin-top: 32px;
    padding: 16px;
    background: #F9F8F6;
}

.help-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.help-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.help-text h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: rgba(0, 0, 0, 1);
}

.help-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.help-link:hover {
    text-decoration: underline;
}

/* Payment Methods Styling */
.woocommerce-checkout-payment {
    margin-top: 40px;
    /* padding-top: 32px; */
    /* border-top: 1px solid #e5e7eb; */
}

.woocommerce-checkout-payment .payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-checkout-payment .payment_methods li {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* .woocommerce-checkout-payment .payment_methods li:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
} */

.woocommerce-checkout-payment .payment_methods li input[type="radio"] {
    margin-right: 12px;
}

.woocommerce-checkout-payment .payment_methods li label {
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Place Order Button */
.woocommerce-checkout-payment .place-order {
    margin-top: 32px;
}

.woocommerce-checkout-payment .place-order .button {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-checkout-payment .place-order .button:hover {
    background: #333;
}

.woocommerce-checkout-payment .place-order .button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .entry-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px 0;
    }
    .order-totals__row{
        padding: 4px 0px;
    }
    
    .checkout-form-title {
        margin-top: 48px;
        font-size: 24px;
    }
    
    .section-title{
        font-size: 18px;
    }
    .order-totals__total{
        margin-top: 20px;
    }
    .checkout-item {
        grid-template-columns: 60px 1fr auto;
        gap: 12px;
        padding: 12px 0;
    }
    
    .checkout-item__image {
        width: 60px;
        height: 60px;
    }
    
    .checkout-item__name {
        font-size: 15px;
    }
    
    .checkout-item__price {
        font-size: 15px;
    }
}

@media (max-width: 480px) {

    .checkout-item {
        grid-template-columns: 50px 1fr auto;
        gap: 8px;
    }
    
    .checkout-item__image {
        width: 50px;
        height: 50px;
    }
    
    .checkout-item__name {
        font-size: 14px;
    }
    
    .checkout-item__brand,
    .checkout-item__quantity {
        font-size: 12px;
    }
    
    .checkout-item__price {
        font-size: 14px;
    }
}

/* Payment Section */
.payment-section {
    margin-top: 56px;
    margin-bottom: 115px;
    background: #ffffff;
    max-width: 456px;
    border-radius: 12px;
}

.payment-section .section-title {
    color: #000;
    font-family: Inter;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 40px; /* 125% */
    margin-bottom: 32px;
}

.terms-checkbox input{
    width: 20px;
    height: 20px;
    font-size: 14px !important;
}
/* Digital Payment Methods */
.digital-payment-methods {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.digital-payment-btn {
    flex: 1;
    padding: 16px;
    background: rgba(17, 18, 17, 1);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    max-width: 456px;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.digital-payment-btn:hover {
    background: #1f2937;
}

.digital-payment-btn .payment-icon {
    font-size: 18px;
    font-weight: bold;
}

.digital-payment-btn .payment-text {
    font-size: 16px;
}

/* Bank Payment Methods */
.bank-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    margin-bottom: 40px;
}

.bank-payment-option {
    position: relative;
    max-width: 456px;
    border-radius: 10px;
    border: 1px solid #949494;
    background: rgba(148, 148, 148, 1);
    overflow: hidden;
}

.bank-payment-option:hover {
    border-color: black;
    background-color: white;
}  

.bank-payment-option input[type="radio"] {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: black;
}

.bank-payment-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 16px 48px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #F8F8F8;
    min-height: 56px;
}

.bank-payment-label:hover {
    background: #f9fafb;
}

.bank-payment-option input[type="radio"]:checked + .bank-payment-label {
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
}

.bank-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
}

.bank-logo {
    margin-left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-logo img {
    width: 102px;
    height: 32px;
    object-fit: contain;
}

/* Special styling for payment card logos */
.bank-payment-option:last-child .bank-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-payment-option:last-child .bank-logo img {
    width: 48px;
    height: 32px;
    object-fit: contain;
}

/* Spell (bank transfer) payment list styling */
.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    margin-bottom: 24px;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer > label {
    display: none;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .payment_box {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer fieldset.spell-payment-group {
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .payment_box::before,
.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .payment_box::after {
    display: none;
    content: none;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-group__legend {
    display: none;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-group__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-group__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 16px 56px;
    min-height: 64px;
    border: 1px solid #9b9b9b;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-group__item:hover {
    border-color: #000000;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__custom-radio {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #9b9b9b;
    background: #ffffff;
    transform: translateY(-50%);
    box-sizing: border-box;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__custom-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000000;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__input:checked + .spell-payment-method__custom-radio {
    border-color: #000000;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__input:checked + .spell-payment-method__custom-radio::after {
    opacity: 1;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__input:focus-visible + .spell-payment-method__custom-radio {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__text {
    order: 2;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__logo {
    order: 3;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__logo img {
    max-height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

@supports selector(:has(*)) {
    .woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-group__item:has(.spell-payment-method__input:checked) {
        border-color: #000000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 768px) {
    .woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-group__item {
        min-height: 56px;
        padding: 14px 16px 14px 52px;
        border-radius: 14px;
    }

    .woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__custom-radio {
        left: 16px;
        width: 20px;
        height: 20px;
    }

    .woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__custom-radio::after {
        width: 8px;
        height: 8px;
    }

    .woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__text {
        font-size: 16px;
    }

    .woocommerce-checkout-payment .payment_methods .payment_method_bank_transfer .spell-payment-method__logo img {
        max-height: 28px;
        max-width: 120px;
    }
}

/* Terms Checkbox */
.terms-checkbox {
    margin-bottom: 40px;
}

.terms-checkbox .checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: black;
}

/* Woo terms checkbox (default markup) */
.woocommerce-terms-and-conditions-wrapper .form-row {
    margin: 24px 0 32px 0;
}

/* Clean terms checkbox styling */
.woocommerce-terms-and-conditions-wrapper .roket-terms-checkbox {
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

.woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label {
    display: flex !important;
    align-items: center;
    font-size: 16px !important;
    color: #000000;
    cursor: pointer;
    font-weight: 400 !important;
}

/* Checkbox focus state */
.woocommerce-js form .form-row .input-checkbox:focus-visible,
#terms:focus-visible,
#company_purchase_toggle:focus-visible,
#omnisend_newsletter_checkbox:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15) !important;
}

.woocommerce-terms-and-conditions-wrapper a {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: inherit;
}

/* Pay Button */
.pay-button {
    width: 100%;
    max-width: 456px;
    padding: 16px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pay-button:hover{
    background: #000000;
    color: #ffffff;
}

/* Remove gray background and arrow from all payment boxes */
.woocommerce-checkout-payment .payment_box {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.woocommerce-checkout-payment .payment_box::before,
.woocommerce-checkout-payment .payment_box::after {
    display: none !important;
    content: none !important;
}

/* Hide privacy policy text - only show checkbox */
.woocommerce-privacy-policy-text {
    display: none !important;
}

/* Also hide woocommerce_checkout_terms_and_conditions hook content except checkbox */
.woocommerce-terms-and-conditions-wrapper > p:not(.form-row) {
    display: none !important;
}
/* Hide default header on e-commerce pages */
body:has(.checkout-header) .site-header:not(.checkout-header) {
    display: none !important;
}

/* E-commerce Header */
.checkout-header {
    background: #ffffff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
/* 
.checkout-header-container {
    margin: 0 auto;
    padding: 0 20px;
} */

#primary{
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.checkout-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-logo .site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.checkout-logo .site-title a {
    color: #000000;
    text-decoration: none;
}

.checkout-header-actions {
    display: flex;
    align-items: center;
}

.checkout-cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
}

.checkout-cart-link:hover {
    background: #e5e7eb;
    color: #000000;
}

.cart-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
}

.cart-icon svg {
    width: 16px;
    height: 16px;
}

.cart-text {
    font-weight: 500;
    color: rgba(124, 124, 124, 1);
}

.checkout-footer {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    margin-top: 60px;
    padding: 20px 0;
    background: transparent;
}

.checkout-footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px; /* optional */
}
.checkout-footer-container {
    margin: 0 auto;
    padding: 0 20px;
}

.checkout-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    color: #000000;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.designed-by {
    color: #000000;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}


.section-title{
    margin-bottom: 24px;
}

/* Underlined links in terms checkbox */
.underlined-link {
    text-decoration: underline;
    color: inherit;
    text-underline-offset: 2px;
    letter-spacing: 0.5px;
}

.underlined-link:hover {
    text-decoration-color: #0056b3;
}

/* === Checkout: force WC fields to behave like normal block fields === */
.checkout-form-section .delivery-information p.form-row {
  display: block !important;
  float: none !important;
  width: 100% !important;
  clear: both !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Kill any flex/inline layout Astra might apply to labels/rows */
.checkout-form-section .delivery-information p.form-row,
.checkout-form-section .delivery-information p.form-row * {
  text-align: left !important;
}

/* Label above input (NOT side-by-side) */
.checkout-form-section .delivery-information p.form-row > label {
  display: block !important;
  float: none !important;
  width: 100% !important;
  /*margin: 0 0 10px 0 !important;*/
}

/* Wrapper must be full width */
.checkout-form-section .delivery-information p.form-row .woocommerce-input-wrapper {
  display: block !important;
  width: 100% !important;
}

/* Inputs full width + consistent sizing */
.checkout-form-section .delivery-information p.form-row input[type="text"],
.checkout-form-section .delivery-information p.form-row input[type="email"],
.checkout-form-section .delivery-information p.form-row input[type="tel"],
.checkout-form-section .delivery-information p.form-row input[type="number"],
.checkout-form-section .delivery-information p.form-row select,
.checkout-form-section .delivery-information p.form-row textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;

  height: 48px;
  padding: 0 16px;

  border: 1px solid #949494;
  border-radius: 10px;

  box-sizing: border-box !important;
}

/* Custom 2-col grid rows (avoid WC .form-row conflicts) */
.checkout-form-section .delivery-information .roket-form-row--2col {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: start;
  /*margin: 0 0 24px 0 !important;*/
}

@media (max-width: 768px) {
  .checkout-form-section .delivery-information .roket-form-row--2col {
    grid-template-columns: 1fr;
  }
}

/* Postcode = 50% width */
.checkout-form-section .delivery-information #billing_postcode_field {
  width: 50% !important;
}

/* Mobile: postcode full width */
@media (max-width: 768px) {
  .checkout-form-section .delivery-information #billing_postcode_field {
    width: 100% !important;
  }
}

/* If phone uses intl-tel-input */
.checkout-form-section .delivery-information .iti {
  width: 100% !important;
  display: block !important;
}
.checkout-form-section .delivery-information .iti input[type="tel"]{
  width: 100% !important;
}

.woocommerce-form-coupon-toggle {
    display: none;
}

/* === Delivery methods tweaks === */
.delivery-method.is-unavailable {
  opacity: 0.3;
}

.roket-delivery-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F9F8F6;
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 14px;
  margin-bottom: 24px;
}

.roket-delivery-info__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.roket-delivery-info__text {
  display: block;
}

/* === Select2 styling to match inputs === */
.checkout-form-section .delivery-information .select2-container {
  width: 100% !important;
}

.checkout-form-section .delivery-information .select2-container .select2-selection--single {
  height: 48px !important;
  border: 1px solid #949494 !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 16px !important; /* matches inputs */
  background: #fff !important;
}

.checkout-form-section .delivery-information .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0 !important;             /* remove default left padding */
  line-height: 1 !important;         /* stop vertical weirdness */
  display: flex !important;
  align-items: center !important;
  height: 48px !important;
}

.checkout-form-section .delivery-information .select2-container .select2-selection--single .select2-selection__placeholder {
  color: #777 !important;
}

.checkout-form-section .delivery-information .select2-container .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  right: 10px !important;
  top: 0 !important;
}

/* Dropdown panel */
.select2-container--default .select2-dropdown {
  border: 1px solid #949494 !important;
  border-radius: 10px !important;
  overflow: hidden;
}

/* Options */
.select2-container--default .select2-results__option {
  padding: 10px 14px !important;
}

/* Focus/active states */
.checkout-form-section .delivery-information .select2-container--default.select2-container--focus .select2-selection--single,
.checkout-form-section .delivery-information .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #000 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Make the hidden native select not mess with spacing */
.checkout-form-section .delivery-information select.select2-hidden-accessible {
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
/* === Select2 readonly behavior === */
.checkout-form-section .delivery-information .select2-container {
  pointer-events: none; /* prevents opening */
}
/* === Select2 readonly visual state === */
.checkout-form-section .delivery-information
.select2-container .select2-selection--single {
  opacity: 0.5;
  background-color: #fff !important; /* keep background visible */
}

/* Rendered text */
.checkout-form-section .delivery-information
.select2-container .select2-selection__rendered {
  opacity: 1; /* inherit from parent only */
}
.checkout-form-section .delivery-information
.select2-container .select2-selection--single {
  cursor: default !important;
}

/* Venipak pickup label */
.roket-venipak-pickup-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

/* Venipak pickup selector must remain interactive */
.checkout-form-section .delivery-information .roket-venipak-pickup-wrap .select2-container {
  pointer-events: auto !important;
}

.checkout-form-section .delivery-information .roket-venipak-pickup-wrap .select2-container .select2-selection--single {
  opacity: 1 !important;
  cursor: pointer !important;
}

/* Checkout Order Review Max Width */
.checkout-order-review {
    max-width: 456px;
}

.checkout-header {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 16px;
}

#content .ast-container {
    padding: 0 16px;
}

span.required,
abbr.required {
    display: none;
}

.checkout-inline-error-message {
    color: red;
}

/* Mobile Responsive Styles - Placed at bottom for higher specificity */
@media (max-width: 1024px) {
    /* Remove padding from header on mobile */
    /* .site-header,
    .checkout-header-container {
        padding-left: 0;
        padding-right: 0;
    } */

    .subsection-title{
        font-size: 18px;
        line-height: 1.5;
        font-weight: 600;;
    }
    .order-item__name, .order-item__price{
        font-size: 14px;
    }
    .order-item__brand, .order-item__color, .order-item__quantity, .order-item__variation{
        font-size: 12px;
    }

    .order-totals__label, .order-totals__value{
        font-size: 14px;
    }
    .help-text h4
    {
        font-size: 14px;
        line-height: 1.5;
    }

    .section-title{
        font-size: 24px;
    }
    /* Remove all padding from cart link on mobile */
    .checkout-cart-link {
        padding: 0 !important;
    }
    
    /* Stack footer content vertically on mobile */
    .checkout-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .delivery-options-section,
    .checkout-order-review,
    .payment-section {
        max-width: unset;
    }
    .delivery-method {
        margin-bottom: 8px;
    }
    .roket-delivery-info {
        margin-top: 8px;
    }
    .subsection-title {
        margin: 40px 0 24px 0;
    }
    .form-group label.checkbox-label {
        margin-bottom: 40px;
    }
    .checkout-form-section .delivery-information .roket-form-row--2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}   
