.woocommerce .coporton-quantity-wrapper {
    display: inline-block;
    position: relative;
    border-radius: 7px;
    box-shadow: 7px 6px 30px rgb(0 0 0 / 10%);
}
.woocommerce .coporton-quantity-wrapper.is-adjustable { padding-right: 30px; }
.woocommerce .coporton-quantity-wrapper .qty {
    width: 70px;
    height: 56px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    appearance: textfield;
    -moz-appearance: textfield;
}
.woocommerce .coporton-quantity-wrapper .qty::-webkit-inner-spin-button,
.woocommerce .coporton-quantity-wrapper .qty::-webkit-outer-spin-button { -webkit-appearance: none; }
.woocommerce .coporton-quantity-adjust {
    position: absolute;
    right: 0;
    width: 30px;
    height: 50%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #424242;
    line-height: 1;
    font-size: 18px;
    box-shadow: none;
}
.woocommerce .coporton-quantity-adjust.increase { top: 0; }
.woocommerce .coporton-quantity-adjust.decrease { bottom: 0; }
.woocommerce .coporton-quantity-adjust:hover { background: rgb(0 0 0 / 6%); color: #424242; }
.woocommerce .coporton-quantity-adjust:disabled { opacity: .35; cursor: default; }
.woocommerce .coporton-quantity-wrapper .qty:focus-visible,
.woocommerce .coporton-quantity-adjust:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.woocommerce .coporton-info-notice .message_content { padding-right: 20px; }

/* Service catalog: branded, keyboard-accessible ordering control. */
body.post-type-archive-product .wgl-woocommerce-sorting,
body.tax-product_cat .wgl-woocommerce-sorting {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 32px;
    box-sizing: border-box;
}

body.post-type-archive-product .wgl-woocommerce-sorting .woocommerce-result-count,
body.tax-product_cat .wgl-woocommerce-sorting .woocommerce-result-count {
    float: none;
    width: auto;
    margin: 0 0 13px;
    color: #607086;
    font-size: 15px;
    line-height: 1.5;
}

body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering {
    position: relative;
    z-index: 20;
    float: none;
    width: min(100%, 350px);
    max-width: 350px;
    margin: 0;
    box-sizing: border-box;
}

.coporton-ordering {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    color: #17253e;
    font-family: inherit;
    text-align: left;
}

.coporton-ordering__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 12px 16px 12px 18px;
    border: 1px solid #d4deeb;
    border-radius: 12px;
    background: #fff;
    color: #17253e;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 30px rgb(23 37 62 / 8%);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.coporton-ordering__trigger:hover {
    border-color: #aebed2;
    background: #fbfdff;
}

.coporton-ordering__trigger:focus-visible,
.coporton-ordering.is-open .coporton-ordering__trigger {
    border-color: #075cde;
    outline: 1px solid rgb(7 92 222 / 45%);
    outline-offset: 1px;
    box-shadow: 0 0 0 4px rgb(7 92 222 / 9%), 0 12px 34px rgb(23 37 62 / 10%);
}

.coporton-ordering__chevron {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.coporton-ordering__chevron::before,
.coporton-ordering__chevron::after {
    position: absolute;
    top: 8px;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: #526176;
    content: '';
    transition: transform .2s ease;
}

.coporton-ordering__chevron::before {
    left: 2px;
    transform: rotate(45deg);
}

.coporton-ordering__chevron::after {
    right: 2px;
    transform: rotate(-45deg);
}

.coporton-ordering.is-open .coporton-ordering__chevron::before {
    transform: rotate(-45deg);
}

.coporton-ordering.is-open .coporton-ordering__chevron::after {
    transform: rotate(45deg);
}

.coporton-ordering__menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 8px;
    border: 1px solid #d8e1ed;
    border-radius: 14px;
    background: rgb(255 255 255 / 98%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(.985);
    transform-origin: top center;
    box-shadow: 0 22px 55px rgb(23 37 62 / 18%);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.coporton-ordering.is-open .coporton-ordering__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.coporton-ordering__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #34445a;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    transition: color .16s ease, background-color .16s ease;
}

.coporton-ordering__option:hover,
.coporton-ordering__option:focus-visible {
    outline: 0;
    background: #edf5ff;
    color: #075cde;
}

.coporton-ordering__option[aria-selected="true"] {
    background: linear-gradient(135deg, #20278f 0%, #075cde 100%);
    color: #fff;
    font-weight: 700;
}

.coporton-ordering__check {
    flex: 0 0 18px;
    width: 18px;
    color: currentColor;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.coporton-ordering__option:not([aria-selected="true"]) .coporton-ordering__check {
    visibility: hidden;
}

body.post-type-archive-product .wgl-woocommerce-sorting form.woocommerce-ordering.is-coporton-enhanced select.orderby,
body.post-type-archive-product .wgl-woocommerce-sorting form.woocommerce-ordering.is-coporton-enhanced > .select__field,
body.tax-product_cat .wgl-woocommerce-sorting form.woocommerce-ordering.is-coporton-enhanced select.orderby,
body.tax-product_cat .wgl-woocommerce-sorting form.woocommerce-ordering.is-coporton-enhanced > .select__field {
    display: none !important;
}

body.post-type-archive-product .coporton-catalog-footer,
body.tax-product_cat .coporton-catalog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin: 38px 0 0;
    padding: 18px 22px;
    border: 1px solid #dce4f0;
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
}

body.post-type-archive-product .coporton-catalog-footer .woocommerce-result-count,
body.tax-product_cat .coporton-catalog-footer .woocommerce-result-count {
    float: none;
    margin: 0;
    color: #607086;
    font-size: 15px;
    line-height: 1.5;
    width: auto;
}

body.post-type-archive-product .coporton-catalog-pagination,
body.tax-product_cat .coporton-catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

body.post-type-archive-product .coporton-catalog-pagination__button,
body.tax-product_cat .coporton-catalog-pagination__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #d4deeb;
    border-radius: 10px;
    background: #f8fafc;
    color: #526176;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

body.post-type-archive-product a.coporton-catalog-pagination__button:hover,
body.post-type-archive-product a.coporton-catalog-pagination__button:focus-visible,
body.tax-product_cat a.coporton-catalog-pagination__button:hover,
body.tax-product_cat a.coporton-catalog-pagination__button:focus-visible {
    border-color: #075cde;
    outline: 0;
    background: #edf5ff;
    color: #075cde;
}

body.post-type-archive-product .coporton-catalog-pagination__button.is-disabled,
body.tax-product_cat .coporton-catalog-pagination__button.is-disabled {
    background: #f8fafc;
    color: #a4afbf;
    cursor: not-allowed;
}

body.post-type-archive-product .coporton-per-page,
body.tax-product_cat .coporton-per-page {
    margin: 0;
}

body.post-type-archive-product .coporton-per-page__control,
body.tax-product_cat .coporton-per-page__control {
    position: relative;
    display: block;
}

body.post-type-archive-product .coporton-per-page select,
body.tax-product_cat .coporton-per-page select {
    width: 76px;
    min-height: 44px;
    margin: 0;
    padding: 8px 34px 8px 14px;
    border: 1px solid #d4deeb;
    border-radius: 10px;
    background: #fff;
    color: #17253e;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    box-shadow: 0 4px 14px rgb(23 37 62 / 5%);
}

body.post-type-archive-product .coporton-per-page select:focus-visible,
body.tax-product_cat .coporton-per-page select:focus-visible {
    border-color: #075cde;
    outline: 1px solid rgb(7 92 222 / 45%);
    outline-offset: 1px;
}

.coporton-per-page__chevron {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 0;
    height: 0;
    border-top: 6px solid #526176;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    pointer-events: none;
    transform: translateY(-35%);
}

@media (max-width: 767px) {
    body.post-type-archive-product .wgl-woocommerce-sorting,
    body.tax-product_cat .wgl-woocommerce-sorting {
        display: flex !important;
        align-items: stretch !important;
        justify-content: flex-end !important;
        gap: 14px;
        margin-bottom: 24px;
    }

    body.post-type-archive-product .wgl-woocommerce-sorting .woocommerce-result-count,
    body.tax-product_cat .wgl-woocommerce-sorting .woocommerce-result-count {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        text-align: left !important;
    }

    body.post-type-archive-product .woocommerce-ordering,
    body.tax-product_cat .woocommerce-ordering {
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    body.post-type-archive-product .coporton-catalog-footer,
    body.tax-product_cat .coporton-catalog-footer {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 28px;
        padding: 16px;
    }

    body.post-type-archive-product .coporton-catalog-pagination,
    body.tax-product_cat .coporton-catalog-pagination {
        width: 100%;
        justify-content: flex-start;
    }

    body.post-type-archive-product .coporton-per-page,
    body.tax-product_cat .coporton-per-page {
        align-self: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .coporton-ordering__trigger,
    .coporton-ordering__chevron::before,
    .coporton-ordering__chevron::after,
    .coporton-ordering__menu,
    .coporton-ordering__option {
        transition: none;
    }
}

/* Cart page only: compact service table and a clearly separated totals card. */
body.woocommerce-cart .coporton-cart-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin-bottom: 24px;
}
body.woocommerce-cart .coporton-cart-heading h2 {
    margin: 0 0 6px; line-height: 1.3; color: #17253e;
}
body.woocommerce-cart .coporton-cart-heading p {
    margin: 0; font-size: 16px; line-height: 1.6; color: #607086;
}
body.woocommerce-cart .coporton-cart-heading > a { font-size: 16px; font-weight: 600; white-space: nowrap; }
body.woocommerce-cart .coporton-cart-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start;
    color: #17253e;
}
body.woocommerce-cart .coporton-cart-layout > * { min-width: 0; }
body.woocommerce-cart .coporton-cart-layout .woocommerce-cart-form {
    margin: 0; border: 1px solid #dce4f0; border-radius: 14px; background: #fff;
}
body.woocommerce-cart .coporton-cart-layout table.shop_table {
    width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; font-size: 16px;
}
body.woocommerce-cart .coporton-cart-layout table.shop_table thead {
    border: 0; background: #f5f8fc;
}
body.woocommerce-cart .coporton-cart-layout table.shop_table thead tr { border: 0; }
body.woocommerce-cart .coporton-cart-layout table.shop_table thead th {
    padding: 14px 10px; border: 0; border-bottom: 1px solid #dce4f0;
    font-size: 16px; font-weight: 600; line-height: 1.5; color: #607086; text-align: left;
}
body.woocommerce-cart .coporton-cart-layout table.cart thead th:first-child { border-radius: 14px 0 0 0; }
body.woocommerce-cart .coporton-cart-layout table.cart thead th:last-child { border-radius: 0 14px 0 0; }
body.woocommerce-cart .coporton-cart-layout table.shop_table tbody tr { background: #fff; }
body.woocommerce-cart .coporton-cart-layout table.shop_table td {
    padding: 20px 10px; border: 0; border-bottom: 1px solid #e6ecf4;
    vertical-align: top; font-size: 16px;
}
body.woocommerce-cart .coporton-cart-layout table.cart td.product-thumbnail {
    width: 76px; padding-left: 16px;
}
body.woocommerce-cart .coporton-cart-layout table.cart td.product-thumbnail img {
    display: block; width: 56px; height: 56px; max-width: none; object-fit: cover; border-radius: 9px;
}
body.woocommerce-cart .coporton-cart-layout table.cart td.product-name {
    padding-left: 10px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere;
}
body.woocommerce-cart .coporton-cart-layout table.cart .product-price,
body.woocommerce-cart .coporton-cart-layout table.cart .product-subtotal { white-space: nowrap; }
body.woocommerce-cart .coporton-cart-layout table.cart .product-quantity { text-align: center; }
body.woocommerce-cart .coporton-cart-layout table.shop_table .woocommerce-Price-amount.amount {
    font-size: 16px; font-weight: 600; color: #17253e;
}
body.woocommerce-cart .coporton-cart-layout table.cart td.product-name dl.variation {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 3px 10px; margin: 10px 0 0; padding: 0; border: 0; font-size: 14px; line-height: 1.6;
}
body.woocommerce-cart .coporton-cart-layout dl.variation::before,
body.woocommerce-cart .coporton-cart-layout dl.variation::after { display: none; content: none; }
body.woocommerce-cart .coporton-cart-layout dl.variation dt,
body.woocommerce-cart .coporton-cart-layout dl.variation dd {
    float: none; margin: 0; padding: 0; background: transparent; border: 0; min-width: 0; overflow-wrap: anywhere;
}
body.woocommerce-cart .coporton-cart-layout dl.variation dt { grid-column: 1; color: #607086; font-weight: 400; }
body.woocommerce-cart .coporton-cart-layout dl.variation dd { grid-column: 2; font-weight: 400; }
body.woocommerce-cart .coporton-cart-layout dl.variation dd p { margin: 0; line-height: inherit; }
body.woocommerce-cart .coporton-cart-layout table.cart a.remove {
    display: grid; place-items: center; width: 28px; height: 28px;
    font: 22px/1 sans-serif; border-radius: 7px;
    color: #607086 !important;
}
body.woocommerce-cart .coporton-cart-layout table.cart a.remove:hover {
    color: #ffffff !important;
}
body.woocommerce-cart .coporton-cart-layout table.cart a.remove::before { display: none; }
body.woocommerce-cart .coporton-cart-layout .coporton-fixed-quantity {
    display: inline-grid; place-items: center; min-width: 32px; height: 32px;
    border: 1px solid #dce4f0; border-radius: 7px; font-size: 13px; font-weight: 500;
}
/* Keep the submitted fixed quantity, but remove its empty wrapper from layout. */
body.woocommerce-cart .coporton-cart-layout .product-quantity .coporton-quantity.hidden {
    display: none !important;
}
body.woocommerce-cart .coporton-cart-layout .coporton-quantity-wrapper { box-shadow: none; border: 1px solid #dce4f0; }
body.woocommerce-cart .coporton-cart-layout .coporton-quantity-wrapper .qty { width: 42px; height: 38px; font-size: 16px; }
body.woocommerce-cart .coporton-cart-layout table.cart td.actions { padding: 16px; border-bottom: 0; border-radius: 0px 0px 14px 14px;}
body.woocommerce-cart .coporton-cart-layout table.cart td.actions .coupon {
    display: flex; align-items: center; flex-wrap: wrap; float: none;
}
body.woocommerce-cart .coporton-cart-layout table.cart td.actions .coupon input.input-text {
    width: 200px; max-width: 100%; height: 50px; border: 1px solid #dce4f0; padding-right: 15px;
}
body.woocommerce-cart .coporton-cart-layout table.cart .button {
    border-radius: 7px;
}
body.woocommerce-cart .coporton-cart-layout table.cart td.actions button[name="apply_coupon"]:not(:disabled),
body.woocommerce-cart .coporton-cart-layout table.cart td.actions button[name="apply_coupon"]:not(:disabled):hover {
    background: var(--coporton-cart-button-fill, #075cde);
    background-size: var(--coporton-cart-button-size, auto);
    background-position: 0%;
    color: #fff;
    border-color: transparent;
}
body.theme-gradient.woocommerce-cart .coporton-cart-layout table.cart td.actions button[name="apply_coupon"]:not(:disabled):hover {
    background-position: 100% !important;
}
body.woocommerce-cart .coporton-cart-layout .cart-collaterals { width: 100%; margin: 0; }
body.woocommerce-cart .coporton-cart-layout .cart-collaterals .cart_totals {
    float: none; width: 100%; padding: 24px; border: 1px solid #dce4f0; border-radius: 14px;
    background: #f8fafc; box-sizing: border-box; min-width: 0; margin: 0; box-shadow: none;
}
body.woocommerce-cart .coporton-cart-layout .cart_totals h2 {
    margin: 0 0 0px; font-size: 20px; line-height: 1.4; color: #17253e;
}
body.woocommerce-cart .coporton-cart-layout .cart_totals table.shop_table th,
body.woocommerce-cart .coporton-cart-layout .cart_totals table.shop_table td {
    display: table-cell;
    width: auto; padding: 12px 0; border: 0; border-bottom: 1px solid #e1e8f2;
    background: transparent; font-size: 16px; line-height: 1.5; font-weight: 400; vertical-align: top;
}
body.woocommerce-cart .coporton-cart-layout .cart_totals table.shop_table td { padding-left: 12px; text-align: right !important; }
body.woocommerce-cart .coporton-cart-layout .cart_totals table.shop_table td::before { display: none; }
body.woocommerce-cart .coporton-cart-layout .cart_totals table.shop_table tr { background: transparent; }
body.woocommerce-cart .coporton-cart-layout .cart_totals table.shop_table tr.order-total th,
body.woocommerce-cart .coporton-cart-layout .cart_totals table.shop_table tr.order-total td { border-bottom: 0; font-weight: 700; }
body.woocommerce-cart .coporton-cart-layout .cart_totals .order-total .woocommerce-Price-amount.amount { font-size: 20px; color: #075cde; }
body.woocommerce-cart .coporton-cart-layout .wc-proceed-to-checkout { padding: 18px 0 0; }
body.woocommerce-cart .coporton-cart-layout .wc-proceed-to-checkout a.checkout-button {
    border-radius: 7px;
}
body.woocommerce-cart .coporton-cart-layout .cross-sells { float: none; width: 100%; margin-bottom: 24px; }
@media (max-width: 1100px) {
    body.woocommerce-cart .coporton-cart-layout { grid-template-columns: minmax(0, 1fr); }
    body.woocommerce-cart .coporton-cart-layout .cart-collaterals .cart_totals { max-width: 100%; }
}
@media (max-width: 768px) {
    body.woocommerce-cart .coporton-cart-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
    body.woocommerce-cart .coporton-cart-heading h2 { font-size: 22px; }
    body.woocommerce-cart .coporton-cart-layout { gap: 20px; }
    body.woocommerce-cart .coporton-cart-layout table.cart thead { display: none; }
    body.woocommerce-cart .coporton-cart-layout table.cart tbody { display: block; }
    body.woocommerce-cart .coporton-cart-layout table.cart tr.cart_item {
        display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px;
        position: relative; padding: 20px 16px; border-bottom: 1px solid #e6ecf4;
    }
    body.woocommerce-cart .coporton-cart-layout table.cart tr.cart_item td {
        display: block; width: auto; border: 0; padding: 0; text-align: left !important; background: transparent;
    }
    body.woocommerce-cart .coporton-cart-layout table.cart tr.cart_item td.product-thumbnail { display: block; grid-column: 1; grid-row: 1; }
    body.woocommerce-cart .coporton-cart-layout table.cart tr.cart_item td.product-name { grid-column: 2; grid-row: 1; padding-right: 26px; }
    body.woocommerce-cart .coporton-cart-layout table.cart tr.cart_item td.product-name::before,
    body.woocommerce-cart .coporton-cart-layout table.cart tr.cart_item td.product-thumbnail::before,
    body.woocommerce-cart .coporton-cart-layout table.cart tr.cart_item td.product-remove::before { display: none; }
    body.woocommerce-cart .coporton-cart-layout table.cart tr.cart_item td.product-price,
    body.woocommerce-cart .coporton-cart-layout table.cart tr.cart_item td.product-quantity,
    body.woocommerce-cart .coporton-cart-layout table.cart tr.cart_item td.product-subtotal {
        grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    }
    body.woocommerce-cart .coporton-cart-layout table.cart tr.cart_item td::before { color: #607086; font-size: 12px; font-weight: 500; }
    body.woocommerce-cart .coporton-cart-layout table.cart tr.cart_item td.product-remove { position: absolute; top: 16px; right: 12px; }
    body.woocommerce-cart .coporton-cart-layout table.cart td.actions { display: block; padding: 16px; }
    body.woocommerce-cart .coporton-cart-layout table.cart td.actions .coupon { width: 100%; }
    body.woocommerce-cart .coporton-cart-layout table.cart td.actions .coupon input.input-text { flex: 1 1 140px; width: auto; }
    body.woocommerce-cart .coporton-cart-layout table.cart td.actions .coupon .button { float: none; width: auto; }
    body.woocommerce-cart .coporton-cart-layout .cart_totals table.shop_table tr { display: table-row; }
    body.woocommerce-cart .coporton-cart-layout .cart_totals table.shop_table th,
    body.woocommerce-cart .coporton-cart-layout .cart_totals table.shop_table td { display: table-cell; }
    body.woocommerce-cart .coporton-cart-layout .cart_totals table.shop_table td::before { display: none; }
}

@media only screen and (max-width: 767px) {
    body.woocommerce-checkout .page-header.breadcrumbs_inline .page-header_content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 10px;
    }
    body.woocommerce-checkout .page-header_breadcrumbs:not(:first-child) {
        margin-top: 0;
    }
    body.woocommerce-checkout .page-header_breadcrumbs .breadcrumbs {
        white-space: normal;
    }
    body.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon {
        float: none;
        display: inline;
    }
    body.woocommerce-checkout .woocommerce-billing-fields .form-row-first,
    body.woocommerce-checkout .woocommerce-billing-fields .form-row-last {
        float: none;
        width: 100%;
    }
}

/* My Account: focused navigation with a compact, readable content area. */
body.logged-in.woocommerce-account #main .woocommerce {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

body.logged-in.woocommerce-account #main .woocommerce > .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
}

body.logged-in.woocommerce-account #main .woocommerce > .woocommerce-notices-wrapper:empty {
    display: none;
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation {
    grid-column: 1;
    float: none;
    width: 100%;
    margin: 0;
    padding: 10px;
    border: 1px solid #dce4f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgb(23 37 62 / 8%);
    font-family: inherit;
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li {
    position: relative;
    margin: 0;
    padding: 0 !important;
    border: 0;
    list-style: none;
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li::before {
    display: none !important;
    content: none !important;
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #526176;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    box-shadow: none;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li a::after {
    content: '\203A';
    flex: 0 0 auto;
    color: #9aa8ba;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: color .2s ease, transform .2s ease;
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li a:hover {
    background: #f2f7ff;
    color: #075cde;
    text-decoration: none;
    transform: translateX(2px);
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li a:hover::after {
    color: #075cde;
    transform: translateX(2px);
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li.is-active a {
    background: #eaf3ff;
    color: #075cde;
    text-decoration: none;
    box-shadow: inset 4px 0 0 #075cde;
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li.is-active a::after {
    color: #075cde;
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #b42318;
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fff2f0;
    color: #9f1c13;
}

body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation a:focus-visible {
    outline: 2px solid #075cde;
    outline-offset: 2px;
}

body.woocommerce-account #main .woocommerce-MyAccount-content {
    grid-column: 2;
    float: none;
    width: 100%;
    min-width: 0;
    font-size: 16px !important;
    line-height: 1.7;
}

body.woocommerce-account #main .woocommerce-MyAccount-content :is(p, li, label, address, td, th) {
    font-size: 16px;
    vertical-align: baseline;
}

body.woocommerce-account #main table.woocommerce-orders-table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

body.woocommerce-account #main table.woocommerce-orders-table thead,
body.woocommerce-account #main table.woocommerce-orders-table thead tr {
    background: #f4f7fb;
}

body.woocommerce-account #main table.woocommerce-orders-table thead tr {
    border: 0;
}

body.woocommerce-account #main table.woocommerce-orders-table th.woocommerce-orders-table__header {
    padding: 15px 12px;
    border: 0;
    border-top: 1px solid #dce4f0;
    border-bottom: 1px solid #dce4f0;
    color: #526176;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .045em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

body.woocommerce-account #main table.woocommerce-orders-table th.woocommerce-orders-table__header:first-child {
    padding-left: 16px;
    border-left: 1px solid #dce4f0;
    border-radius: 10px 0 0 10px;
}

body.woocommerce-account #main table.woocommerce-orders-table th.woocommerce-orders-table__header:last-child {
    padding-right: 16px;
    border-right: 1px solid #dce4f0;
    border-radius: 0 10px 10px 0;
}

body.woocommerce-account #main table.woocommerce-orders-table tbody tr {
    background: transparent;
}

body.woocommerce-account #main table.woocommerce-orders-table tbody tr:nth-child(even) > .woocommerce-orders-table__cell {
    background: #f8fafc;
}

body.woocommerce-account #main table.woocommerce-orders-table tbody tr:hover > .woocommerce-orders-table__cell {
    background: #f1f6fd;
}

body.woocommerce-account #main table.woocommerce-orders-table tbody .woocommerce-orders-table__cell {
    padding: 15px 12px;
    border: 0;
    border-top: 1px solid #e4eaf2;
    border-bottom: 1px solid #e4eaf2;
    background: #fff;
    color: #526176;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    vertical-align: middle;
    transition: background-color .2s ease;
}

body.woocommerce-account #main table.woocommerce-orders-table tbody .woocommerce-orders-table__cell:first-child {
    padding-left: 16px;
    border-left: 1px solid #e4eaf2;
    border-radius: 10px 0 0 10px;
}

body.woocommerce-account #main table.woocommerce-orders-table tbody .woocommerce-orders-table__cell:last-child {
    padding-right: 16px;
    border-right: 1px solid #e4eaf2;
    border-radius: 0 10px 10px 0;
}

body.woocommerce-account #main table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    color: #075cde;
    font-weight: 700;
    text-decoration: none;
}

body.woocommerce-account #main table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover {
    color: #044baa;
}

body.woocommerce-account #main table.woocommerce-orders-table .woocommerce-orders-table__cell-order-total {
    white-space: nowrap;
}

body.woocommerce-account #main table.woocommerce-orders-table .woocommerce-orders-table__cell-order-total .woocommerce-Price-amount {
    color: #17253e;
    font-weight: 700;
}

body.woocommerce-account #main table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button {
    width: auto;
    min-width: 76px;
    min-height: 40px;
    margin: 0;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.woocommerce table.shop_table .woocommerce-Price-amount.amount {
    font-size: 16px;
}

/* My Account address cards and account forms. */
body.woocommerce-account #main .woocommerce-MyAccount-content > p:first-child {
    margin-bottom: 22px;
    color: #607086;
}

body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    float: none;
    width: 100%;
    margin: 0;
}

body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-Addresses::before,
body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-Addresses::after {
    display: none;
    content: none;
}

body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-Address {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 24px;
    border: 1px solid #dce4f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgb(23 37 62 / 6%);
}

body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4eaf2;
}

body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
    margin: 0;
    color: #17253e;
    font-size: 20px;
    line-height: 1.35;
}

body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0;
    padding: 7px 13px;
    border: 1px solid #c9d8eb;
    border-radius: 8px;
    background: #f4f8fd;
    color: #075cde;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-Address-title .edit:hover {
    border-color: #075cde;
    background: #075cde;
    color: #fff;
}

body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-Address address {
    margin: 0;
    color: #526176;
    font-style: normal;
    line-height: 1.8;
}

body.woocommerce-account #main .woocommerce-MyAccount-content form:not(.woocommerce-form-login):not(.woocommerce-form-register) {
    width: 100%;
    margin: 0;
    padding: 28px;
    border: 1px solid #dce4f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgb(23 37 62 / 7%);
}

body.woocommerce-account #main .woocommerce-MyAccount-content form > h2 {
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4eaf2;
    color: #17253e;
    font-size: 24px;
    line-height: 1.35;
}

body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper .form-row {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1;
}

body.woocommerce-account #main .woocommerce-MyAccount-content form.edit-account .form-row {
    margin-bottom: 18px;
    padding: 0;
}

body.woocommerce-account #main .woocommerce-MyAccount-content form .form-row label {
    margin-bottom: 7px;
    color: #34445a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

body.woocommerce-account #main .woocommerce-MyAccount-content form .form-row :is(input.input-text, select, textarea),
body.woocommerce-account #main .woocommerce-MyAccount-content form .select2-selection--single {
    min-height: 50px;
    border: 1px solid #d4deeb;
    border-radius: 9px;
    background: #fbfcfe;
    color: #17253e;
    font-size: 15px;
    box-shadow: none;
}

body.woocommerce-account #main .woocommerce-MyAccount-content form .form-row :is(input.input-text, select, textarea):focus,
body.woocommerce-account #main .woocommerce-MyAccount-content form .select2-container--focus .select2-selection--single {
    border-color: #075cde;
    background: #fff;
    box-shadow: 0 0 0 3px rgb(7 92 222 / 10%);
}

body.woocommerce-account #main .woocommerce-MyAccount-content form .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
}

body.woocommerce-account #main .woocommerce-MyAccount-content form .select2-selection--single .select2-selection__arrow {
    height: 48px;
}

body.woocommerce-account #main .woocommerce-MyAccount-content form.edit-account #account_display_name_description {
    display: block;
    margin-top: 7px;
    color: #758397;
    font-size: 13px;
    line-height: 1.5;
}

body.woocommerce-account #main .woocommerce-MyAccount-content form.edit-account fieldset {
    margin: 26px 0 22px;
    padding: 22px;
    border: 1px solid #dce4f0;
    border-radius: 12px;
    background: #f8fafc;
}

body.woocommerce-account #main .woocommerce-MyAccount-content form.edit-account fieldset legend {
    padding: 0 9px;
    color: #17253e;
    font-size: 16px;
    font-weight: 700;
}

body.woocommerce-account #main .woocommerce-MyAccount-content form.edit-account fieldset .form-row:last-child {
    margin-bottom: 0;
}

body.woocommerce-account #main .woocommerce-MyAccount-content form :is(button[type="submit"], .button[type="submit"]) {
    min-height: 46px;
    border-radius: 8px;
    font-size: 14px;
}

body.woocommerce-account #main .woocommerce.coporton-account-loading .woocommerce-MyAccount-content {
    position: relative;
    min-height: 180px;
    opacity: .45;
    pointer-events: none;
    transition: opacity .18s ease;
}

body.woocommerce-account #main .woocommerce.coporton-account-loading .woocommerce-MyAccount-content::after {
    content: '';
    position: absolute;
    top: 56px;
    left: 50%;
    width: 28px;
    height: 28px;
    border: 3px solid #c9d8eb;
    border-top-color: #075cde;
    border-radius: 50%;
    animation: coporton-account-spin .7s linear infinite;
}

body.woocommerce-account #main .woocommerce-MyAccount-content.coporton-ajax-enter {
    opacity: 0;
}

body.woocommerce-account #main .woocommerce-MyAccount-content {
    transition: opacity .2s ease;
}

@keyframes coporton-account-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    body.woocommerce-account #main table.woocommerce-orders-table {
        border-spacing: 0;
    }

    body.woocommerce-account #main table.woocommerce-orders-table tbody tr {
        overflow: hidden;
        border: 1px solid #e4eaf2;
        border-radius: 12px;
        background: #fff;
    }

    body.woocommerce-account #main table.woocommerce-orders-table tbody .woocommerce-orders-table__cell,
    body.woocommerce-account #main table.woocommerce-orders-table tbody .woocommerce-orders-table__cell:first-child,
    body.woocommerce-account #main table.woocommerce-orders-table tbody .woocommerce-orders-table__cell:last-child {
        padding: 11px 14px;
        border: 0;
        border-bottom: 1px solid #e8edf4;
        border-radius: 0;
        background: transparent;
    }

    body.woocommerce-account #main table.woocommerce-orders-table tbody .woocommerce-orders-table__cell:last-child {
        border-bottom: 0;
    }

    body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-Addresses,
    body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper .form-row-wide {
        grid-column: auto;
    }

    body.woocommerce-account #main .woocommerce-MyAccount-content .woocommerce-Address,
    body.woocommerce-account #main .woocommerce-MyAccount-content form:not(.woocommerce-form-login):not(.woocommerce-form-register) {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.woocommerce-account #main .woocommerce-MyAccount-content,
    body.woocommerce-account #main .woocommerce.coporton-account-loading .woocommerce-MyAccount-content {
        transition: none;
    }
}

@media (max-width: 900px) {
    body.logged-in.woocommerce-account #main .woocommerce {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation {
        grid-column: 1;
        overflow: hidden;
    }

    body.woocommerce-account #main .woocommerce-MyAccount-content {
        grid-column: 1;
    }

    body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation ul {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
        scrollbar-color: #b8c6d8 transparent;
    }

    body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li {
        flex: 0 0 auto;
    }

    body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li a {
        min-height: 44px;
        white-space: nowrap;
    }

    body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li a::after {
        display: none;
    }

    body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li a:hover {
        transform: none;
    }

    body.logged-in.woocommerce-account #main .woocommerce-MyAccount-navigation li.is-active a {
        box-shadow: inset 0 -3px 0 #075cde;
    }
}

/* Reusable Coporton dropdown (see window.coportonEnhanceSelect). The native
   select stays in the form for validation and drafts but is visually hidden. */
select.coporton-ordering__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.coporton-ordering.is-empty .coporton-ordering__value {
    color: #7a8799;
    font-weight: 500;
}


.coporton-ordering.is-invalid .coporton-ordering__trigger {
    border-color: #d63638;
    box-shadow: 0 0 0 4px rgb(214 54 56 / 10%);
}

.coporton-ordering.is-invalid::after {
    display: block;
    margin-top: 6px;
    color: #b32d2e;
    font-size: 13px;
    content: 'Please choose an option.';
}

/* Inside service-product forms the dropdown sits in a field row, so it
   matches the 48px inputs and keeps its menu above following fields. */
.coporton-cart-fields .coporton-ordering {
    margin-top: 8px;
    z-index: 5;
}

.coporton-cart-fields .coporton-ordering.is-open {
    z-index: 30;
}

.coporton-cart-fields .coporton-ordering__trigger {
    min-height: 48px;
    border-radius: 8px;
    background: #f8faff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: none;
}
