.wcmsa-dk-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.wcmsa-dk-address-card,
.wcmsa-dk-checkout-selector {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}
.wcmsa-dk-card-title {
    margin-bottom: 10px;
}
.wcmsa-dk-badge {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f1f1;
    margin-left: 6px;
}
.wcmsa-dk-card-actions .button {
    margin: 4px 4px 0 0;
}
.wcmsa-dk-help {
    font-size: 0.95em;
    opacity: .8;
}

.wcmsa-dk-blocks-selector { margin: 0 0 16px; }
.wcmsa-dk-blocks-selector label { display: block; font-weight: 500; margin-bottom: 6px; }
.wcmsa-dk-blocks-select { box-sizing: border-box; width: 100%; min-height: 48px; }

/* Weglot-friendly aliases for dynamic checkout translation selectors. */
.wcmsa-address-selector-wrap {}
.wcmsa-address-selector {}
.wcmsa-checkout-blocks-field {}
.wcmsa-classic-checkout-field {}
.wcmsa-address-selector-label {}
.wcmsa-address-selector-help {}

/* Checkout design improvements for WooCommerce Checkout Blocks */
.wp-block-woocommerce-checkout {
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    padding: 32px 24px 56px;
    box-sizing: border-box;
}

.wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {
    align-items: flex-start;
    gap: 56px;
    margin-bottom: 0;
}

.wp-block-woocommerce-checkout .wc-block-components-main {
    padding-right: 0;
    width: calc(100% - 460px - 56px);
}

.wp-block-woocommerce-checkout .wc-block-components-sidebar {
    padding-left: 0;
    width: 460px;
}

.wp-block-woocommerce-checkout .wc-block-checkout__sidebar,
.wp-block-woocommerce-checkout .wc-block-components-sidebar {
    align-self: flex-start;
}

.wp-block-woocommerce-checkout .wc-block-checkout__sidebar.is-sticky {
    top: 32px;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step {
    margin-bottom: 34px;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading-container {
    margin-bottom: 12px;
}

.wp-block-woocommerce-checkout .wc-block-components-title,
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title {
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__description,
.wp-block-woocommerce-checkout .wcmsa-dk-help,
.wp-block-woocommerce-checkout .wcmsa-address-selector-help {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input input[type=email],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type=number],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type=password],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type=tel],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type=text],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type=url],
.wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
.wp-block-woocommerce-checkout .wcmsa-dk-blocks-select,
.wp-block-woocommerce-checkout select.wcmsa-address-selector {
    min-height: 54px;
    border-radius: 8px;
    border-color: #b8b8b8;
    background-color: #fff;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
.wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wp-block-woocommerce-checkout .wcmsa-dk-blocks-select:focus,
.wp-block-woocommerce-checkout select.wcmsa-address-selector:focus {
    border-color: #1f1f1f;
    box-shadow: 0 0 0 1px #1f1f1f;
    outline: none;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input label,
.wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__label {
    color: #555;
}

.wp-block-woocommerce-checkout .wcmsa-dk-blocks-selector,
.wp-block-woocommerce-checkout .wcmsa-dk-checkout-selector {
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #f8f8f8;
    padding: 16px;
    margin: 0 0 18px;
}

.wp-block-woocommerce-checkout .wcmsa-dk-blocks-selector label,
.wp-block-woocommerce-checkout .wcmsa-address-selector-label {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form {
    row-gap: 4px;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked,
.wp-block-woocommerce-checkout .wc-block-checkout__payment-method,
.wp-block-woocommerce-checkout .wc-block-components-shipping-rates-control__package,
.wp-block-woocommerce-checkout .wc-block-components-order-summary {
    border-radius: 10px;
}


.wp-block-woocommerce-checkout .wc-block-components-radio-control__option {
    padding-top: 18px;
    padding-bottom: 18px;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__option--checked-option-highlighted,
.wp-block-woocommerce-checkout .wc-block-checkout__shipping-method-option--selected {
    background: #fff;
    box-shadow: inset 0 0 0 2px #1f1f1f;
}



.wp-block-woocommerce-checkout .wc-block-components-order-summary {
    padding-left: 20px;
    padding-right: 20px;
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__image > img {
    border-radius: 8px;
    border: 1px solid #eee;
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
    background: #1f1f1f;
}

.wp-block-woocommerce-checkout .wc-block-components-totals-wrapper {
    border-top-color: #e2e2e2;
}

.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 22px;
    font-weight: 500;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
    min-height: 56px;
    border-radius: 8px;
    background: #1f1f1f;
    color: #fff;
    font-weight: 500;
    padding-left: 32px;
    padding-right: 32px;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover:not(:disabled) {
    background: #000;
}

.wp-block-woocommerce-checkout .wc-block-checkout__actions {
    margin-top: 18px;
}

@media (max-width: 900px) {
    .wp-block-woocommerce-checkout {
        padding: 20px 16px 40px;
    }

    .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {
        gap: 24px;
    }

    .wp-block-woocommerce-checkout .wc-block-components-main,
    .wp-block-woocommerce-checkout .wc-block-components-sidebar {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .wp-block-woocommerce-checkout .wc-block-components-sidebar {
        order: -1;
    }

    .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .wp-block-woocommerce-checkout .wcmsa-dk-blocks-selector,
    .wp-block-woocommerce-checkout .wcmsa-dk-checkout-selector {
        padding: 12px;
    }

    .wp-block-woocommerce-checkout .wc-block-components-title,
    .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title {
        font-size: 20px;
    }
}


/* Always keep the WooCommerce Checkout Blocks order note visible/open. */
.wp-block-woocommerce-checkout-order-note-block,
.wc-block-checkout__add-note {
    display: block;
}

.wp-block-woocommerce-checkout-order-note-block textarea,
.wc-block-checkout__add-note textarea {
    display: block;
    min-height: 110px;
}
