
.oc-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .58);
}

.oc-overlay.oc-open {
    display: flex;
}

body.oc-no-scroll {
    overflow: hidden;
}

.oc-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 26px 24px 24px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    box-shadow: 0 12px 38px rgba(0, 0, 0, .24);
    font-family: Arial, sans-serif;
}

.oc-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.oc-title {
    margin: 0 28px 18px 0;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

.oc-product {
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fafafa;
}

.oc-product-title {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.oc-product-price {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 700;
    color: #555;
}

.oc-label {
    display: block;
    margin: 13px 0 6px;
    font-size: 14px;
    font-weight: 700;
}

.oc-input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 9px 11px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 16px;
}

.oc-input:focus {
    outline: 2px solid rgba(51, 122, 183, .2);
    border-color: #66afe9;
}

.oc-submit {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 18px;
    padding: 10px 14px;
    border: 1px solid #2e6da4;
    border-radius: 4px;
    background: #337ab7;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.oc-submit:hover {
    background: #286090;
    border-color: #204d74;
}

.oc-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.oc-message {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.oc-message:empty {
    display: none;
}

.oc-error {
    color: #b00020;
}

.oc-success {
    color: #237a3b;
}

.oc-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

@media (max-width: 480px) {
    .oc-overlay {
        align-items: center;
        padding: 12px;
    }

    .oc-modal {
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 24px 18px calc(18px + env(safe-area-inset-bottom));
        border-radius: 12px;
    }

    .oc-title {
        font-size: 19px;
    }
}

/* Окно подтверждения успешного заказа */

.oc-success-view[hidden],
#oc-order-view[hidden] {
    display: none !important;
}

.oc-success-view {
    padding: 12px 2px 2px;
    text-align: center;
}

.oc-success-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e8f5eb;
    color: #278344;
    font-size: 30px;
    font-weight: 700;
}

.oc-success-title {
    margin: 0 0 12px;
    color: #333;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
}

.oc-success-text {
    margin: 0 0 10px;
    color: #444;
    font-size: 15px;
    line-height: 1.5;
}

.oc-success-phone {
    margin: 0 0 20px;
    color: #222;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.oc-success-button {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #2e6da4;
    border-radius: 4px;
    background: #337ab7;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.oc-success-button:hover {
    background: #286090;
    border-color: #204d74;
}

/* Примечание под номером телефона */

.oc-success-note {
    margin: -2px 0 20px;
    color: #777;
    font-size: 12px;
    line-height: 1.45;
}
