.crafma-delivery-card {
    margin: 28px 0 20px;
    padding: 24px;
    border: 1px solid #e6e2df;
    border-radius: 16px;
    background: #fff;
    color: #2f2933;
}

.crafma-delivery-card__title {
    margin: 0 0 20px;
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.25;
    font-weight: 700;
}

.crafma-delivery-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    font-size: 16px;
    line-height: 1.45;
}

.crafma-delivery-icon {
    display: inline-flex;
    color: #342d39;
}

.crafma-delivery-label { font-weight: 500; }
.crafma-free-text { color: #246b21; font-weight: 800; }

.crafma-delivery-destination {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e6e2df;
}

.crafma-delivery-change {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2f2933;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
}

.crafma-delivery-change:hover strong,
.crafma-delivery-change:focus-visible strong { text-decoration: underline; }
.crafma-pencil { display: inline-flex; }

.crafma-delivery-note,
.crafma-delivery-message {
    margin: 8px 0 0;
    color: #6d6670;
    font-size: 13px;
    line-height: 1.45;
}

.crafma-policy-link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.crafma-loop-delivery {
    display: block;
    min-height: 0;
    margin-top: 7px;
}

.crafma-loop-delivery.is-visible { min-height: 24px; }

.crafma-free-delivery-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 999px;
    background: #a8d568;
    color: #17320f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.crafma-location-modal[hidden] { display: none !important; }
.crafma-modal-open { overflow: hidden; }

.crafma-location-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.crafma-location-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 22, .56);
}

.crafma-location-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.crafma-location-modal__dialog h2 {
    margin: 0 42px 8px 0;
    font-size: 24px;
}

.crafma-location-modal__dialog p {
    margin: 0 0 22px;
    color: #6d6670;
}

.crafma-location-modal__dialog label {
    display: block;
    margin: 16px 0 7px;
    font-weight: 700;
}

.crafma-location-modal__dialog input,
.crafma-location-modal__dialog select {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #aaa3ad;
    border-radius: 10px;
    background: #fff;
    color: #2f2933;
    font-size: 16px;
}

.crafma-location-modal__dialog input:focus,
.crafma-location-modal__dialog select:focus {
    border-color: #c62566;
    outline: 3px solid rgba(198, 37, 102, .15);
}

.crafma-location-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f4f1f2;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.crafma-location-modal__save {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 22px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: #c62566;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.crafma-location-modal__save:disabled { opacity: .65; cursor: wait; }
.crafma-location-modal__error { min-height: 20px; margin-top: 8px; color: #b42318; font-size: 13px; }

@media (max-width: 767px) {
    .crafma-delivery-card { padding: 18px; border-radius: 13px; }
    .crafma-delivery-row { font-size: 15px; }
    .crafma-location-modal { align-items: end; padding: 0; }
    .crafma-location-modal__dialog {
        width: 100%;
        max-height: 88vh;
        padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
        border-radius: 20px 20px 0 0;
    }
}

.crafma-archive-destination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 12px;
    width: 100%;
    margin: 0 0 18px;
    padding: 11px 14px;
    border: 1px solid #e6e2df;
    border-radius: 12px;
    background: #fff;
    color: #2f2933;
}

.crafma-archive-destination__button {
    font-size: 14px;
    font-weight: 500;
}

.crafma-archive-destination__hint {
    color: #746d76;
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .crafma-archive-destination {
        justify-content: flex-start;
        margin-bottom: 14px;
        padding: 10px 12px;
    }

    .crafma-archive-destination__hint {
        flex-basis: 100%;
    }
}

.crafma-location-modal__detect {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    padding: 11px 18px;
    border: 1px solid #c62566;
    border-radius: 999px;
    background: #fff;
    color: #c62566;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.crafma-location-modal__detect:hover,
.crafma-location-modal__detect:focus-visible {
    background: #fff5f8;
}

.crafma-location-modal__detect:disabled {
    opacity: .65;
    cursor: wait;
}

.crafma-location-modal__attribution {
    margin: 12px 0 0 !important;
    color: #847d86 !important;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
}
