.netstore-recipient-panel {
    margin: 22px 0 0;
    padding: 20px;
    border: 1px solid #e2e5e9;
    border-radius: 12px;
    background: #fff;
    color: #1f2933;
}

.netstore-recipient-saved {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    align-items: center;
    margin-bottom: 20px;
}

.netstore-recipient-saved label {
    grid-column: 1 / -1;
    margin: 0;
    font-weight: 600;
}

.netstore-recipient-saved select {
    width: 100%;
    min-height: 44px;
    padding: 8px 38px 8px 12px;
    border: 1px solid #cfd5dc;
    border-radius: 8px;
    background: #fff;
}

.netstore-recipient-saved a {
    color: #2767a7;
    font-size: 13px;
    white-space: nowrap;
}

.netstore-recipient-choice {
    margin: 0;
    padding: 0;
    border: 0;
}

.netstore-recipient-choice legend {
    margin: 0 0 10px;
    padding: 0;
    color: #1f2933;
    font-size: 16px;
    font-weight: 700;
}

.netstore-recipient-choice__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.netstore-recipient-choice__options label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid #cfd5dc;
    border-radius: 9px;
    cursor: pointer;
}

.netstore-recipient-choice__options label:has(input:checked) {
    border-color: #4b7f2b;
    box-shadow: 0 0 0 1px #4b7f2b;
    background: #f5faef;
}

.netstore-recipient-choice__options input {
    flex: 0 0 auto;
    margin: 0;
}

.netstore-recipient-fields {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e6e9ed;
}

.netstore-recipient-fields[hidden],
.netstore-address-form__recipient[hidden],
.netstore-address-form-shell[hidden] {
    display: none !important;
}

.netstore-recipient-fields > p {
    margin: 0 0 13px;
    color: #65717e;
    font-size: 13px;
}

.netstore-recipient-fields__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.netstore-recipient-fields__grid label {
    display: grid;
    gap: 6px;
    margin: 0;
    font-weight: 600;
}

.netstore-recipient-fields__grid input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #cfd5dc;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.netstore-address-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.netstore-address-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.netstore-address-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 20px;
}

.netstore-address-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.netstore-address-card__top h2 {
    margin: 0;
}

.netstore-address-badge {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf6e8;
    color: #3f7125;
    font-size: 12px;
    font-weight: 700;
}

.netstore-address-card__address,
.netstore-address-card__recipient {
    display: flex;
    gap: 10px;
    color: #4b5662;
    line-height: 1.5;
}

.netstore-address-card__address .fa,
.netstore-address-card__recipient .fa {
    width: 16px;
    margin-top: 3px;
    color: #4b7f2b;
    text-align: center;
}

.netstore-address-card__recipient strong,
.netstore-address-card__recipient span {
    display: block;
}

.netstore-address-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.netstore-address-action {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #ccd2d8;
    border-radius: 7px;
    background: #fff;
    color: #26323f;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}

.netstore-address-action:hover,
.netstore-address-action:focus {
    border-color: #4b7f2b;
    color: #3f7125;
}

.netstore-address-action--danger:hover,
.netstore-address-action--danger:focus {
    border-color: #bb2d3b;
    color: #bb2d3b;
}

.netstore-address-form-shell {
    margin-top: 20px;
}

.netstore-address-form {
    padding: 22px;
}

.netstore-address-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.netstore-address-form__grid label,
.netstore-address-form__recipient label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #303b46;
    font-weight: 600;
}

.netstore-address-form__grid input,
.netstore-address-form__recipient input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #cfd5dc;
    border-radius: 8px;
    box-sizing: border-box;
}

.netstore-address-form__wide {
    grid-column: 1 / -1;
}

.netstore-address-form__mode {
    margin: 20px 0 0;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid #e4e8ec;
}

.netstore-address-form__mode legend {
    margin-bottom: 10px;
    padding: 0;
    font-weight: 700;
}

.netstore-address-form__mode-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.netstore-address-form__mode-options label {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.netstore-address-form__recipient {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 16px;
}

.netstore-address-form__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.netstore-address-form__default {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.netstore-address-message {
    margin: 0 0 14px;
    padding: 10px 13px;
    border-radius: 7px;
    background: #edf6e8;
    color: #3f7125;
}

.netstore-address-message.is-error {
    background: #fff0f1;
    color: #a61f2b;
}

.netstore-order-recipient-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    background: #fff;
}

.netstore-order-recipient-card__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #edf6e8;
    color: #4b7f2b;
}

.netstore-order-recipient-card__label,
.netstore-order-recipient-card strong,
.netstore-order-recipient-card a {
    display: block;
}

.netstore-order-recipient-card__label {
    margin-bottom: 3px;
    color: #77818c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.netstore-order-recipient-card a {
    margin-top: 3px;
    color: #2767a7;
}

@media (max-width: 767px) {
    .netstore-recipient-saved,
    .netstore-recipient-fields__grid,
    .netstore-address-list,
    .netstore-address-form__grid,
    .netstore-address-form__recipient {
        grid-template-columns: 1fr;
    }

    .netstore-recipient-saved a {
        justify-self: start;
    }

    .netstore-recipient-choice__options {
        grid-template-columns: 1fr;
    }

    .netstore-address-form__wide {
        grid-column: auto;
    }

    .netstore-address-form__default {
        width: 100%;
    }
}
