/* Ozon Delivery checkout integration by Ekleo */
.ozon-delivery-pickup-inline {
    margin: 10px 0 0 26px;
    padding: 12px 14px;
    background: #f7f9fc;
    border: 1px solid #e1e7f0;
    border-radius: 10px;
}
.ozon-delivery-pickup-current {
    color: #172b4d;
    font-size: 13px;
    line-height: 1.45;
}
.ozon-delivery-pickup-current strong { font-weight: 700; }
.ozon-delivery-pickup-delivery {
    margin-top: 3px;
    color: #667790;
    font-size: 12px;
}
.ozon-delivery-pickup-warning {
    margin-top: 7px;
    color: #b54708;
    font-size: 12px;
}
.ozon-delivery-pickup-button {
    margin-top: 9px;
    padding: 7px 12px;
    border: 1px solid #0b5fff;
    border-radius: 7px;
    background: #fff;
    color: #0b5fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}
.ozon-delivery-pickup-button:hover,
.ozon-delivery-pickup-button:focus {
    background: #eef4ff;
    color: #004fd8;
    outline: 0;
}
body.ozon-delivery-modal-open { overflow: hidden; }
.ozon-delivery-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 28, 47, .58);
}
.ozon-delivery-modal-backdrop.is-open { display: flex; }
.ozon-delivery-modal-dialog {
    width: min(780px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(7, 24, 48, .25);
}
.ozon-delivery-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid #e9edf3;
}
.ozon-delivery-modal-title {
    color: #0e213d;
    font-size: 20px;
    font-weight: 750;
}
.ozon-delivery-modal-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #f2f5f9;
    color: #52637b;
    font-size: 27px;
    line-height: 34px;
    cursor: pointer;
}
.ozon-delivery-modal-search {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #eef1f5;
}
#ozon-delivery-point-search {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #cfd8e5;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: #172b4d;
    font-size: 14px;
}
#ozon-delivery-point-search:focus {
    border-color: #0b5fff;
    box-shadow: 0 0 0 3px rgba(11, 95, 255, .10);
}
.ozon-delivery-modal-hint {
    margin-top: 7px;
    color: #8793a5;
    font-size: 11px;
}
.ozon-delivery-modal-body {
    min-height: 260px;
    overflow-y: auto;
    padding: 14px 20px 20px;
}
.ozon-delivery-point-state {
    min-height: 20px;
    margin-bottom: 10px;
    color: #728198;
    font-size: 12px;
}
.ozon-delivery-point-state.is-error { color: #b42318; }
.ozon-delivery-point-state.is-loading { color: #0b5fff; }
.ozon-delivery-point-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.ozon-delivery-point-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dce3ed;
    border-radius: 12px;
    background: #fff;
    color: #172b4d;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ozon-delivery-point-card:hover:not(:disabled) {
    border-color: #0b5fff;
    box-shadow: 0 5px 18px rgba(10, 70, 180, .10);
    transform: translateY(-1px);
}
.ozon-delivery-point-card.is-selected {
    border-color: #0b5fff;
    box-shadow: inset 0 0 0 1px #0b5fff;
}
.ozon-delivery-point-card.is-disabled {
    background: #fafbfc;
    opacity: .72;
    cursor: not-allowed;
}
.ozon-delivery-point-card.is-loading { opacity: .55; }
.ozon-delivery-point-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}
.ozon-delivery-point-type,
.ozon-delivery-point-selected {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f0f4f9;
    color: #60718a;
    font-size: 10px;
    font-weight: 700;
}
.ozon-delivery-point-selected {
    background: #e8f1ff;
    color: #0b5fff;
}
.ozon-delivery-point-address {
    color: #152b4b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}
.ozon-delivery-point-additional {
    margin-top: 5px;
    color: #77869b;
    font-size: 11px;
    line-height: 1.35;
}
.ozon-delivery-point-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin-top: 10px;
    color: #5f7088;
    font-size: 11px;
}
.ozon-delivery-point-cost {
    color: #0d7c43;
    font-weight: 700;
}
.ozon-delivery-point-reason {
    margin-top: 9px;
    color: #a15c00;
    font-size: 11px;
    line-height: 1.35;
}
@media (max-width: 767px) {
    .ozon-delivery-pickup-inline { margin-left: 0; }
    .ozon-delivery-modal-backdrop { padding: 0; align-items: flex-end; }
    .ozon-delivery-modal-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }
    .ozon-delivery-point-results { grid-template-columns: 1fr; }
    .ozon-delivery-modal-header { padding: 15px 16px; }
    .ozon-delivery-modal-title { font-size: 17px; }
    .ozon-delivery-modal-search { padding: 13px 16px 10px; }
    .ozon-delivery-modal-body { padding: 12px 16px 18px; }
}

.ozon-delivery-shipping-item:has(input[value="ozon-delivery.ozon-delivery"]:disabled) {
    cursor: pointer;
}
.ozon-delivery-shipping-item:has(input[value="ozon-delivery.ozon-delivery"]:disabled) .ozon-delivery-pickup-inline {
    opacity: 1;
}


/* oCheckout 1.x compatibility: the method card is a flex label and is replaced
   through AJAX. Keep our picker as a full-width second line inside that card. */
.ocheckout-page .ock-method .ozon-delivery-pickup-inline {
    flex: 0 0 100%;
    width: 100%;
    margin: 2px 0 0 0;
    padding: 10px 12px;
}
.ocheckout-page .ock-method.ozon-delivery-shipping-item {
    align-items: center;
}
.ocheckout-page .ock-method .ozon-delivery-pickup-button {
    position: relative;
    z-index: 2;
}
@media (max-width: 480px) {
    .ocheckout-page .ock-method .ozon-delivery-pickup-inline {
        margin-left: 0;
        padding: 10px;
    }
    .ocheckout-page .ock-method .ozon-delivery-pickup-button {
        width: 100%;
    }
}

/* ===== Ozon Delivery v1.1.5: map-only high-performance picker ===== */
.ozon-delivery-modal-dialog {
    width: min(980px, 100%);
    max-height: min(820px, calc(100vh - 32px));
}
.ozon-delivery-modal-body {
    min-height: 420px;
    overflow: hidden;
    padding: 12px 20px 20px;
}
.ozon-delivery-point-state {
    min-height: 20px;
    margin-bottom: 8px;
}
.ozon-delivery-map-wrap {
    position: relative;
    width: 100%;
    min-height: 520px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    overflow: hidden;
    background: #eef3f8;
}
.ozon-delivery-point-map {
    width: 100%;
    height: 520px;
    background: #eef3f8;
}
.ozon-delivery-map-message {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    display: none;
    padding: 9px 12px;
    border: 1px solid #dfe6ef;
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    color: #65758b;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 4px 18px rgba(15,35,65,.10);
}
.ozon-delivery-map-balloon {
    min-width: 230px;
    max-width: 310px;
    color: #172b4d;
    font-family: Arial, sans-serif;
}
.ozon-delivery-map-balloon-type {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #0b5fff;
    font-size: 10px;
    font-weight: 700;
}
.ozon-delivery-map-balloon-address {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}
.ozon-delivery-map-balloon-meta,
.ozon-delivery-map-balloon-reason {
    margin-top: 7px;
    color: #697b92;
    font-size: 11px;
    line-height: 1.4;
}
.ozon-delivery-map-balloon-reason { color: #a15c00; }
.ozon-delivery-map-select {
    width: 100%;
    margin-top: 12px;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: #0b5fff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.ozon-delivery-map-select:hover,
.ozon-delivery-map-select:focus { background: #004fd8; }
/* The v1.1.5 modal no longer creates the right-side point list. Hide a stale
   list too if an older cached modal happened to exist before the refresh. */
.ozon-delivery-list-column,
.ozon-delivery-point-results { display: none !important; }
@media (max-width: 767px) {
    .ozon-delivery-modal-dialog { max-height: 94vh; }
    .ozon-delivery-modal-body { min-height: 360px; padding: 10px 12px 14px; }
    .ozon-delivery-map-wrap { min-height: 62vh; border-radius: 12px; }
    .ozon-delivery-point-map { height: 62vh; min-height: 380px; }
}
