/*
 * Krepšelis ir apmokėjimas pagal pagrindinės svetainės formų stilių
 * (resources/views/auth/login.blade.php):
 *   kortelė      — rounded-2xl border-line bg-white p-6 sm:p-8
 *   etiketė      — text-[13.5px] text-moss
 *   laukas       — rounded-full border-line-input bg-cream px-5 py-3.5 text-[15px]
 *   mygtukas     — rounded-full bg-btn py-[15px] text-base text-cream hover:bg-btn-hover
 *   pranešimas   — rounded-xl bg-mist px-4 py-3.5 text-[14px] text-pine
 *   antraštė     — font-serif text-[30px] sm:text-[40px] font-medium text-pine, centre
 *
 * Elementor Pro „woocommerce-cart“ ir „woocommerce-checkout-page“ valdikliai
 * stilių ima iš CSS kintamųjų — juos ir nustatome; valdiklių įrašyti stiliaus
 * nustatymai pašalinti (kitaip jie perrašytų šiuos).
 */

/* ---------- Elementor valdiklių kintamieji ---------- */

body .elementor-widget-woocommerce-cart,
body .elementor-widget-woocommerce-checkout-page {
    --sections-background-color: #fff;
    --sections-border-type: solid;
    --sections-border-color: var(--endo-line);
    --sections-border-radius: 16px;
    --sections-padding: 32px;
    --sections-margin: 24px;
    --sections-title-color: var(--endo-ink);
    --sections-title-spacing: 20px;
    --sections-secondary-title-color: var(--endo-ink);
    --sections-secondary-title-spacing: 12px;
    --sections-descriptions-color: var(--endo-moss);
    --sections-descriptions-spacing: 12px;
    --sections-messages-color: var(--endo-moss);
    --sections-radio-buttons-color: var(--endo-pine);
    --sections-checkboxes-color: var(--endo-pine);

    --forms-labels-color: var(--endo-moss);
    --forms-label-spacing: 8px;
    --forms-rows-gap: 18px;
    --forms-columns-gap-padding: 8px;
    --forms-columns-gap-margin: -8px;
    --forms-fields-normal-color: var(--endo-ink);
    --forms-fields-focus-color: var(--endo-ink);
    --forms-fields-focus-border-color: var(--endo-pine);
    --forms-fields-border-radius: 999px;
    --forms-fields-padding: 14px 20px;
    --forms-fields-focus-transition-duration: 150ms;

    --forms-buttons-border-type: none;
    --forms-buttons-border-color: transparent;
    --forms-buttons-border-radius: 999px;
    --forms-buttons-padding: 14px 28px;
    --forms-buttons-normal-text-color: var(--endo-cream);
    --forms-buttons-hover-text-color: var(--endo-cream);
    --forms-buttons-hover-border-color: transparent;
    --forms-buttons-hover-transition-duration: 150ms;

    --checkout-button-border-radius: 999px;
    --checkout-button-padding: 15px 24px;
    --checkout-button-normal-text-color: var(--endo-cream);
    --checkout-button-hover-text-color: var(--endo-cream);
    --checkout-button-hover-border-color: transparent;
    --checkout-button-hover-transition-duration: 150ms;

    --purchase-button-border-radius: 999px;
    --purchase-button-padding: 15px 24px;
    --purchase-button-normal-text-color: var(--endo-cream);
    --purchase-button-hover-text-color: var(--endo-cream);
    --purchase-button-hover-border-color: transparent;
    --purchase-button-hover-transition-duration: 150ms;

    --links-normal-color: var(--endo-pine);
    --links-hover-color: var(--endo-pine-dark);
    --product-link-normal-color: var(--endo-ink);
    --product-link-hover-color: var(--endo-pine);

    --order-summary-color: var(--endo-ink);
    --order-summary-title-color: var(--endo-stone);
    --order-summary-title-spacing: 4px;
    --order-summary-items-color: var(--endo-moss);
    --order-summary-totals-color: var(--endo-ink);
    --order-summary-variations-color: var(--endo-stone);
    --order-summary-items-divider-color: var(--endo-line-soft);
    --order-summary-items-divider-weight: 1px;
    --order-summary-totals-divider-color: var(--endo-line);
    --order-summary-totals-divider-weight: 1px;
    --order-summary-rows-gap-top: 14px;
    --order-summary-rows-gap-bottom: 14px;
    --order-summary-quantity-border-color: var(--endo-line-input);
    --order-summary-quantity-border-weight: 1px;
    --order-summary-remove-icon-normal-color: var(--endo-stone);
    --order-summary-remove-icon-hover-color: var(--endo-pine);

    --totals-color: var(--endo-ink);
    --totals-divider-color: var(--endo-line);
    --totals-divider-weight: 1px;
    --totals-rows-gap-top: 12px;
    --totals-rows-gap-bottom: 12px;

    font-family: var(--endo-font-sans);
    color: var(--endo-ink);
}

/* ---------- Puslapio antraštė („Krepšelis“, „Apmokėjimas“) ---------- */

body.woocommerce-cart .elementor-widget-heading .elementor-heading-title,
body.woocommerce-checkout .elementor-widget-heading .elementor-heading-title {
    margin: 40px 0 28px;
    color: var(--endo-pine);
    font-family: var(--endo-font-serif);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

/* ---------- Pranešimai ---------- */

body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-checkout .woocommerce-NoticeGroup .woocommerce-message,
body.woocommerce-checkout .woocommerce-NoticeGroup .woocommerce-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 24px;
    padding: 14px 18px 14px 48px;
    border: 0;
    border-radius: 12px;
    background: var(--endo-mist);
    color: var(--endo-pine);
    font-size: 14px;
    line-height: 1.5;
}

body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message::before,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message::before,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-info::before {
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--endo-pine);
}

/* „Krepšelis“ / „Peržiūrėti krepšelį“ mygtukas pranešime — paprasta nuoroda */
body.woocommerce-cart .woocommerce-message a.button,
body.woocommerce-checkout .woocommerce-message a.button {
    order: 2;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--endo-pine);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.woocommerce-cart .woocommerce-message a.button:hover,
body.woocommerce-checkout .woocommerce-message a.button:hover {
    background: transparent;
    color: var(--endo-pine-dark);
}

body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-error {
    margin: 0 0 24px;
    padding: 14px 18px 14px 48px;
    border: 0;
    border-radius: 12px;
    background: #fdecea;
    color: #b42318;
    font-size: 14px;
}

/* ---------- Sekcijų (kortelių) antraštės ---------- */

body .elementor-widget-woocommerce-cart .e-cart-totals h2,
body .elementor-widget-woocommerce-checkout-page .woocommerce-billing-fields > h3,
body .elementor-widget-woocommerce-checkout-page #order_review_heading,
body .elementor-widget-woocommerce-checkout-page .woocommerce-additional-fields > h3 {
    color: var(--endo-ink);
    font-family: var(--endo-font-serif);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}

body .elementor-widget-woocommerce-checkout-page .e-checkout-secondary-title {
    color: var(--endo-moss);
    font-family: var(--endo-font-sans);
    font-size: 14.5px;
    font-weight: 400;
}

/* „Pristatyti kitu adresu?“ — žymimasis laukelis, ne antraštė */
body .elementor-widget-woocommerce-checkout-page #ship-to-different-address {
    margin: 0;
    font-family: var(--endo-font-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

body .elementor-widget-woocommerce-checkout-page #ship-to-different-address label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--endo-ink);
    cursor: pointer;
}

/* ---------- Laukai ---------- */

body .elementor-widget-woocommerce-cart .woocommerce label,
body .elementor-widget-woocommerce-checkout-page .woocommerce .form-row label {
    color: var(--endo-moss);
    font-family: var(--endo-font-sans);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.4;
}

body .elementor-widget-woocommerce-checkout-page .woocommerce .form-row .required {
    color: #b42318;
    text-decoration: none;
}

body .elementor-widget-woocommerce-cart .woocommerce input.input-text,
body .elementor-widget-woocommerce-checkout-page .woocommerce input.input-text,
body .elementor-widget-woocommerce-checkout-page .woocommerce select,
body .elementor-widget-woocommerce-checkout-page .woocommerce textarea,
body .elementor-widget-woocommerce-checkout-page .woocommerce .select2-container .select2-selection--single {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--endo-line-input);
    border-radius: 999px;
    background-color: var(--endo-cream);
    box-shadow: none;
    color: var(--endo-ink);
    font-family: var(--endo-font-sans);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body .elementor-widget-woocommerce-checkout-page .woocommerce textarea {
    min-height: 110px;
    padding: 14px 20px;
    border-radius: 18px;
    resize: vertical;
}

body .elementor-widget-woocommerce-checkout-page .woocommerce select {
    padding: 14px 44px 14px 20px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2375847b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 20px center;
    background-repeat: no-repeat;
}

body .elementor-widget-woocommerce-cart .woocommerce input.input-text::placeholder,
body .elementor-widget-woocommerce-checkout-page .woocommerce input.input-text::placeholder,
body .elementor-widget-woocommerce-checkout-page .woocommerce textarea::placeholder {
    color: #9aa79e;
    opacity: 1;
}

body .elementor-widget-woocommerce-cart .woocommerce input.input-text:focus,
body .elementor-widget-woocommerce-checkout-page .woocommerce input.input-text:focus,
body .elementor-widget-woocommerce-checkout-page .woocommerce select:focus,
body .elementor-widget-woocommerce-checkout-page .woocommerce textarea:focus {
    border-color: var(--endo-pine);
    box-shadow: 0 0 0 3px rgba(33, 104, 85, 0.12);
    outline: none;
}

body .elementor-widget-woocommerce-checkout-page .woocommerce .form-row.woocommerce-invalid input.input-text {
    border-color: #b42318;
}

/* Žymimieji laukeliai ir pasirinkimai — kaip pagrindinėje (accent-pine) */
body .elementor-widget-woocommerce-cart input[type="radio"],
body .elementor-widget-woocommerce-cart input[type="checkbox"],
body .elementor-widget-woocommerce-checkout-page input[type="radio"],
body .elementor-widget-woocommerce-checkout-page input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--endo-pine);
    cursor: pointer;
    flex-shrink: 0;
}

/* ---------- Mygtukai ---------- */

body .elementor-widget-woocommerce-cart .woocommerce button.button,
body .elementor-widget-woocommerce-cart .woocommerce a.checkout-button,
body .elementor-widget-woocommerce-checkout-page .woocommerce button.button,
body .elementor-widget-woocommerce-checkout-page .woocommerce button.woocommerce-button,
body .elementor-widget-woocommerce-checkout-page #place_order {
    border: 0;
    border-radius: 999px;
    background-color: var(--endo-sage);
    box-shadow: none;
    color: var(--endo-cream);
    font-family: var(--endo-font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
    transition: background-color 0.15s ease;
}

body .elementor-widget-woocommerce-cart .woocommerce button.button:hover,
body .elementor-widget-woocommerce-cart .woocommerce a.checkout-button:hover,
body .elementor-widget-woocommerce-checkout-page .woocommerce button.button:hover,
body .elementor-widget-woocommerce-checkout-page .woocommerce button.woocommerce-button:hover,
body .elementor-widget-woocommerce-checkout-page #place_order:hover {
    background-color: var(--endo-pine);
    color: var(--endo-cream);
}

body .elementor-widget-woocommerce-cart .woocommerce a.checkout-button,
body .elementor-widget-woocommerce-checkout-page #place_order {
    display: block;
    width: 100%;
    text-align: center;
}

/* ---------- Krepšelio lentelė ---------- */

body .elementor-widget-woocommerce-cart .woocommerce table.shop_table {
    border: 0;
    border-collapse: collapse;
    font-size: 15px;
}

body .elementor-widget-woocommerce-cart .woocommerce table.shop_table thead th {
    padding: 0 8px 14px;
    border-bottom: 1px solid var(--endo-line);
    color: var(--endo-stone);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body .elementor-widget-woocommerce-cart .woocommerce table.shop_table td {
    padding: 18px 8px;
    border-top: 0;
    border-bottom: 1px solid var(--endo-line-soft);
    background: transparent;
    vertical-align: middle;
}

body .elementor-widget-woocommerce-cart .woocommerce table.shop_table tr:last-child td {
    border-bottom: 0;
}

body .elementor-widget-woocommerce-cart .woocommerce table.cart img {
    width: 64px;
    height: 64px;
    padding: 6px;
    border-radius: 12px;
    background: var(--endo-linen);
    object-fit: contain;
}

body .elementor-widget-woocommerce-cart .woocommerce td.product-name a {
    color: var(--endo-ink);
    font-family: var(--endo-font-serif);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

body .elementor-widget-woocommerce-cart .woocommerce td.product-name a:hover {
    color: var(--endo-pine);
}

body .elementor-widget-woocommerce-cart .woocommerce td.product-remove a.remove {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--endo-line);
    border-radius: 999px;
    color: var(--endo-stone) !important;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

body .elementor-widget-woocommerce-cart .woocommerce td.product-remove a.remove:hover {
    border-color: var(--endo-pine);
    background: transparent;
    color: var(--endo-pine) !important;
}

body .elementor-widget-woocommerce-cart .woocommerce .quantity .qty {
    width: 76px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--endo-line-input);
    border-radius: 999px;
    background: var(--endo-cream);
    color: var(--endo-ink);
    font-size: 15px;
    text-align: center;
}

/* Kainos ir „(su PVM)“ */
body .elementor-widget-woocommerce-cart .woocommerce .woocommerce-Price-amount,
body .elementor-widget-woocommerce-checkout-page .woocommerce .woocommerce-Price-amount {
    color: var(--endo-ink);
    font-weight: 400;
    white-space: nowrap;
}

body .elementor-widget-woocommerce-cart .woocommerce small.tax_label,
body .elementor-widget-woocommerce-cart .woocommerce small.includes_tax,
body .elementor-widget-woocommerce-checkout-page .woocommerce small.tax_label,
body .elementor-widget-woocommerce-checkout-page .woocommerce small.includes_tax {
    color: var(--endo-stone);
    font-size: 12px;
}

/* Nuolaidos kodas (krepšelyje) */
body .elementor-widget-woocommerce-cart .woocommerce .coupon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

body .elementor-widget-woocommerce-cart .woocommerce .coupon .input-text {
    flex: 1 1 220px;
    width: auto;
}

/* ---------- Užsakymo suma (krepšelis) ---------- */

body .elementor-widget-woocommerce-cart .e-cart-totals table.shop_table th,
body .elementor-widget-woocommerce-cart .e-cart-totals table.shop_table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--endo-line-soft);
    color: var(--endo-ink);
    font-size: 15px;
    font-weight: 400;
    vertical-align: top;
}

body .elementor-widget-woocommerce-cart .e-cart-totals tr.order-total th,
body .elementor-widget-woocommerce-cart .e-cart-totals tr.order-total td,
body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.order-total th,
body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.order-total td {
    border-bottom: 0;
    font-size: 17px;
    font-weight: 500;
}

body .elementor-widget-woocommerce-cart .e-cart-totals tr.order-total .woocommerce-Price-amount,
body .elementor-widget-woocommerce-checkout-page tr.order-total .woocommerce-Price-amount {
    color: var(--endo-pine);
    font-size: 20px;
    font-weight: 500;
}

/* Pristatymo būdai */
body .elementor-widget-woocommerce-cart #shipping_method,
body .elementor-widget-woocommerce-checkout-page #shipping_method {
    margin: 0;
    padding: 0;
    list-style: none;
}

body .elementor-widget-woocommerce-cart #shipping_method li,
body .elementor-widget-woocommerce-checkout-page #shipping_method li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    color: var(--endo-moss);
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
}

body .elementor-widget-woocommerce-cart #shipping_method li input,
body .elementor-widget-woocommerce-checkout-page #shipping_method li input {
    margin-top: 3px;
}

body .elementor-widget-woocommerce-cart #shipping_method li label,
body .elementor-widget-woocommerce-checkout-page #shipping_method li label {
    color: var(--endo-moss);
    font-size: 14.5px;
    font-weight: 400;
}

body .elementor-widget-woocommerce-cart #shipping_method li img,
body .elementor-widget-woocommerce-checkout-page #shipping_method li img {
    display: inline-block;
    max-height: 18px;
    margin: 0 6px 0 0;
    vertical-align: middle;
}

body .elementor-widget-woocommerce-cart .woocommerce-shipping-destination,
body .elementor-widget-woocommerce-cart .e-checkout-message {
    color: var(--endo-stone);
    font-size: 13.5px;
}

/* ---------- Užsakymo apžvalga (apmokėjimas) ---------- */

body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table th,
body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table td {
    color: var(--endo-ink);
    font-size: 14.5px;
    font-weight: 400;
    vertical-align: top;
}

body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table thead th {
    color: var(--endo-stone);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table td.product-name {
    color: var(--endo-ink);
}

body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table .product-quantity {
    color: var(--endo-stone);
    font-weight: 400;
}

/* Nuolaidos kvietimas */
body .elementor-widget-woocommerce-checkout-page .e-coupon-box {
    font-size: 14.5px;
}

body .elementor-widget-woocommerce-checkout-page .e-coupon-box a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Mokėjimas */
body .elementor-widget-woocommerce-checkout-page #payment {
    border-radius: 0;
    background: transparent;
}

body .elementor-widget-woocommerce-checkout-page #payment ul.payment_methods {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

body .elementor-widget-woocommerce-checkout-page #payment ul.payment_methods li {
    color: var(--endo-ink);
    font-size: 15px;
    line-height: 1.5;
}

body .elementor-widget-woocommerce-checkout-page #payment div.payment_box {
    margin: 12px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--endo-mist);
    color: var(--endo-pine);
    font-size: 14px;
}

body .elementor-widget-woocommerce-checkout-page #payment div.payment_box::before {
    display: none;
}

body .elementor-widget-woocommerce-checkout-page #payment div.form-row,
body .elementor-widget-woocommerce-checkout-page #payment .place-order {
    margin: 0;
    padding: 0;
}

body .elementor-widget-woocommerce-checkout-page .woocommerce-privacy-policy-text p {
    margin: 0 0 14px;
    color: var(--endo-stone);
    font-size: 13px;
    line-height: 1.5;
}

body .elementor-widget-woocommerce-checkout-page .woocommerce-terms-and-conditions-wrapper label.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--endo-moss);
    font-size: 14px;
    line-height: 1.45;
}

body .elementor-widget-woocommerce-checkout-page .woocommerce-terms-and-conditions-wrapper label.checkbox input {
    margin-top: 2px;
}

body .elementor-widget-woocommerce-checkout-page .woocommerce-terms-and-conditions-wrapper a,
body .elementor-widget-woocommerce-checkout-page .woocommerce-privacy-policy-text a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Plotis ir mobilūs ---------- */

@media (min-width: 640px) {
    body.woocommerce-cart .elementor-widget-heading .elementor-heading-title,
    body.woocommerce-checkout .elementor-widget-heading .elementor-heading-title {
        margin-top: 56px;
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    body .elementor-widget-woocommerce-cart,
    body .elementor-widget-woocommerce-checkout-page {
        --sections-padding: 22px;
        --sections-margin: 16px;
    }

    body .elementor-widget-woocommerce-cart .woocommerce table.shop_table_responsive tr td {
        padding: 10px 0;
    }
}

/* ---------- Elementor numatytųjų taisyklių perrašymai ----------
 * Tie patys selektoriai kaip Elementor Pro widget-woocommerce-{cart,checkout-page}
 * CSS, su „body“ priekyje (didesnis specifiškumas, be !important). */

/* Mokėjimo mygtukai (Elementor numatytasis #5bc0de) */
body .elementor-widget-woocommerce-cart .woocommerce .wc-proceed-to-checkout .checkout-button,
body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout #payment #place_order {
    width: 100%;
    border: 0;
    background-color: var(--endo-sage);
    font-family: var(--endo-font-sans);
    font-size: 16px;
    font-weight: 400;
}

body .elementor-widget-woocommerce-cart .woocommerce .wc-proceed-to-checkout .checkout-button:hover,
body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout #payment #place_order:hover {
    background-color: var(--endo-pine);
}

body .elementor-widget-woocommerce-cart .woocommerce .wc-proceed-to-checkout {
    padding: 8px 0 0;
}

/* Laukai: krepšelis */
body .elementor-widget-woocommerce-cart .woocommerce .input-text,
body .elementor-widget-woocommerce-cart .woocommerce select {
    border: 1px solid var(--endo-line-input);
    background-color: var(--endo-cream);
    color: var(--endo-ink);
    font-size: 15px;
}

body .elementor-widget-woocommerce-cart .woocommerce .input-text:focus,
body .elementor-widget-woocommerce-cart .woocommerce select:focus {
    border-color: var(--endo-pine);
    background-color: var(--endo-cream);
    color: var(--endo-ink);
}

body .elementor-widget-woocommerce-cart .woocommerce .input-text.qty {
    width: 76px;
    max-height: none;
    min-height: 42px;
    border-radius: 999px;
    background-color: var(--endo-cream);
    color: var(--endo-ink);
    font-size: 15px;
}

/* Laukai: apmokėjimas */
body .elementor-widget-woocommerce-checkout-page .woocommerce #customer_details .form-row .input-text,
body .elementor-widget-woocommerce-checkout-page .woocommerce #customer_details .form-row select,
body .elementor-widget-woocommerce-checkout-page .woocommerce #customer_details .form-row textarea,
body .elementor-widget-woocommerce-checkout-page .woocommerce .e-coupon-box .form-row .input-text {
    width: 100%;
    border: 1px solid var(--endo-line-input);
    background-color: var(--endo-cream);
    color: var(--endo-ink);
    font-size: 15px;
}

body .elementor-widget-woocommerce-checkout-page .woocommerce #customer_details .form-row .input-text:focus,
body .elementor-widget-woocommerce-checkout-page .woocommerce #customer_details .form-row select:focus,
body .elementor-widget-woocommerce-checkout-page .woocommerce #customer_details .form-row textarea:focus,
body .elementor-widget-woocommerce-checkout-page .woocommerce .e-coupon-box .form-row .input-text:focus {
    border-color: var(--endo-pine);
    background-color: var(--endo-cream);
    color: var(--endo-ink);
}

body .elementor-widget-woocommerce-checkout-page .select2-container--default .select2-selection--single {
    height: auto;
    min-height: 50px;
    border: 1px solid var(--endo-line-input);
    border-radius: 999px;
    background-color: var(--endo-cream);
    color: var(--endo-ink);
}

/* Krepšelio lentelė ir sumos */
body .elementor-widget-woocommerce-cart .woocommerce .cart th {
    padding: 0 8px 14px;
    color: var(--endo-stone);
    font-size: 12.5px;
    font-weight: 500;
}

body .elementor-widget-woocommerce-cart .woocommerce .cart_totals h2 {
    margin: 0 0 8px;
    padding: 0;
    color: var(--endo-ink);
    font-family: var(--endo-font-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
}

body .elementor-widget-woocommerce-cart .woocommerce table.cart img {
    width: 64px;
    height: 64px;
}

/* Pristatymo eilutė — visu pločiu (antraštė virš būdų), ne siauras stulpelis */
body .elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals th,
body .elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals td,
body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
    display: block;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

body .elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals th,
body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th {
    padding-bottom: 6px;
    border-bottom: 0;
    font-weight: 500;
}

body .elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals td::before {
    display: none;
}

/* Mokėjimo būdo aprašas */
body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout #payment .payment_methods .payment_box {
    background-color: var(--endo-mist);
    color: var(--endo-pine);
}

/* Elementor: pristatymo stulpelis max-width:70px, produkto pavadinimas 150px */
body .elementor-widget-woocommerce-checkout-page .woocommerce-shipping-totals td,
body .elementor-widget-woocommerce-checkout-page .woocommerce .woocommerce-checkout-review-order-table .cart_item td.product-name {
    max-width: none;
}

/* Elementor pasirinkimų etiketes dažo radio spalva — tekstas turi būti moss/ink */
body .elementor-widget-woocommerce-checkout-page .woocommerce #shipping_method li label,
body .elementor-widget-woocommerce-cart .woocommerce #shipping_method li label {
    color: var(--endo-moss);
}

body .elementor-widget-woocommerce-checkout-page .woocommerce .wc_payment_method label {
    color: var(--endo-ink);
    font-size: 15px;
}

/* Pastabų laukas — ne ovalas */
body .elementor-widget-woocommerce-checkout-page .woocommerce #customer_details .form-row textarea {
    min-height: 110px;
    border-radius: 18px;
}

/* Krepšelio miniatiūra */
body .elementor-widget-woocommerce-cart .woocommerce table.cart td.product-thumbnail {
    width: 84px;
    min-width: 84px;
}

body .elementor-widget-woocommerce-cart .woocommerce table.cart td.product-thumbnail img {
    max-width: none;
}

/* Pristatymo eilutė — ir pati eilutė blokas (kitaip langeliai lieka lentelės stulpelyje) */
body .elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals,
body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
    display: block;
    width: 100%;
}

/* WooCommerce pranešimą fokusuoja programiškai (tabindex=-1, ekrano
   skaitytuvams) — tai ne interaktyvus elementas, matomo žiedo nereikia. */
body.woocommerce-cart .woocommerce-message[tabindex="-1"]:focus,
body.woocommerce-checkout .woocommerce-message[tabindex="-1"]:focus,
body.woocommerce-checkout .woocommerce-NoticeGroup[tabindex="-1"]:focus,
body.woocommerce-checkout .woocommerce-error[tabindex="-1"]:focus {
    outline: none;
}

@media (max-width: 767px) {
    /* Vardas/Pavardė mobiliajame — vienas stulpelis, be tarpo poslinkio */
    body .elementor-widget-woocommerce-checkout-page {
        --forms-columns-gap-padding: 0px;
        --forms-columns-gap-margin: 0px;
    }
}

/* Užsakymo apžvalga — lankstios eilutės vietoje lentelės: pavadinimas kairėje,
   suma dešinėje, pristatymas per visą plotį (lentelėje bloko eilutė lieka
   įkalinta pirmame stulpelyje). */
body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table,
body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table thead,
body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table tbody,
body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table tfoot {
    display: block;
    width: 100%;
}

body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table tr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table tr > th,
body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table tr > td {
    display: block;
    flex: 1 1 auto;
}

body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table tr > :last-child:not(:first-child) {
    flex: 0 0 auto;
    max-width: 60%;
    text-align: right;
}

body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
    flex-direction: column;
    gap: 6px;
}

body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > td:last-child:not(:first-child) {
    flex: 1 1 auto;
    max-width: none;
    text-align: left;
}

/* Skirtukai — viena linija per eilutę (ne atskiri langelių segmentai) */
body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table tr > th,
body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table tr > td {
    padding: 0;
    border: 0;
}

/* Elementor apžvalgos skirtukai ir tarpai — per jo kintamuosius (langeliams);
   juos nuliname ir piešiame vieną skirtuką eilutei (inset šešėlis). */
body .elementor-widget-woocommerce-checkout-page {
    --order-summary-items-divider-weight: 0px;
    --order-summary-totals-divider-weight: 0px;
    --order-summary-rows-gap-top: 0px;
    --order-summary-rows-gap-bottom: 0px;
}

body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table tr {
    padding: 14px 0;
    box-shadow: inset 0 -1px 0 var(--endo-line-soft);
}

body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table thead tr {
    padding-top: 0;
    box-shadow: inset 0 -1px 0 var(--endo-line);
}

body .elementor-widget-woocommerce-checkout-page table.woocommerce-checkout-review-order-table tr.order-total {
    margin-top: -1px;
    padding-bottom: 0;
    box-shadow: inset 0 1px 0 var(--endo-line);
}

/* Pastabų laukas — spindulys per Elementor kintamąjį pačiame laukelyje */
body .elementor-widget-woocommerce-checkout-page #order_comments_field {
    --forms-fields-border-radius: 18px;
}

body .elementor-widget-woocommerce-checkout-page .woocommerce #shipping_method li label,
body .elementor-widget-woocommerce-cart .woocommerce #shipping_method li label {
    line-height: 1.45;
}

body .elementor-widget-woocommerce-cart .woocommerce .coupon .input-text,
body .elementor-widget-woocommerce-checkout-page .woocommerce .e-coupon-box .form-row .input-text {
    padding: 14px 20px;
}

/* ======================================================================
 * LP EXPRESS paštomato pasirinkimas (woo-lithuaniapost, Select2)
 * Laukas — kaip kiti formos laukai; atsidarantis sąrašas — kortelė;
 * kol paštomatas nepasirinktas, rėmelis pulsuoja tamsiai žalia
 * (.endo-lp-needs-choice — nustato lp-terminal.js).
 * ====================================================================== */

/* Atskira eilutė po LP EXPRESS pasirinkimu, ne šalia jo */
body .elementor-widget-woocommerce-cart #shipping_method li,
body .elementor-widget-woocommerce-checkout-page #shipping_method li {
    flex-wrap: wrap;
}

/* Pasirinkimų tekstas užima likusį eilutės plotį šalia radio (eilutė dabar laužoma) */
body .elementor-widget-woocommerce-cart #shipping_method li > label:not([for="woo_lithuaniapost_lpexpress_terminal_id"]):not(.woo_lithuaniapost_lpexpress_terminal_label),
body .elementor-widget-woocommerce-checkout-page #shipping_method li > label:not([for="woo_lithuaniapost_lpexpress_terminal_id"]):not(.woo_lithuaniapost_lpexpress_terminal_label) {
    flex: 1 1 0;
    min-width: 0;
}

body .elementor-widget-woocommerce-cart #shipping_method li > br,
body .elementor-widget-woocommerce-checkout-page #shipping_method li > br {
    display: none;
}

/* Įskiepio JS paštomato lauką perkelia į tuščią <label for="…terminal_id"> eilutėje */
body .elementor-widget-woocommerce-cart #shipping_method li > label[for="woo_lithuaniapost_lpexpress_terminal_id"],
body .elementor-widget-woocommerce-checkout-page #shipping_method li > label[for="woo_lithuaniapost_lpexpress_terminal_id"],
body .elementor-widget-woocommerce-cart #shipping_method li > label.woo_lithuaniapost_lpexpress_terminal_label,
body .elementor-widget-woocommerce-checkout-page #shipping_method li > label.woo_lithuaniapost_lpexpress_terminal_label,
body .elementor-widget-woocommerce-cart #shipping_method li > .woo_lithuaniapost_lpexpress_terminal_select_container,
body .elementor-widget-woocommerce-checkout-page #shipping_method li > .woo_lithuaniapost_lpexpress_terminal_select_container {
    flex: 0 0 100%;
    width: 100%;
}

body.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_select_container,
body.woocommerce-checkout .woo_lithuaniapost_lpexpress_terminal_select_container {
    width: 100%;
    max-width: none;
    margin: 12px 0 4px;
    padding: 0;
}

/* Paštomato laukas — 95 % stulpelio pločio (be įtraukos po radio) */
body.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_select_container,
body.woocommerce-checkout .woo_lithuaniapost_lpexpress_terminal_select_container,
body.woocommerce-cart #shipping_method .woo_lithuaniapost_lpexpress_terminal_select_container,
body.woocommerce-checkout #shipping_method .woo_lithuaniapost_lpexpress_terminal_select_container {
    width: 95%;
    padding-left: 0;
}

/* Uždarytas laukas */
body.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_select_container .select2-container,
body.woocommerce-checkout .woo_lithuaniapost_lpexpress_terminal_select_container .select2-container {
    width: 100% !important; /* Select2 rašo inline plotį */
}

body.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_select_container .select2-container .select2-selection--single,
body.woocommerce-checkout .woo_lithuaniapost_lpexpress_terminal_select_container .select2-container .select2-selection--single,
body.woocommerce-cart select.woo_lithuaniapost_lpexpress_terminal_id:not(.select2-hidden-accessible),
body.woocommerce-checkout select.woo_lithuaniapost_lpexpress_terminal_id:not(.select2-hidden-accessible) {
    display: flex;
    height: 50px;
    align-items: center;
    border: 1px solid var(--endo-line-input);
    border-radius: 999px;
    background: var(--endo-cream);
    box-shadow: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_select_container .select2-selection--single .select2-selection__rendered,
body.woocommerce-checkout .woo_lithuaniapost_lpexpress_terminal_select_container .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding: 0 48px 0 20px;
    overflow: hidden;
    color: var(--endo-ink);
    font-family: var(--endo-font-sans);
    font-size: 15px;
    line-height: 48px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_select_container .select2-selection--single .select2-selection__arrow,
body.woocommerce-checkout .woo_lithuaniapost_lpexpress_terminal_select_container .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 18px;
    width: 14px;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2375847b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 8px no-repeat;
    transition: transform 0.15s ease;
}

body.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_select_container .select2-selection__arrow b,
body.woocommerce-checkout .woo_lithuaniapost_lpexpress_terminal_select_container .select2-selection__arrow b {
    display: none;
}

body.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_select_container .select2-container--open .select2-selection__arrow,
body.woocommerce-checkout .woo_lithuaniapost_lpexpress_terminal_select_container .select2-container--open .select2-selection__arrow {
    transform: rotate(180deg);
}

body.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_select_container .select2-container--open .select2-selection--single,
body.woocommerce-checkout .woo_lithuaniapost_lpexpress_terminal_select_container .select2-container--open .select2-selection--single,
body.woocommerce-cart .woo_lithuaniapost_lpexpress_terminal_select_container .select2-container--focus .select2-selection--single,
body.woocommerce-checkout .woo_lithuaniapost_lpexpress_terminal_select_container .select2-container--focus .select2-selection--single {
    border-color: var(--endo-pine);
    box-shadow: 0 0 0 3px rgba(33, 104, 85, 0.12);
}

/* Atsidarantis sąrašas (Select2 jį prideda prie <body>) */
body.woocommerce-cart .select2-container--open .select2-dropdown,
body.woocommerce-checkout .select2-container--open .select2-dropdown {
    overflow: hidden;
    border: 1px solid var(--endo-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(27, 58, 47, 0.14);
    font-family: var(--endo-font-sans);
}

body.woocommerce-cart .select2-container--open .select2-dropdown--below,
body.woocommerce-checkout .select2-container--open .select2-dropdown--below {
    margin-top: 6px;
}

body.woocommerce-cart .select2-container--open .select2-dropdown--above,
body.woocommerce-checkout .select2-container--open .select2-dropdown--above {
    margin-top: -6px;
}

body.woocommerce-cart .select2-dropdown .select2-search--dropdown,
body.woocommerce-checkout .select2-dropdown .select2-search--dropdown {
    padding: 12px 12px 6px;
}

body.woocommerce-cart .select2-dropdown .select2-search--dropdown .select2-search__field,
body.woocommerce-checkout .select2-dropdown .select2-search--dropdown .select2-search__field {
    height: 42px;
    padding: 0 16px 0 40px;
    border: 1px solid var(--endo-line-input);
    border-radius: 999px;
    background: var(--endo-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2375847b' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") 15px center / 16px 16px no-repeat;
    color: var(--endo-ink);
    font-family: var(--endo-font-sans);
    font-size: 15px;
    outline: none;
}

body.woocommerce-cart .select2-dropdown .select2-search--dropdown .select2-search__field:focus,
body.woocommerce-checkout .select2-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--endo-pine);
    box-shadow: 0 0 0 3px rgba(33, 104, 85, 0.12);
}

body.woocommerce-cart .select2-dropdown .select2-results > .select2-results__options,
body.woocommerce-checkout .select2-dropdown .select2-results > .select2-results__options {
    max-height: 320px;
    padding: 4px 6px 8px;
}

body.woocommerce-cart .select2-dropdown .select2-results__group,
body.woocommerce-checkout .select2-dropdown .select2-results__group {
    padding: 14px 14px 6px;
    color: var(--endo-stone);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.woocommerce-cart .select2-dropdown .select2-results__option,
body.woocommerce-checkout .select2-dropdown .select2-results__option {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--endo-ink);
    font-size: 14.5px;
    line-height: 1.35;
}

body.woocommerce-cart .select2-dropdown .select2-results__option[role="group"],
body.woocommerce-checkout .select2-dropdown .select2-results__option[role="group"] {
    padding: 0;
}

body.woocommerce-cart .select2-dropdown .select2-results__option .select2-results__option,
body.woocommerce-checkout .select2-dropdown .select2-results__option .select2-results__option {
    padding-left: 14px;
}

body.woocommerce-cart .select2-dropdown .select2-results__option--selected,
body.woocommerce-checkout .select2-dropdown .select2-results__option--selected,
body.woocommerce-cart .select2-dropdown .select2-results__option[aria-selected="true"],
body.woocommerce-checkout .select2-dropdown .select2-results__option[aria-selected="true"] {
    background: var(--endo-linen);
    color: var(--endo-pine-dark);
    font-weight: 500;
}

body.woocommerce-cart .select2-dropdown .select2-results__option--highlighted,
body.woocommerce-checkout .select2-dropdown .select2-results__option--highlighted,
body.woocommerce-cart .select2-dropdown .select2-results__option--highlighted[aria-selected],
body.woocommerce-checkout .select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background: var(--endo-mist);
    color: var(--endo-pine);
}

body.woocommerce-cart .select2-dropdown .select2-results__message,
body.woocommerce-checkout .select2-dropdown .select2-results__message {
    color: var(--endo-stone);
}

/* Kol paštomatas nepasirinktas — pulsuojantis tamsiai žalias rėmelis */
@keyframes endo-lp-pulse {
    0%, 100% {
        border-color: var(--endo-line-input);
        box-shadow: 0 0 0 0 rgba(27, 58, 47, 0);
    }
    50% {
        border-color: var(--endo-forest);
        box-shadow: 0 0 0 1px var(--endo-forest), 0 0 0 6px rgba(27, 58, 47, 0.12);
    }
}

body.woocommerce-cart .endo-lp-needs-choice .select2-container:not(.select2-container--open) .select2-selection--single,
body.woocommerce-checkout .endo-lp-needs-choice .select2-container:not(.select2-container--open) .select2-selection--single,
body.woocommerce-cart .endo-lp-needs-choice select.woo_lithuaniapost_lpexpress_terminal_id:not(.select2-hidden-accessible),
body.woocommerce-checkout .endo-lp-needs-choice select.woo_lithuaniapost_lpexpress_terminal_id:not(.select2-hidden-accessible) {
    animation: endo-lp-pulse 1.6s ease-in-out infinite;
}

body.woocommerce-cart .endo-lp-needs-choice .select2-selection__rendered,
body.woocommerce-checkout .endo-lp-needs-choice .select2-selection__rendered {
    color: var(--endo-forest);
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    body.woocommerce-cart .endo-lp-needs-choice .select2-container:not(.select2-container--open) .select2-selection--single,
    body.woocommerce-checkout .endo-lp-needs-choice .select2-container:not(.select2-container--open) .select2-selection--single,
    body.woocommerce-cart .endo-lp-needs-choice select.woo_lithuaniapost_lpexpress_terminal_id:not(.select2-hidden-accessible),
    body.woocommerce-checkout .endo-lp-needs-choice select.woo_lithuaniapost_lpexpress_terminal_id:not(.select2-hidden-accessible) {
        border-color: var(--endo-forest);
        box-shadow: 0 0 0 1px var(--endo-forest);
        animation: none;
    }
}

/* Mokėjimo būdai laikinai nepasiekiami (shop-fixes.php, OPAY be būdų) */
body .elementor-widget-woocommerce-checkout-page .woocommerce-checkout #payment .payment_methods .payment_box:has(.endo-payment-unavailable) {
    background: #fbf3e4;
    color: #6b4a12;
}

body .elementor-widget-woocommerce-checkout-page .endo-payment-unavailable {
    color: #6b4a12;
    font-size: 14px;
    line-height: 1.5;
}

body .elementor-widget-woocommerce-checkout-page .endo-payment-unavailable strong {
    display: block;
    margin-bottom: 2px;
    color: #6b4a12;
    font-weight: 500;
}

body .elementor-widget-woocommerce-checkout-page .endo-payment-unavailable a {
    color: #6b4a12;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body .elementor-widget-woocommerce-checkout-page .endo-payment-unavailable a[href^="tel:"] {
    white-space: nowrap;
}

/* ======================================================================
 * OPAY bankų sąrašas — kiekvienas bankas atskiroje eilutėje:
 * [radio] [logotipas]; pasirinkta eilutė paryškinta.
 * Įskiepis žymėjimą rašo su įterptais stiliais (style="…", onmouseover),
 * todėl čia būtinas !important. Markup nekeičiamas — pasirinkimą po
 * užsakymo apžvalgos atnaujinimo atkuria WooCommerce (pagal input id).
 * ====================================================================== */
body .elementor-widget-woocommerce-checkout-page .payment_box.payment_method_opay .opay-payment-group-title {
    display: block;
    margin: 4px 0 0;
    padding: 0 !important;
    color: var(--endo-ink);
    font-size: 14px;
    font-weight: 600 !important;
}

body .elementor-widget-woocommerce-checkout-page .payment_box.payment_method_opay ul.opay-payment-group {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin: 0 !important;
    padding: 10px 0 0 !important;
}

body .elementor-widget-woocommerce-checkout-page .payment_box.payment_method_opay li.opay-payment-item {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .elementor-widget-woocommerce-checkout-page .payment_box.payment_method_opay li.opay-payment-item > label {
    display: block !important;
    margin: 0;
    padding: 0 16px !important;
    border: 1px solid var(--endo-line-input) !important;
    border-radius: 12px;
    background-color: var(--endo-cream) !important;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body .elementor-widget-woocommerce-checkout-page .payment_box.payment_method_opay li.opay-payment-item > label:hover {
    border-color: var(--endo-sage) !important;
}

body .elementor-widget-woocommerce-checkout-page .payment_box.payment_method_opay li.opay-payment-item > label:has(input:checked) {
    border-color: var(--endo-pine) !important;
    box-shadow: 0 0 0 1px var(--endo-pine);
    background-color: #fff !important;
}

body .elementor-widget-woocommerce-checkout-page .payment_box.payment_method_opay li.opay-payment-item > label:has(input:focus-visible) {
    outline: 2px solid var(--endo-pine);
    outline-offset: 2px;
}

/* Logotipas — span fonas, kairėje po radio */
body .elementor-widget-woocommerce-checkout-page .payment_box.payment_method_opay li.opay-payment-item > label > span {
    display: flex !important;
    align-items: center;
    height: 54px !important;
    background-position: 34px center !important;
    background-size: auto 30px !important;
}

body .elementor-widget-woocommerce-checkout-page .payment_box.payment_method_opay li.opay-payment-item input[type="radio"] {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
}

body .elementor-widget-woocommerce-checkout-page .payment_box.payment_method_opay .opay-clear {
    margin-bottom: 16px !important;
}

body .elementor-widget-woocommerce-checkout-page .payment_box.payment_method_opay .opay-clear:last-child {
    margin-bottom: 0 !important;
}

/* ======================================================================
 * Išdėstymas (checkout-layout.php)
 * Krepšelis: 1 „Užsakymo informacija“ (prekės + sumos), 2 „Pristatymas“ + „Tęsti“.
 * Apmokėjimas: 1 „Pirkėjo duomenys“, 2 „Užsakymo informacija“, 3 „Mokėjimo būdas“.
 * ====================================================================== */

/* Naujos stulpelių antraštės — kaip kitų kortelių */
body .elementor-widget-woocommerce-cart .woocommerce h2.endo-cart-column-title,
body .elementor-widget-woocommerce-checkout-page .woocommerce h3.endo-payment-title {
    margin: 0 0 var(--sections-title-spacing, 20px);
    padding: 0;
    color: var(--endo-ink);
    font-family: var(--endo-font-serif);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}

/* ---------- Krepšelis: sumos 1 stulpelyje ---------- */

body .elementor-widget-woocommerce-cart .endo-cart-summary {
    margin-top: 4px;
}

body .elementor-widget-woocommerce-cart .endo-cart-summary__table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: transparent;
}

body .elementor-widget-woocommerce-cart .endo-cart-summary__table tr {
    background: transparent;
}

body .elementor-widget-woocommerce-cart .endo-cart-summary__table th,
body .elementor-widget-woocommerce-cart .endo-cart-summary__table td {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--endo-line-soft);
    background: transparent;
    color: var(--endo-ink);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    vertical-align: top;
}

body .elementor-widget-woocommerce-cart .endo-cart-summary__table th {
    text-align: left;
}

body .elementor-widget-woocommerce-cart .endo-cart-summary__table td {
    text-align: right;
}

body .elementor-widget-woocommerce-cart .endo-cart-summary__table tr.order-total th,
body .elementor-widget-woocommerce-cart .endo-cart-summary__table tr.order-total td {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 17px;
    font-weight: 500;
}

body .elementor-widget-woocommerce-cart .endo-cart-summary__table tr.order-total .woocommerce-Price-amount {
    color: var(--endo-pine);
    font-size: 20px;
    font-weight: 500;
}

body .elementor-widget-woocommerce-cart .endo-cart-summary__table .woocommerce-remove-coupon {
    margin-left: 6px;
    font-size: 13px;
}

/* 2 stulpelis — tik pristatymas: sumų eilutės rodomos 1 stulpelyje, o
   pristatymo eilutės antraštę pakeičia stulpelio antraštė „Pristatymas“. */
body .elementor-widget-woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal,
body .elementor-widget-woocommerce-cart .cart_totals table.shop_table tr.cart-discount,
body .elementor-widget-woocommerce-cart .cart_totals table.shop_table tr.fee,
body .elementor-widget-woocommerce-cart .cart_totals table.shop_table tr.tax-rate,
body .elementor-widget-woocommerce-cart .cart_totals table.shop_table tr.tax-total,
body .elementor-widget-woocommerce-cart .cart_totals table.shop_table tr.order-total,
body .elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals th {
    display: none;
}

body .elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals td {
    padding-top: 4px;
    border-bottom: 0;
}

/* ---------- Apmokėjimas: mokėjimo kortelė ----------
 * Kortelė — .e-checkout__order_review-2 (jame antraštė „Mokėjimo būdas“ ir
 * #payment); pats #payment be kortelės stiliaus (AJAX jį perpiešia). */
body .elementor-widget-woocommerce-checkout-page .e-checkout__order_review-2 {
    margin: var(--sections-margin, 24px);
    padding: var(--sections-padding, 32px);
    border: 1px solid var(--sections-border-color, var(--endo-line));
    border-radius: var(--sections-border-radius, 16px);
    background: var(--sections-background-color, #fff);
}

body .elementor-widget-woocommerce-checkout-page .woocommerce .woocommerce-checkout .e-checkout__order_review-2 #payment {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

/* ---------- Apmokėjimas: 3 stulpeliai plačiame ekrane ----------
 * Elementor: .e-checkout__container (grid) > column-start | column-end >
 * column-inner > order_review, e-coupon-box, order_review-2. column-end ir
 * column-inner „display: contents“ — jų vaikai tampa tinklelio elementais.
 * DOM tvarka sutampa su vaizdine (1, 2, 3), siauresniuose ekranuose lieka
 * Elementor 2 stulpeliai / 1 stulpelis. */
@media (min-width: 1200px) {
    body.woocommerce-checkout .elementor-section.elementor-section-boxed:has(.elementor-widget-woocommerce-checkout-page) > .elementor-container {
        max-width: 1280px;
    }

    body .elementor-widget-woocommerce-checkout-page .e-checkout__container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto auto 1fr;
        align-items: start;
        row-gap: 0;
    }

    body .elementor-widget-woocommerce-checkout-page .e-checkout__column-end,
    body .elementor-widget-woocommerce-checkout-page .e-checkout__column-end > .e-checkout__column-inner {
        display: contents;
    }

    body .elementor-widget-woocommerce-checkout-page .e-checkout__column-start {
        grid-column: 1;
        grid-row: 1 / -1;
    }

    body .elementor-widget-woocommerce-checkout-page .e-checkout__order_review {
        grid-column: 2;
        grid-row: 1;
    }

    body .elementor-widget-woocommerce-checkout-page .e-coupon-box {
        grid-column: 2;
        grid-row: 2;
    }

    body .elementor-widget-woocommerce-checkout-page .e-checkout__order_review-2 {
        grid-column: 3;
        grid-row: 1 / -1;
    }

    /* Kortelės per visą stulpelio plotį (be šoninių paraščių), tarpas — tinklelio */
    body .elementor-widget-woocommerce-checkout-page .e-checkout__container {
        column-gap: 32px;
    }

    body .elementor-widget-woocommerce-checkout-page .woocommerce #customer_details .col-1,
    body .elementor-widget-woocommerce-checkout-page .woocommerce .shipping_address,
    body .elementor-widget-woocommerce-checkout-page .woocommerce .woocommerce-additional-fields,
    body .elementor-widget-woocommerce-checkout-page .woocommerce .e-checkout__order_review,
    body .elementor-widget-woocommerce-checkout-page .woocommerce .e-coupon-box,
    body .elementor-widget-woocommerce-checkout-page .e-checkout__order_review-2 {
        margin-right: 0;
        margin-left: 0;
    }
}

/* ------------------------------------------------------------------ */
/* „Perka įmonė“ — jungiklis ir įmonės laukai (company-purchase.php)  */
/* ------------------------------------------------------------------ */

/* Įmonės laukai paslėpti, kol jungiklis neįjungtas (rodo company-purchase.js) */
body .elementor-widget-woocommerce-checkout-page .endo-company-field {
    display: none;
}

body .elementor-widget-woocommerce-checkout-page .endo-company-toggle {
    margin: 4px 0 14px;
}

body .elementor-widget-woocommerce-checkout-page .endo-company-toggle label.checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--endo-ink);
    font-family: var(--endo-font-sans);
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

body .elementor-widget-woocommerce-checkout-page .endo-company-toggle .optional {
    display: none;
}

/* Jungiklis vietoj žymimojo langelio */
body .elementor-widget-woocommerce-checkout-page .endo-company-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 22px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: var(--endo-line-input);
    cursor: pointer;
    transition: background-color .2s ease;
}

body .elementor-widget-woocommerce-checkout-page .endo-company-toggle input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    transition: transform .2s ease;
}

body .elementor-widget-woocommerce-checkout-page .endo-company-toggle input[type="checkbox"]:checked {
    background: var(--endo-pine);
}

body .elementor-widget-woocommerce-checkout-page .endo-company-toggle input[type="checkbox"]:checked::after {
    transform: translateX(18px);
}

body .elementor-widget-woocommerce-checkout-page .endo-company-toggle input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--endo-pine);
    outline-offset: 2px;
}

/* PVM kodo patikra įvedus (company-purchase.js) */
body .elementor-widget-woocommerce-checkout-page .endo-vat-status {
    display: block;
    margin-top: 6px;
    font-family: var(--endo-font-sans);
    font-size: 13.5px;
    line-height: 1.4;
}

body .elementor-widget-woocommerce-checkout-page .endo-vat-status:empty {
    display: none;
}

body .elementor-widget-woocommerce-checkout-page .endo-vat-checking .endo-vat-status {
    color: var(--endo-stone);
}

body .elementor-widget-woocommerce-checkout-page .endo-vat-valid .endo-vat-status {
    color: var(--endo-pine);
}

body .elementor-widget-woocommerce-checkout-page .endo-vat-invalid .endo-vat-status {
    color: #b42318;
}

body .elementor-widget-woocommerce-checkout-page .endo-vat-invalid input.input-text {
    border-color: #b42318 !important;
}

body .elementor-widget-woocommerce-checkout-page .endo-vat-valid input.input-text {
    border-color: var(--endo-pine) !important;
}

/* Įmonės pavadinimas iš VIES — užrakintas */
body .elementor-widget-woocommerce-checkout-page .endo-company-locked input.input-text {
    background: var(--endo-mist) !important;
    color: var(--endo-moss) !important;
    cursor: not-allowed;
}

body .elementor-widget-woocommerce-checkout-page .endo-company-locked .woocommerce-input-wrapper::after {
    content: "Pavadinimas iš ES PVM mokėtojų registro pagal PVM kodą";
    display: block;
    margin-top: 6px;
    color: var(--endo-stone);
    font-family: var(--endo-font-sans);
    font-size: 13.5px;
}

/* ------------------------------------------------------------------ */
/* LP EXPRESS paštomatas: krepšelyje „Tęsti“ tik pasirinkus, apmokėjime */
/* — pasirinktas paštomatas tekstu (lp-terminal.php / .js)             */
/* ------------------------------------------------------------------ */

body .elementor-widget-woocommerce-cart .wc-proceed-to-checkout .checkout-button.endo-lp-blocked {
    opacity: .45;
    cursor: not-allowed;
}

body .elementor-widget-woocommerce-cart .wc-proceed-to-checkout .checkout-button.endo-lp-saving {
    opacity: .7;
    pointer-events: none;
}

body .elementor-widget-woocommerce-cart .endo-lp-hint {
    margin: 10px 0 0;
    color: var(--endo-moss);
    font-family: var(--endo-font-sans);
    font-size: 13.5px;
    text-align: center;
}

body .elementor-widget-woocommerce-checkout-page .endo-lp-chosen {
    flex: 0 0 100%;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--endo-linen);
    font-family: var(--endo-font-sans);
    font-size: 14px;
    line-height: 1.4;
    color: var(--endo-ink);
}

body .elementor-widget-woocommerce-checkout-page .endo-lp-chosen__label {
    color: var(--endo-stone);
    font-size: 12.5px;
}

body .elementor-widget-woocommerce-checkout-page .endo-lp-chosen--missing {
    color: #b42318;
}
