/**
 * WooCommerce cart and checkout blocks.
 * Loaded only on the block cart/checkout pages (body.nvm-block-checkout);
 * see inc/woocommerce/block_checkout.php.
 */

.nvm-block-checkout {
    --bc-ink: #1F2E2C;
    --bc-muted: #59635F;
    --bc-line: #DCDAD3;
    --bc-soft: #F5F5F1;
    --bc-green: var(--polo-color-green, #37514F);
    --bc-green-dark: #2A3F3D;
    --bc-green-tint: #EEF2F1;
    --bc-yellow: var(--polo-color-yellow, #FFAE00);
    --bc-radius: 8px;
    --bc-header-offset: 145px;
}



/* Page frame: the blocks sit straight in article.content-main with no theme
   container, so give them the site's width and side gutters. */

.nvm-block-checkout .content-main > .wp-block-woocommerce-checkout,
.nvm-block-checkout .content-main > .wp-block-woocommerce-cart {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 24px 72px;
    box-sizing: border-box;
    color: var(--bc-ink);
}

.nvm-block-checkout .wc-block-components-sidebar-layout {
    margin: 0;
    gap: 0;
}

.nvm-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main {
    padding-right: 48px;
}

.nvm-block-checkout .wc-block-components-sidebar {
    padding-left: 0;
}

.nvm-block-checkout .wc-block-checkout__sidebar.is-sticky,
.nvm-block-checkout .wc-block-cart__sidebar.is-sticky {
    top: calc(var(--bc-header-offset) + 24px);
}



/* Numbered step headings, as on the classic checkout ("1. Στοιχεία …"). */

.nvm-block-checkout .wc-block-checkout__form {
    counter-reset: bc-step;
}

.nvm-block-checkout .wc-block-components-checkout-step {
    counter-increment: bc-step;
    margin: 0 0 40px;
    padding: 0;
}

/* On mobile the order summary sits in the form as a step; it is not numbered. */
.nvm-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-step,
.nvm-block-checkout .wc-block-components-checkout-step.checkout-order-summary-block-fill-wrapper {
    counter-increment: none;
}

.nvm-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-step__title::before {
    display: none;
}

.nvm-block-checkout .wc-block-components-checkout-step::after {
    display: none;
}

.nvm-block-checkout .wc-block-components-checkout-step__heading {
    margin: 0 0 16px;
    padding: 0;
    align-items: center;
}

.nvm-block-checkout .wc-block-components-checkout-step__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bc-ink);
}

.nvm-block-checkout .wc-block-components-checkout-step__title::before {
    content: counter(bc-step);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bc-green);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
}

.nvm-block-checkout .wc-block-components-checkout-step__container {
    padding-left: 42px;
}

.nvm-block-checkout .wc-block-components-checkout-step__description {
    font-size: 14px;
    color: var(--bc-muted);
    margin: 0 0 14px;
}

.nvm-block-checkout .wc-block-components-checkout-step__heading-content,
.nvm-block-checkout .wc-block-components-checkout-step__heading-content a {
    font-size: 14px;
    color: var(--bc-green);
}



/* Fields. Responsiville stripes every input; the blocks want flat white. */

.nvm-block-checkout .wc-block-components-text-input input,
.nvm-block-checkout .wc-block-components-combobox .components-combobox-control input.components-combobox-control__input,
.nvm-block-checkout .wc-block-components-form .wc-block-components-text-input input,
.nvm-block-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
.nvm-block-checkout .wc-block-components-textarea,
.nvm-block-checkout .wc-block-components-totals-coupon input {
    background: #FFFFFF !important;
    background-image: none !important;
    border: 1px solid var(--bc-line) !important;
    border-radius: var(--bc-radius) !important;
    color: var(--bc-ink) !important;
    font-size: 16px !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.nvm-block-checkout .wc-block-components-text-input input,
.nvm-block-checkout .wc-block-components-combobox .components-combobox-control input.components-combobox-control__input,
.nvm-block-checkout .wc-blocks-components-select .wc-blocks-components-select__select {
    min-height: 54px;
}

.nvm-block-checkout .wc-block-components-text-input input:focus,
.nvm-block-checkout .wc-block-components-combobox .components-combobox-control input.components-combobox-control__input:focus,
.nvm-block-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.nvm-block-checkout .wc-block-components-textarea:focus,
.nvm-block-checkout .wc-block-components-totals-coupon input:focus {
    border-color: var(--bc-green) !important;
    box-shadow: 0 0 0 3px rgba(55, 81, 79, .15) !important;
    outline: none !important;
}

.nvm-block-checkout .wc-block-components-text-input label,
.nvm-block-checkout .wc-block-components-combobox .components-combobox-control label,
.nvm-block-checkout .wc-blocks-components-select .wc-blocks-components-select__label {
    color: var(--bc-muted);
    font-size: 15px;
}

.nvm-block-checkout .wc-block-components-text-input.has-error input,
.nvm-block-checkout .wc-block-components-combobox.has-error input {
    border-color: #C0392B !important;
}

.nvm-block-checkout .wc-block-components-validation-error {
    font-size: 13px;
}

/* Typed text shows in capitals, as on the classic checkout; it is also saved
   in capitals (inc/woocommerce/block_checkout.php). Email and phone stay as typed. */

.nvm-block-checkout .wc-block-checkout__form .wc-block-components-text-input input[type="text"],
.nvm-block-checkout .wc-block-checkout__form .wc-block-components-textarea {
    text-transform: uppercase;
}

/* Checkboxes. */

.nvm-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
    background: #FFFFFF;
    background-image: none;
    border: 1px solid var(--bc-line);
    border-radius: 4px;
    width: 20px;
    height: 20px;
}

.nvm-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
    background: var(--bc-green);
    border-color: var(--bc-green);
}

.nvm-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark {
    fill: #FFFFFF;
}

.nvm-block-checkout .wc-block-components-checkbox label {
    font-size: 15px;
    color: var(--bc-ink);
}



/* Radio cards: shipping options and payment methods. */

.nvm-block-checkout .wc-block-components-radio-control--highlight-checked,
.nvm-block-checkout .wc-block-components-radio-control-accordion-option,
.nvm-block-checkout .wc-block-components-radio-control__option {
    color: var(--bc-ink);
}

.nvm-block-checkout .wc-block-components-radio-control--highlight-checked {
    border: 0;
    border-radius: var(--bc-radius);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nvm-block-checkout .wc-block-components-radio-control--highlight-checked::after {
    display: none;
}

.nvm-block-checkout .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option,
.nvm-block-checkout .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control-accordion-option {
    border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius);
    background: #FFFFFF;
    box-shadow: none;
    margin: 0;
    transition: border-color .15s ease, background-color .15s ease;
}

.nvm-block-checkout .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option::after,
.nvm-block-checkout .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control-accordion-option::after {
    display: none;
}

.nvm-block-checkout .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option:hover,
.nvm-block-checkout .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control-accordion-option:hover {
    border-color: #A9B5AE;
}

.nvm-block-checkout .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option-checked,
.nvm-block-checkout .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.nvm-block-checkout .wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option--checked-option-highlighted {
    border-color: var(--bc-green) !important;
    background: var(--bc-green-tint);
    box-shadow: inset 0 0 0 1px var(--bc-green) !important;
}

.nvm-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input {
    background: #FFFFFF;
    background-image: none;
    border: 1.5px solid #A9B5AE;
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.nvm-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
    border-color: var(--bc-green);
}

.nvm-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
    background: var(--bc-green);
    width: 10px;
    height: 10px;
}

.nvm-block-checkout .wc-block-components-radio-control__label,
.nvm-block-checkout .wc-block-components-radio-control__label-group {
    font-size: 15px;
    font-weight: 500;
    color: var(--bc-ink);
}

.nvm-block-checkout .wc-block-components-radio-control__secondary-label {
    font-weight: 700;
    color: var(--bc-green);
}

.nvm-block-checkout .wc-block-components-radio-control__description,
.nvm-block-checkout .wc-block-components-radio-control__secondary-description {
    font-size: 13px;
    color: var(--bc-muted);
}

.nvm-block-checkout .wc-block-components-radio-control-accordion-content {
    font-size: 14px;
    line-height: 1.55;
    color: var(--bc-muted);
    padding-top: 0;
}



/* Card option: the VISA / Mastercard / Maestro strip beside the label, as on the
   classic checkout, followed by the official Google Pay and IRIS marks (the
   Eurobank gateway accepts both). The Eurobank block script draws only the text,
   so the icons are added here. */

.nvm-block-checkout label[for="radio-control-wc-payment-method-options-eurobank_gateway"] .wc-block-components-radio-control__label-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.nvm-block-checkout label[for="radio-control-wc-payment-method-options-eurobank_gateway"] .wc-block-components-radio-control__label-group::after {
    content: "";
    flex: 0 0 auto;
    width: 219px;
    height: 23px;
    background:
        url("/wp-content/plugins/webexpert-woocommerce-eurobank-payment-gateway/assets/img/eurobank.png") no-repeat 0 center / 138px 23px,
        url("/wp-content/themes/polocenter/img/payments/google-pay.svg") no-repeat 144px center / 34px 23px,
        url("/wp-content/themes/polocenter/img/payments/iris.svg") no-repeat right center / 35px 23px;
}



/* Buttons: the store's green pill. */

.nvm-block-checkout .wc-block-components-button:not(.is-link) {
    background: var(--bc-green) !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: .2px;
    text-transform: none !important;
    box-shadow: none !important;
    opacity: 1;
    transition: background-color .15s ease;
}

.nvm-block-checkout .wc-block-components-button:not(.is-link):hover,
.nvm-block-checkout .wc-block-components-button:not(.is-link):focus {
    background: var(--bc-green-dark) !important;
    color: #FFFFFF !important;
}

.nvm-block-checkout .wc-block-components-button:not(.is-link):disabled,
.nvm-block-checkout .wc-block-components-button:not(.is-link)[aria-disabled="true"] {
    opacity: .6;
}

.nvm-block-checkout .wc-block-components-button:not(.is-link) .wc-block-components-button__text {
    color: inherit !important;
}

.nvm-block-checkout .wc-block-components-checkout-place-order-button,
.nvm-block-checkout .wc-block-cart__submit-button {
    min-height: 58px;
    font-size: 17px !important;
}

.nvm-block-checkout .wc-block-components-totals-coupon__button {
    min-height: 54px;
    padding: 0 22px !important;
}

.nvm-block-checkout .wc-block-components-checkout-return-to-cart-button,
.nvm-block-checkout .wc-block-components-button.is-link {
    color: var(--bc-green) !important;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nvm-block-checkout .wc-block-checkout__actions_row {
    align-items: center;
}

.nvm-block-checkout .wc-block-checkout__terms {
    font-size: 14px;
    line-height: 1.55;
    color: var(--bc-muted);
    margin: 0 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bc-line);
}

.nvm-block-checkout .wc-block-checkout__terms a,
.nvm-block-checkout .wc-block-components-checkbox label a {
    color: var(--bc-green);
    text-decoration: underline;
}



/* Order summary / cart totals: a card. */

.nvm-block-checkout .wp-block-woocommerce-checkout-order-summary-block,
.nvm-block-checkout .wp-block-woocommerce-cart-order-summary-block {
    background: #FFFFFF;
    border: 1px solid var(--bc-line);
    border-radius: 12px;
    padding: 6px 0 4px;
    box-shadow: 0 1px 2px rgba(31, 46, 44, .04);
}

.nvm-block-checkout .wc-block-components-checkout-order-summary__title,
.nvm-block-checkout .wc-block-cart__totals-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: var(--bc-ink);
    padding: 18px 20px 10px !important;
    margin: 0;
}

.nvm-block-checkout .wc-block-components-checkout-order-summary__title-text {
    font-size: 20px;
    font-weight: 600;
}

.nvm-block-checkout .wc-block-components-totals-wrapper {
    border-top: 1px solid var(--bc-line);
    padding: 14px 20px;
}

.nvm-block-checkout .wc-block-components-totals-wrapper:first-of-type:not(.has-coupon-form) {
    border-top: 0;
}

.nvm-block-checkout .wc-block-components-order-summary {
    padding: 4px 20px 8px;
}

.nvm-block-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item {
    padding: 14px 0;
    border-bottom: 1px solid #EFEDE7;
}

.nvm-block-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item:last-child {
    border-bottom: 0;
}

.nvm-block-checkout .wc-block-components-order-summary-item__image img {
    border-radius: 6px;
    border: 1px solid #EFEDE7;
    background: #FFFFFF;
}

.nvm-block-checkout .wc-block-components-order-summary-item__quantity {
    background: var(--bc-green);
    border-color: #FFFFFF;
    color: #FFFFFF;
    font-weight: 700;
}

.nvm-block-checkout .wc-block-components-product-name,
.nvm-block-checkout .wc-block-components-order-summary-item__description h3.wc-block-components-product-name {
    font-family: var(--nvm-font-sans-serif);
    font-size: 15px !important;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 4px;
    line-height: 1.35;
    color: var(--bc-ink);
    text-decoration: none;
}

.nvm-block-checkout .wc-block-components-product-metadata,
.nvm-block-checkout .wc-block-components-product-metadata__description {
    font-size: 13px;
    color: var(--bc-muted);
}

.nvm-block-checkout .wc-block-components-totals-item {
    font-size: 15px;
    color: var(--bc-ink);
}

.nvm-block-checkout .wc-block-components-totals-item__value {
    font-weight: 600;
}

.nvm-block-checkout .wc-block-components-totals-footer-item {
    padding-top: 4px;
}

.nvm-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 18px;
    font-weight: 700;
}

.nvm-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 24px;
    font-weight: 700;
    color: var(--bc-ink);
}

.nvm-block-checkout .wc-block-components-totals-footer-item-tax {
    font-size: 13px;
    color: var(--bc-muted);
}

/* Free shipping reads as good news. */
.nvm-block-checkout .wc-block-components-totals-shipping .wc-block-components-totals-item__value strong,
.nvm-block-checkout .wc-block-components-totals-shipping .wc-block-components-totals-item__value {
    color: var(--bc-green);
}

.nvm-block-checkout .wc-block-components-totals-shipping__via,
.nvm-block-checkout .wc-block-components-totals-shipping .wc-block-components-totals-item__description {
    font-size: 13px;
    color: var(--bc-muted);
}

/* Coupon panel. */

.nvm-block-checkout .wc-block-components-panel__button {
    font-size: 15px;
    font-weight: 500;
    color: var(--bc-green);
    padding-top: 2px;
    padding-bottom: 2px;
}

.nvm-block-checkout .wc-block-components-panel__button-icon {
    fill: var(--bc-green);
}

/* Links under the summary ("Δικαιώματα νόμιμης εγγύησης"). */

.nvm-block-checkout .wc-block-components-totals-wrapper.slot-wrapper {
    padding: 12px 20px 16px;
    font-size: 14px;
}

.nvm-block-checkout .wc-block-components-totals-wrapper.slot-wrapper:empty {
    display: none;
}

.nvm-block-checkout .wc-block-checkout__sidebar a,
.nvm-block-checkout .wc-block-cart__sidebar a:not(.wc-block-components-button) {
    color: var(--bc-green);
}



/* Cart page. */

.nvm-block-checkout .wc-block-cart {
    padding-top: 8px;
}

.nvm-block-checkout table.wc-block-cart-items {
    border: 0;
    margin: 0;
}

.nvm-block-checkout table.wc-block-cart-items th,
.nvm-block-checkout table.wc-block-cart-items td {
    border: 0;
    background: transparent;
}

.nvm-block-checkout .wc-block-cart-items .wc-block-cart-items__header {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: var(--bc-muted);
}

.nvm-block-checkout .wc-block-cart-items .wc-block-cart-items__header th {
    padding: 0 0 12px;
    border-bottom: 1px solid var(--bc-line);
}

.nvm-block-checkout .wc-block-cart-items .wc-block-cart-items__row {
    border-bottom: 1px solid var(--bc-line);
}

.nvm-block-checkout .wc-block-cart-items .wc-block-cart-items__row td {
    padding-top: 22px;
    padding-bottom: 22px;
    border-top: 0;
}

.nvm-block-checkout .wc-block-cart-item__image img {
    border-radius: 8px;
    border: 1px solid #EFEDE7;
    background: #FFFFFF;
}

.nvm-block-checkout .wc-block-cart-item__product .wc-block-components-product-name {
    font-size: 16px !important;
}

.nvm-block-checkout .wc-block-cart-item__prices,
.nvm-block-checkout .wc-block-cart-item__total {
    font-size: 15px;
    font-weight: 600;
}

.nvm-block-checkout .wc-block-components-quantity-selector {
    border: 1px solid var(--bc-line);
    border-radius: 999px;
    overflow: hidden;
    background: #FFFFFF;
    width: 118px;
}

.nvm-block-checkout .wc-block-components-quantity-selector::after {
    display: none;
}

.nvm-block-checkout .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 40px !important;
    min-height: 0 !important;
    padding: 0 !important;
    font-size: 15px;
    font-weight: 600;
    color: var(--bc-ink);
}

.nvm-block-checkout .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    background: transparent !important;
    border: 0 !important;
    color: var(--bc-ink) !important;
    font-size: 18px;
    min-width: 36px;
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.nvm-block-checkout .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
    background: var(--bc-soft) !important;
}

.nvm-block-checkout .wc-block-cart-item__remove-link {
    color: var(--bc-muted) !important;
    font-size: 13px !important;
    text-decoration: underline !important;
}

.nvm-block-checkout .wc-block-cart-item__remove-link:hover {
    color: #C0392B !important;
}

.nvm-block-checkout .wc-block-cart__submit-container {
    padding: 4px 20px 20px;
}

.nvm-block-checkout .wc-block-cart__submit {
    margin: 0;
}

.nvm-block-checkout .wp-block-woocommerce-cart-accepted-payment-methods-block {
    padding: 0 20px;
}

/* Empty cart. */

.nvm-block-checkout .wc-block-cart__empty-cart__title {
    font-size: 26px;
    color: var(--bc-ink);
}

.nvm-block-checkout .wp-block-woocommerce-empty-cart-block .wp-block-separator {
    border: 0;
    margin: 28px auto;
}



/* Notices. */

.nvm-block-checkout .wc-block-components-notice-banner {
    border-radius: var(--bc-radius);
    font-size: 15px;
}



/* Tablet and down: one column, summary first on the checkout. */

@media (max-width: 1023px) {

    .nvm-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main {
        padding-right: 0;
    }

}

@media (max-width: 699px) {

    .nvm-block-checkout {
        --bc-header-offset: 0px;
    }

    .nvm-block-checkout .content-main > .wp-block-woocommerce-checkout,
    .nvm-block-checkout .content-main > .wp-block-woocommerce-cart {
        padding: 16px 16px 48px;
    }

    .nvm-block-checkout .wc-block-components-checkout-step__container {
        padding-left: 0;
    }

    .nvm-block-checkout .wc-block-components-checkout-step__title {
        font-size: 19px;
    }

    .nvm-block-checkout .wc-block-components-checkout-step {
        margin-bottom: 32px;
    }

    .nvm-block-checkout label[for="radio-control-wc-payment-method-options-eurobank_gateway"] .wc-block-components-radio-control__label-group::after {
        width: 173px;
        height: 18px;
        background-position: 0 center, 113px center, right center;
        background-size: 108px 18px, 27px 18px, 28px 18px;
    }

    .nvm-block-checkout label[for="radio-control-wc-payment-method-options-eurobank_gateway"] .wc-block-components-radio-control__label-group {
        flex-wrap: wrap;
        row-gap: 6px;
    }

}
