.npms-checkout-block,
.npms-checkout-block * {
    box-sizing: border-box;
}

.npms-checkout-block {
    margin: 24px 0;
    border: 1px solid #d9d9d9;
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
    overflow: visible;
}

.npms-checkout-block .npms-courier-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px 20px;
    color: #111;
}

.npms-checkout-block .npms-courier-icon {
    flex: 0 0 72px;
    width: 72px;
    color: #111;
    line-height: 0;
    align-self: center;
}

.npms-checkout-block .npms-courier-icon svg {
    width: 100%;
    height: auto;
}

.npms-checkout-block .npms-courier-content {
    flex: 1 1 auto;
    min-width: 0;
}

.npms-checkout-block .npms-delivery-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.npms-checkout-block .npms-delivery-mode {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.npms-checkout-block .npms-delivery-mode input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.npms-checkout-block .npms-delivery-mode.is-active {
    border-color: #95ca96;
    background: #f6fbf6;
    box-shadow: 0 0 0 3px rgba(149, 202, 150, 0.16);
}

.npms-checkout-block .npms-delivery-mode-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.npms-checkout-block .npms-delivery-mode-title {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    color: #111;
}

.npms-checkout-block .npms-delivery-mode-price {
    font-size: 13px;
    line-height: 1.3;
    color: #5f5f5f;
}

.npms-checkout-block .npms-method-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.npms-checkout-block .npms-method-logo svg {
    display: block;
    width: auto;
    height: 16px;
}

.npms-checkout-block .npms-section + .npms-section {
    margin-top: 22px;
}

.npms-checkout-block .npms-inline-picker {
    position: relative;
}

.npms-checkout-block .npms-line {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.34;
    color: #111;
}

.npms-checkout-block .npms-emphasis-label {
    font-style: italic;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.18;
}

.npms-checkout-block .npms-line-label,
.npms-checkout-block .npms-arrival-date {
    font-weight: 400;
}

.npms-checkout-block .npms-city-trigger {
    display: inline;
    padding: 0;
    border: 0;
    border-bottom: 3px dashed #95ca96;
    background: transparent;
    color: #7cbc7b;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
}

.npms-checkout-block .npms-city-trigger:hover {
    color: #66b36e;
    border-bottom-color: #66b36e;
}

.npms-checkout-block .npms-price-badge {
    display: inline;
    padding: 0 4px;
    background: #fff2c4;
    color: #111;
    font-size: inherit;
    line-height: inherit;
    font-weight: 400;
}

.npms-checkout-block .npms-line-arrival {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.npms-checkout-block .npms-line-pickup,
.npms-checkout-block .npms-line-main,
.npms-checkout-block .npms-line-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.npms-checkout-block .npms-line-help {
    margin-top: 12px;
    color: #5d5d5d;
    font-size: 14px;
}

.npms-checkout-block .npms-city-suggestion-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 0;
}

.npms-checkout-block .npms-city-suggestion-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    background: #fff;
    color: #2d5c31;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.npms-checkout-block .npms-city-suggestion-button.is-confirm {
    border: 1px solid #95ca96;
    background: #f6fbf6;
    box-shadow: 0 6px 14px rgba(149, 202, 150, 0.14);
    font-weight: 700;
}

.npms-checkout-block .npms-city-suggestion-button.is-change {
    border: 1px solid #d9d9d9;
    font-weight: 400;
}

.npms-checkout-block .npms-city-suggestion-button:hover {
    border-color: #74b878;
    color: #214624;
}

.npms-checkout-block .npms-line-conditions {
    margin-top: 16px;
}

.npms-checkout-block .npms-delivery-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #95ca96;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(149, 202, 150, 0.16);
    color: #2d5c31;
    font-family: 'Lora', serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.npms-checkout-block .npms-delivery-link:hover {
    border-color: #74b878;
    box-shadow: 0 10px 22px rgba(149, 202, 150, 0.22);
    color: #214624;
    text-decoration: none;
    transform: translateY(-1px);
}

.npms-checkout-block .npms-product-delivery-note-inline {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    line-height: 1.35;
    font-style: italic;
    font-weight: 400;
    color: #111;
    white-space: normal;
}

.npms-checkout-block .npms-delivery-prices {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.npms-checkout-block .npms-delivery-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    background: #fcfcfc;
}

.npms-checkout-block .npms-delivery-price-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
}

.npms-checkout-block .npms-checkout-delivery-header {
    margin-bottom: 14px;
}

.npms-checkout-block .npms-checkout-delivery-header h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.2;
}

.npms-checkout-block .npms-checkout-delivery-header p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: #3f3f3f;
}

.npms-checkout-block .npms-checkout-delivery-note {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    line-height: 1.3;
    font-style: italic;
    font-weight: 300;
    font-stretch: condensed;
    letter-spacing: -0.01em;
    color: #6a6a6a;
    white-space: nowrap;
}

.npms-checkout-block .npms-info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    align-self: center;
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    height: 20px;
    min-height: 20px;
    max-height: 20px;
    padding: 0;
    border: 1.5px solid #111;
    border-radius: 50%;
    background: transparent;
    color: #111;
    font-size: 11px;
    line-height: 20px;
    font-weight: 700;
    cursor: help;
    vertical-align: middle;
}

.npms-checkout-block .npms-info-icon::before,
.npms-checkout-block .npms-info-icon::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}

.npms-checkout-block .npms-info-icon::before {
    content: "";
    left: 50%;
    bottom: calc(100% + 7px);
    width: 10px;
    height: 10px;
    background: #f4d85e;
    border-radius: 2px;
    box-shadow: 0 8px 16px rgba(82, 66, 0, 0.12);
    transform: translateX(-50%) rotate(45deg) translateY(6px);
    z-index: 39;
}

.npms-checkout-block .npms-info-icon::after {
    content: attr(data-tooltip);
    left: 50%;
    bottom: calc(100% + 12px);
    width: 232px;
    max-width: min(232px, calc(100vw - 32px));
    padding: 10px 12px;
    border-radius: 4px;
    background: #f4d85e;
    color: #5a4500;
    font-size: 12px;
    line-height: 1.38;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    box-shadow: 0 10px 24px rgba(82, 66, 0, 0.18);
    transform: translateX(-50%) translateY(6px);
    z-index: 40;
}

.npms-checkout-block .npms-info-icon:hover::before,
.npms-checkout-block .npms-info-icon:hover::after,
.npms-checkout-block .npms-info-icon:focus-visible::before,
.npms-checkout-block .npms-info-icon:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.npms-checkout-block .npms-info-icon:hover::before,
.npms-checkout-block .npms-info-icon:focus-visible::before {
    transform: translateX(-50%) rotate(45deg) translateY(0);
}

.npms-checkout-block .npms-info-icon:hover::after,
.npms-checkout-block .npms-info-icon:focus-visible::after {
    transform: translateX(-50%) translateY(0);
}

.npms-checkout-block .npms-info-icon-inline {
    flex-basis: 20px;
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    height: 20px;
    min-height: 20px;
    max-height: 20px;
    border-width: 1.5px;
    font-size: 11px;
    vertical-align: middle;
    margin-left: 4px;
}

.npms-checkout-block .npms-schedule-note {
    display: none;
}

.npms-checkout-block .npms-common-fields {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 30;
    width: min(360px, calc(100vw - 72px));
    margin: 0;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.npms-checkout-block .npms-field {
    position: relative;
}

.npms-checkout-block .npms-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d2d2d2;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-size: 16px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.npms-checkout-block .npms-input:focus {
    border-color: #8bc58e;
    box-shadow: 0 0 0 4px rgba(139, 197, 142, 0.16);
}

.npms-checkout-block .npms-results {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.npms-checkout-block .npms-result-item,
.npms-checkout-block .npms-result-empty {
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.35;
}

.npms-checkout-block .npms-result-item {
    cursor: pointer;
    border-bottom: 1px solid #efefef;
}

.npms-checkout-block .npms-result-item:last-child {
    border-bottom: 0;
}

.npms-checkout-block .npms-result-item:hover {
    background: #f6fbf6;
}

.npms-checkout-block .npms-result-empty {
    color: #767676;
}

.npms-checkout-block .npms-message {
    max-width: 540px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.45;
}

.npms-checkout-block .npms-info {
    background: #f5f8ff;
    border: 1px solid #d8e3f5;
    color: #23426c;
}

.npms-checkout-block .npms-error {
    background: #fff3f3;
    border: 1px solid #f1cccc;
    color: #992626;
}

.npms-checkout-block .npms-success {
    background: #f1faf1;
    border: 1px solid #d3ead3;
    color: #2f6f34;
}

.woocommerce-checkout .customer-details {
    padding: 28px;
    border: 1px solid #e7decf;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(215, 193, 151, 0.18), transparent 34%),
        linear-gradient(180deg, #fffdfa 0%, #fff9f1 100%);
    box-shadow: 0 20px 40px rgba(60, 42, 12, 0.06);
}

.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout #ship-to-different-address,
.woocommerce-checkout .woocommerce-shipping-fields {
    display: none !important;
}

.woocommerce-checkout .npms-checkout-left-heading {
    margin: 0 0 22px;
    color: #23180b;
    font-family: "Lora", serif;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid;
    gap: 16px;
}

.woocommerce-checkout .npms-hidden-field {
    display: none !important;
}

.woocommerce-checkout .customer-details .form-row {
    margin: 0;
}

.woocommerce-checkout .customer-details label {
    display: block;
    margin-bottom: 8px;
    color: #4d3923;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.woocommerce-checkout .customer-details input.input-text,
.woocommerce-checkout .customer-details textarea,
.woocommerce-checkout .npms-checkout-city-search {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #dbcdb6;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #20160d;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.woocommerce-checkout .customer-details textarea {
    min-height: 110px;
    resize: vertical;
}

.woocommerce-checkout .customer-details input.input-text:focus,
.woocommerce-checkout .customer-details textarea:focus,
.woocommerce-checkout .npms-checkout-city-search:focus {
    border-color: #b8945f;
    box-shadow: 0 0 0 4px rgba(184, 148, 95, 0.16);
    outline: none;
}

.woocommerce-checkout .npms-checkout-city-field {
    position: relative;
}

.woocommerce-checkout .npms-checkout-city-field .woocommerce-input-wrapper {
    position: relative;
    display: block;
}

.woocommerce-checkout .npms-checkout-city-field .npms-results {
    position: absolute;
    top: calc(100% + 34px);
    left: 0;
    right: 0;
    z-index: 100000;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #dbcdb6;
    border-radius: 18px;
    background: #fffdf9;
    box-shadow: 0 20px 36px rgba(60, 42, 12, 0.12);
}

.woocommerce-checkout .npms-checkout-city-field .npms-result-item,
.woocommerce-checkout .npms-checkout-city-field .npms-result-empty {
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.35;
}

.woocommerce-checkout .npms-checkout-city-field .npms-result-item {
    cursor: pointer;
    border-bottom: 1px solid #efe4d2;
}

.woocommerce-checkout .npms-checkout-city-field .npms-result-item:last-child {
    border-bottom: 0;
}

.woocommerce-checkout .npms-checkout-city-field .npms-result-item:hover {
    background: #f8efe0;
}

.woocommerce-checkout .npms-checkout-city-message {
    margin-top: 8px;
    color: #9f3b2f;
    font-size: 13px;
    line-height: 1.4;
}

.npms-checkout-city-floating-results {
    position: absolute;
    z-index: 99999;
    margin-top: 10px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #dbcdb6;
    border-radius: 18px;
    background: #fffdf9;
    box-shadow: 0 20px 36px rgba(60, 42, 12, 0.16);
}

@media (max-width: 991px) {
    .woocommerce-checkout .customer-details {
        padding: 24px;
        border-radius: 24px;
    }

    .woocommerce-checkout .npms-checkout-left-heading {
        font-size: 26px;
    }

    .npms-checkout-block .npms-courier-card {
        gap: 14px;
        padding: 20px 20px 18px;
        align-items: center;
    }

    .npms-checkout-block .npms-courier-icon {
        flex-basis: 64px;
        width: 64px;
    }

    .npms-checkout-block .npms-line {
        font-size: 16px;
    }

    .npms-checkout-block .npms-emphasis-label {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .woocommerce-checkout .customer-details {
        padding: 18px;
        border-radius: 22px;
    }

    .woocommerce-checkout .npms-checkout-left-heading {
        margin-bottom: 18px;
        font-size: 23px;
    }

    .woocommerce-checkout .customer-details input.input-text,
    .woocommerce-checkout .customer-details textarea,
    .woocommerce-checkout .npms-checkout-city-search {
        min-height: 48px;
        padding: 12px 14px;
    }

    .npms-checkout-block {
        margin: 16px 0;
        border-radius: 16px;
    }

    .npms-checkout-block .npms-courier-card {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 14px;
        align-items: center;
    }

    .npms-checkout-block .npms-courier-icon {
        width: 56px;
        flex-basis: auto;
        align-self: center;
    }

    .npms-checkout-block .npms-courier-content {
        min-width: 0;
    }

    .npms-checkout-block .npms-section + .npms-section {
        margin-top: 16px;
    }

    .npms-checkout-block .npms-line {
        font-size: 16px;
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .npms-checkout-block .npms-line-main,
    .npms-checkout-block .npms-line-arrival,
    .npms-checkout-block .npms-line-pickup,
    .npms-checkout-block .npms-line-price {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .npms-checkout-block .npms-delivery-modes {
        margin-bottom: 16px;
    }

    .npms-checkout-block .npms-delivery-mode {
        width: 100%;
        justify-content: space-between;
    }

    .npms-checkout-block .npms-delivery-price-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .npms-checkout-block .npms-city-trigger,
    .npms-checkout-block .npms-pickup-place {
        display: inline;
        overflow-wrap: anywhere;
    }

    .npms-checkout-block .npms-price-badge {
        display: inline-block;
        vertical-align: baseline;
    }

    .npms-checkout-block .npms-info-icon {
        flex-basis: 20px;
        width: 20px;
        min-width: 20px;
        height: 20px;
        border-width: 1.5px;
        font-size: 11px;
    }

    .npms-checkout-block .npms-info-icon-inline {
        width: 20px;
        min-width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .npms-checkout-block .npms-info-icon::after {
        width: min(220px, calc(100vw - 36px));
    }

    .npms-checkout-block .npms-common-fields {
        top: calc(100% + 8px);
        left: -68px;
        width: min(320px, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
        padding: 10px;
    }

    .npms-checkout-block .npms-input {
        height: 38px;
        font-size: 16px;
    }

    .npms-checkout-block .npms-schedule-note {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .woocommerce-checkout .customer-details {
        padding: 16px;
    }

    .woocommerce-checkout .npms-checkout-left-heading {
        font-size: 21px;
    }

    .npms-checkout-block .npms-courier-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        padding: 14px 12px;
        align-items: center;
    }

    .npms-checkout-block .npms-courier-icon {
        width: 48px;
        align-self: center;
    }

    .npms-checkout-block .npms-line {
        font-size: 16px;
        line-height: 1.32;
    }

    .npms-checkout-block .npms-emphasis-label {
        font-size: 18px;
    }

    .npms-checkout-block .npms-section + .npms-section {
        margin-top: 14px;
    }

    .npms-checkout-block .npms-common-fields {
        left: -58px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    .npms-checkout-block .npms-input {
        font-size: 15px;
    }

    .npms-checkout-block .npms-delivery-mode {
        padding: 10px 12px;
        border-radius: 12px;
    }

    .npms-checkout-block .npms-delivery-mode-title {
        font-size: 14px;
    }

    .npms-checkout-block .npms-delivery-mode-price {
        font-size: 12px;
    }

    .npms-checkout-block .npms-result-item,
    .npms-checkout-block .npms-result-empty {
        font-size: 14px;
    }

    .npms-checkout-block .npms-info-icon::before {
        left: auto;
        right: 6px;
        transform: rotate(45deg) translateY(6px);
    }

    .npms-checkout-block .npms-info-icon::after {
        left: auto;
        right: -6px;
        width: min(200px, calc(100vw - 28px));
        transform: translateY(6px);
    }

    .npms-checkout-block .npms-info-icon:hover::before,
    .npms-checkout-block .npms-info-icon:focus-visible::before {
        transform: rotate(45deg) translateY(0);
    }

    .npms-checkout-block .npms-info-icon:hover::after,
    .npms-checkout-block .npms-info-icon:focus-visible::after {
        transform: translateY(0);
    }
}

/* City confirmation buttons are disabled in product card and checkout.
   City is filled by browser/saved selection or selected manually in the search field. */
.npms-city-suggestion-actions,
.npms-city-suggestion-button {
    display: none !important;
}
