/** Checkout Page Styles - 3 Column Layout **/

@media (min-width: 992px) {
    #pneumatig-category-tree {
        display: none !important;
    }
}

/* Main Container */
#pgcart-main {
    width: 95%;
    margin: 30px auto;
}

.pgcheckout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

/* Column Padding */
div#address-block,
div#billing-block {
    padding: 0 15px 0 0;
}

div#shipping-block,
div#payment-block {
    padding: 0 15px;
}

div#summary-block {
    padding: 0 0 0 15px;
}

/* Sticky Summary */
.sticky-summary-wrapper {
    position: sticky;
    top: 20px;
}

/* Section Titles - Clean Style */
.pg-step-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    background: transparent;
}

/* Form Inputs */
.step-content {
    padding-top: 15px;
    margin: 0 0 30px;
}

.step-content fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.step-content .pg-form {
    margin-bottom: 15px;
}

.step-content .pg-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.input-eff {
    position: relative;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s;
}

.input-eff:focus-within {
    border-color: #015eae;
}

.input-eff input,
.input-eff select,
.input-eff textarea {
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
}

/* Input label as placeholder inside input */
.input-eff label {
    position: absolute;
    top: 50% !important;
    left: 14px;
    transform: translateY(-50%);
    font-size: 13px;
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.2s ease;
    margin: 0;
    padding: 0;
    font-weight: 400;
    background: transparent;
}

/* Float label up when input has content, focus, or autofill */
.input-eff input:focus+label,
.input-eff input:not(:placeholder-shown)+label,
.input-eff input.has-content+label,
.input-eff input:-webkit-autofill+label,
.input-eff textarea:focus+label,
.input-eff textarea.has-content+label,
.input-eff textarea:not(:placeholder-shown)+label {
    top: -3px !important;
    left: 10px !important;
    transform: translateY(-50%) !important;
    font-size: 11px !important;
    background: #fff !important;
    padding: 0 6px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* Hide select label completely - select shows its own value */
.input-eff select+label {
    display: none;
}

/* Focus border effect - hide it */
.focus-border {
    display: none;
}

/* Shipping Notice */
.shipping-notice {
    background-color: #e7f6e1;
    border: 1px solid #c3e6c3;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: #2c7d32;
    font-size: 14px;
}

.shipping-notice-icon {
    margin-right: 12px;
    flex-shrink: 0;
    color: #22c55e;
}

.shipping-notice p {
    margin: 0;
    font-weight: 600;
}

/* Radio Buttons / Shipping & Payment Cards */
.shipping-table,
.payment-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

/* Payment methods - 2 column grid layout */
.payment-table {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-spacing: 0;
}

.payment-table tbody,
.payment-table tr {
    display: contents;
}

.payment-table td {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
    padding: 0;
    border: none;
    box-sizing: border-box;
}

/* Payment method cards - compact style for grid */
.payment-table label.radios {
    padding: 14px 16px 14px 42px;
    font-size: 14px;
    height: 100%;
    box-sizing: border-box;
    border-radius: 25px;
    border: 1px solid #d1d5db;
    background: #fff;
}

.payment-table label.radios:hover {
    border-color: #9ca3af;
    background: #fafafa;
}

.payment-table .checkmark {
    left: 14px;
    height: 18px;
    width: 18px;
    border-color: #d1d5db;
}

.payment-table .checkmark:after {
    width: 6px;
    height: 6px;
}

.shipping-table td {
    padding: 0;
    border: none;
}

/* Discount Code Area */
.discount-area {
    margin-top: 20px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.discount-area .col-pg.pg-8 {
    flex: 1;
}

.discount-area .col-pg.pg-4 {
    flex: 0 0 auto;
}

.discount-area .apply-discount {
    background: #015eae;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.discount-area .apply-discount:hover {
    background: #014c8d;
}

label.radios {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 16px 50px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.3;
}

label.radios:hover {
    border-color: #015eae;
    background: #f9fafb;
}

/* Hide default radio */
.radios input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom checkmark */
.checkmark {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 50%;
}

.radios:hover input~.checkmark {
    border-color: #015eae;
}

.radios input:checked~.checkmark {
    background-color: #015eae;
    border-color: #015eae;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radios input:checked~.checkmark:after {
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.shipping-carrier-name {
    font-weight: 600;
    color: #1a1a1a;
}

.shipping-price {
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Payment method images */
label.radios img {
    height: 24px;
    width: auto;
    margin-left: 10px;
}

/* Summary Sidebar */
.summary-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 25px 25px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.summary-sidebar .summary-title.pg-step-title {
    background: linear-gradient(135deg, #3262af, #2a5a9c);
    color: #fff;
    font-size: 18px;
    padding: 20px;
    margin: 0 -25px 25px -25px;
    text-align: center;
    border-bottom: none;
    font-weight: 700;
    display: block;
}

.summary-sidebar .summary-title.pg-step-title span {
    color: #fff !important;
}

#summary-block .summary-items {
    width: 100%;
    border: none;
    margin-bottom: 20px;
}

#summary-block .summary-items th {
    font-size: 12px;
    color: #1a1a1a;
    text-transform: none;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

#summary-block .summary-items th:first-child {
    padding-left: 0;
}

#summary-block .summary-items th:last-child {
    padding-right: 0;
    text-align: right;
}

#summary-block .summary-items th.table-head-middle {
    text-align: center;
}

#summary-block .summary-items th.table-head-end {
    text-align: right;
}

/* Hide remove column header */
#summary-block .summary-items th.table-head-remove {
    display: none;
}

#summary-block .summary-items td {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    vertical-align: middle;
}

#summary-block .summary-items td.product-item-end {
    text-align: right;
    padding-right: 10px;
}

#summary-block .summary-items td.product-item-middle {
    text-align: center;
}

#summary-block .summary-items td.product-item-end {
    text-align: right;
}

/* Hide remove button column */
#summary-block .summary-items td.item-remove {
    display: none;
}

.product-item-details a {
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: none;
    font-size: 13px;
}

/* Qty Controls - Simplified for summary view */
.qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Show +/- buttons in summary */
.qty-wrapper button.qty-change {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    font-size: 12px;
    color: #4b5563;
    padding: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.qty-wrapper button.qty-change i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 1px 0 0 0;
    /* Tiny adjustment for visual centering if needed */
}

.qty-wrapper button.qty-change:hover {
    background: #fff;
    border-color: #3262af;
    color: #3262af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qty-wrapper .qty-input {
    width: 35px;
    height: 28px;
    border: none;
    border-radius: 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    padding: 0;
    background: transparent;
    appearance: textfield;
    -moz-appearance: textfield;
}

.qty-wrapper .qty-input::-webkit-outer-spin-button,
.qty-wrapper .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide remove button */
button.qty-remove {
    display: none;
}

/* Totals */
.summary-value {
    padding: 0;
}

.summary-value>label {
    display: none;
}

.summary-total {
    width: 100%;
    margin-top: 15px;
}

.summary-total tr th {
    text-align: left;
    font-weight: 500;
    color: #6b7280;
    padding: 8px 0;
    border: none;
}

.summary-total tr td {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
    padding: 8px 0;
    border: none;
}

.summary-total tr.grand-total th,
.summary-total tr.grand-total td {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Place Order Button */
#summary-block button.order {
    width: 100%;
    height: 56px;
    background: #3262af;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.2s;
    float: none;
    padding: 0;
    box-shadow: 0 4px 12px rgba(50, 98, 175, 0.2);
}

#summary-block button.order:hover {
    background: #014c8d;
}

/* Comments */
.comment-window {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px !important;
    margin-bottom: 15px;
}

.comment-window label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.comment-window textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    min-height: 80px;
    resize: none;
    font-size: 13px;
}

/* Trust Image */
.trust-img {
    margin-top: 15px;
    text-align: center;
}

.trust-img img {
    max-height: 40px;
    width: auto;
}

/* Agreements */
.pg-checkout-agreement {
    display: flex;
    align-items: flex-start;
    margin-top: 15px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.pg-checkout-agreement input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

label[for='agreement']>a {
    color: #015eae;
    text-decoration: underline;
}

/* Authentication Link */
#authentication-wrapper {
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

#authentication-wrapper .login-button {
    color: #015eae;
    text-decoration: underline;
    font-weight: 500;
    font-size: 14px;
    display: inline;
}

/* FA Icons */
.fa:before {
    background-color: #6b7280;
}

.fa-minus:before {
    -webkit-mask: url('../images/minus-solid.svg') no-repeat 50% 50%;
    mask: url('../images/minus-solid.svg') no-repeat 50% 50%;
    width: 16px;
    height: 16px;
}

.fa-plus:before {
    -webkit-mask: url('../images/plus-solid.svg') no-repeat 50% 50%;
    mask: url('../images/plus-solid.svg') no-repeat 50% 50%;
    width: 16px;
    height: 16px;
}

.fa-times:before {
    content: '×';
    font-size: 18px;
    font-weight: bold;
}

/* PayPal */
.paypal-express-checkout {
    float: right !important;
}

.paypal-buttons {
    min-width: 0 !important;
    max-width: none !important;
    height: 80px !important;
}

.paypal-button-container {
    min-width: 150px !important;
    max-width: none !important;
    margin: 15px 0 0 0 !important;
    border: none !important;
    border-radius: 8px !important;
    width: 48% !important;
    float: right !important;
}

.paypal-button {
    height: 56px !important;
    min-height: 0 !important;
    max-height: none !important;
}

.paypal-button-tagline {
    display: none !important;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .pgcheckout-container {
        flex-direction: column;
    }

    div#address-block,
    div#billing-block,
    div#shipping-block,
    div#payment-block,
    div#summary-block {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        box-sizing: border-box;
    }

    .sticky-summary-wrapper {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    #pgcart-main {
        width: 100%;
        padding: 0 10px;
        margin: 15px auto;
        box-sizing: border-box;
    }

    /* Auth wrapper mobile spacing */
    #authentication-wrapper {
        margin-top: 30px;
    }

    .pgcheckout-container {
        gap: 0;
    }

    div#address-block,
    div#billing-block,
    div#shipping-block,
    div#payment-block,
    div#summary-block {
        padding: 0 5px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .pg-step-title {
        font-size: 18px;
        text-align: center;
    }

    /* Form inputs - full width */
    .step-content,
    .step-content fieldset,
    .step-content .pg-form,
    .input-eff {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Fieldset layout - stack on mobile */
    .pg-checkout-account-fieldset {
        margin: 0;
        padding: 0;
    }

    .pg-checkout-account-fieldset>.pg-form {
        padding: 0;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Payment methods - single column on mobile */
    .payment-table {
        flex-direction: column;
    }

    .payment-table td {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .payment-table label.radios {
        width: 100%;
        box-sizing: border-box;
    }

    /* Discount area - stack on mobile */
    .discount-area {
        flex-direction: column;
        align-items: stretch;
    }

    .discount-area .col-pg.pg-8,
    .discount-area .col-pg.pg-4 {
        flex: 0 0 100%;
        width: 100%;
    }

    .discount-area .apply-discount {
        width: 100%;
        margin-top: 10px;
    }

    /* Summary sidebar - full width */
    .summary-sidebar {
        margin: 0;
        border-radius: 12px;
    }

    #summary-block button.order {
        height: 50px;
        font-size: 16px;
    }

    /* Billing/shipping checkbox boxes */
    .billing-address-same-as-shipping,
    .pg-checkout-agreement {
        width: 100%;
        box-sizing: border-box;
    }

    /* Create account password fields - stack on mobile */
    .create-account-block .pg-form.password {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 10px;
    }

    /* Shipping table */
    .shipping-table {
        width: 100%;
    }

    .shipping-table td {
        width: 100%;
        display: block;
    }

    label.radios {
        width: 100%;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 480px) {
    #pgcart-main {
        padding: 0 8px;
        margin: 10px auto;
    }

    div#address-block,
    div#billing-block,
    div#shipping-block,
    div#payment-block,
    div#summary-block {
        padding: 0;
    }

    .pg-step-title {
        font-size: 16px;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }

    /* Summary items table */
    .summary-items {
        font-size: 0.9em;
    }

    #summary-block .summary-items th,
    #summary-block .summary-items td {
        padding: 10px 5px;
    }

    .product-item-details a {
        font-size: 12px;
    }

    .qty-wrapper .qty-input {
        width: 30px;
        font-size: 13px;
    }

    .qty-wrapper button.qty-change {
        width: 26px;
        height: 26px;
    }

    /* Summary totals */
    .summary-total tr.grand-total th,
    .summary-total tr.grand-total td {
        font-size: 20px;
    }

    /* Comments box */
    .comment-window {
        padding: 12px !important;
    }

    /* Input padding */
    .input-eff input,
    .input-eff select,
    .input-eff textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Shipping/Payment radio buttons */
    label.radios {
        padding: 14px 14px 14px 45px;
    }

    .checkmark {
        left: 14px;
    }
}

/* Hidden utility */
.invis {
    display: none !important;
}

/* Shipping Address Form Toggle */
.shipping-content {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.shipping-content.hidden {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    border: none;
    visibility: hidden;
}

.shipping-content.show {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
}

.shipping-content>label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    margin-bottom: 15px;
}

/* Billing Same as Shipping Checkbox */
.billing-address-same-as-shipping {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin: 15px 0;
    padding: 14px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.billing-address-same-as-shipping label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin: 0;
    cursor: pointer;
    order: 1;
    position: static;
    transform: none;
    background: transparent;
}

.billing-address-same-as-shipping input[type="checkbox"] {
    order: 2;
    margin-left: auto;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #015eae;
}

/* Create Account Block */
.create-account-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.create-account-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.create-account-checkbox label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    cursor: pointer;
    position: static;
    transform: none;
    background: transparent;
}

.create-account-checkbox input[type="checkbox"] {
    margin-left: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #015eae;
}

/* Password Fields Row */
.create-account-block .pg-form.password {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
    margin: 0;
}

.create-account-block .pg-form.password.invis {
    display: none !important;
}

/* Billing Same as Shipping inside create-account-block */
.create-account-block .billing-address-same-as-shipping {
    width: 100%;
    margin-top: 10px;
}

/* Agreement Checkbox */
.pg-checkout-agreement {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-top: 15px;
    padding: 14px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.pg-checkout-agreement label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin: 0;
    cursor: pointer;
    order: 1;
    position: static;
    transform: none;
    background: transparent !important;
}

.pg-checkout-agreement label a {
    color: #015eae;
    text-decoration: underline;
}

.pg-checkout-agreement input[type="checkbox"] {
    order: 2;
    margin-left: auto;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #015eae;
}

/* Payment Method Images - Better positioning */
label.radios img {
    height: 28px;
    width: auto;
    margin-left: 15px;
    object-fit: contain;
}

/* Multiple images in payment option */
label.radios .payment-images,
label.radios .imoje-blik {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

label.radios .imoje-blik img {
    margin-left: 0;
}

/* Validation Errors */
.mage-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
}

.agreement-error-msg {
    color: #e02b27;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Fieldset within forms */
.pg-checkout-account-fieldset {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.pg-checkout-account-fieldset>.pg-form {
    padding: 0 10px;
    box-sizing: border-box;
    margin-top: 15px;
}

/* Ensure labels stay visible */
.input-eff label {
    z-index: 1;
}

/* Autofill handling - ensure labels float when browser autofills */
.input-eff input:-webkit-autofill,
.input-eff input:-webkit-autofill:hover,
.input-eff input:-webkit-autofill:focus,
.input-eff input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-eff input:-webkit-autofill+label,
.input-eff input:-webkit-autofill:hover+label,
.input-eff input:-webkit-autofill:focus+label,
.input-eff input:-webkit-autofill:active+label {
    top: -3px !important;
    left: 10px !important;
    transform: translateY(-50%) !important;
    font-size: 11px !important;
    background: #fff !important;
    padding: 0 6px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* Additional autofill detection using animation */
@keyframes onAutoFillStart {
    from {
        opacity: 1;
    }

    to {
        opacity: 1;
    }
}

.input-eff input:-webkit-autofill,
.input-eff textarea:-webkit-autofill {
    animation-name: onAutoFillStart;
    animation-duration: 0.001s;
    animation-fill-mode: both;
}

/* Country Select - Fix text readability */
.pg-form.country .input-eff select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-right: 40px;
    cursor: pointer;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.5;
    padding: 0px;
    padding-left: 10px;
}

.pg-form.country .input-eff select option {
    color: #1a1a1a;
    background: #fff;
    padding: 10px;
}

/* Fix select autofill background */
.pg-form.country .input-eff select:-webkit-autofill,
.pg-form.country .input-eff select:-webkit-autofill:hover,
.pg-form.country .input-eff select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
}

/* ========================================
   VAT Popup Modal — Modern Style
   ======================================== */

/* Backdrop overlay — frosted glass blur */
.pg-vat-modal.modal-popup._show {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal card — centered, wide, rounded */
.pg-vat-modal.modal-popup._show .modal-inner-wrap {
    max-width: 750px;
    width: 92vw;
    margin: auto;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
    animation: pgVatSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

@keyframes pgVatSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hide default Magento modal header chrome — keep only close button */
.pg-vat-modal .modal-header {
    border: none;
    padding: 0;
    min-height: 0;
    background: transparent;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
}

/* Close X button — minimal circle */
.pg-vat-modal .modal-header .action-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #6b7280;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pg-vat-modal .modal-header .action-close:hover {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.pg-vat-modal .modal-header .action-close span {
    font-size: 0;
    line-height: 0;
}

.pg-vat-modal .modal-header .action-close::before {
    content: '×';
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: inherit;
}

/* Inner modal content area — remove default padding */
.pg-vat-modal .modal-content {
    padding: 0;
}

/* Two-column body layout */
.pg-vat-modal .modal-body {
    display: flex;
    min-height: 320px;
}

/* Show the inner modal-header with heading */
.pg-vat-modal #modal-content-11 .modal-header {
    padding: 0;
    margin: 0 0 6px 0;
    border: none;
    min-height: 0;
    background: transparent;
    position: static;
}

/* ---- Left Column ---- */
.pg-vat-modal .left-column {
    flex: 1 1 55%;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Business icon — uses the generated PNG */
.pg-vat-modal .left-column::before {
    content: '';
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    margin-bottom: 22px;
    background-image: url('../images/vat-business-icon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    flex-shrink: 0;
}

/* Heading */
.pg-vat-modal .left-column h2,
.pg-vat-modal #modal-content-11>div>.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* Description text */
.pg-vat-modal .vat-description {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 28px 0;
    line-height: 1.7;
}

/* VAT Input Group */
.pg-vat-modal .vat-input-group {
    margin-bottom: 22px;
}

.pg-vat-modal .vat-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.pg-vat-modal .vat-input-group input[type="text"],
.pg-vat-modal #vat-number {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.pg-vat-modal .vat-input-group input[type="text"]:focus,
.pg-vat-modal #vat-number:focus {
    border-color: #3262af;
    box-shadow: 0 0 0 4px rgba(50, 98, 175, 0.1);
}

.pg-vat-modal .vat-input-group input[type="text"]::placeholder,
.pg-vat-modal #vat-number::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Confirm Button */
.pg-vat-modal button.confirm {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3262af, #2854a0);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}

.pg-vat-modal button.confirm:hover {
    background: linear-gradient(135deg, #2854a0, #1e4a91);
    box-shadow: 0 6px 20px rgba(50, 98, 175, 0.35);
    transform: translateY(-1px);
}

.pg-vat-modal button.confirm:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(50, 98, 175, 0.2);
}

/* ---- Right Column ---- */
.pg-vat-modal .right-column {
    flex: 1 1 45%;
    background: linear-gradient(180deg, #f1f5f9, #e8edf4);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-left: 1px solid #e2e8f0;
}

.pg-vat-modal .right-column h2 {
    font-size: 16px;
    font-weight: 500;
    color: #475569;
    margin: 0 0 28px 0;
    line-height: 1.65;
}

/* "Not a business client" ghost button */
.pg-vat-modal button.close {
    padding: 12px 28px;
    background: #fff;
    color: #374151;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.pg-vat-modal button.close:hover {
    border-color: #94a3b8;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Hide Magento's default modal footer */
.pg-vat-modal .modal-footer {
    display: none;
}

/* ---- Responsive: stack on mobile ---- */
@media screen and (max-width: 640px) {
    .pg-vat-modal.modal-popup._show .modal-inner-wrap {
        max-width: 96vw;
        width: 96vw;
        border-radius: 16px;
        margin: 16px auto;
    }

    .pg-vat-modal .modal-body {
        flex-direction: column;
        min-height: auto;
    }

    .pg-vat-modal .left-column {
        padding: 28px 24px 20px;
    }

    .pg-vat-modal .left-column::before {
        width: 52px;
        height: 52px;
    }

    .pg-vat-modal .right-column {
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 24px;
    }
}
