.opc-page {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.opc-main {
    display: grid;
    gap: 18px;
}

.opc-card {
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    padding: 18px;
}

.opc-card h2 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.2;
}

.opc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.opc-fields label,
.opc-field {
    display: grid;
    gap: 6px;
}

.opc-autocomplete-wrapper {
    position: relative;
}

.opc-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #c4c4c4;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    max-height: 220px;
    overflow-y: auto;
}

.opc-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid #f3f3f3;
    transition: background 0.15s ease, color 0.15s ease;
}

.opc-autocomplete-item:last-child {
    border-bottom: none;
}

.opc-autocomplete-item:hover,
.opc-autocomplete-item.selected {
    background: #f0f4f8;
    color: #1e3a8a;
    font-weight: 500;
}

.opc-fields input,
.opc-fields select {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #c4c4c4;
    border-radius: 4px;
}

.opc-np-wrapper {
    align-content: start;
}

.opc-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.opc-list {
    margin-bottom: 14px;
}

.opc-options {
    display: grid;
    gap: 8px;
}

.opc-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    padding: 9px 10px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.opc-option:hover,
.opc-option.active {
    border-color: #2563eb;
    background-color: #f8faff;
}

.opc-option .price {
    font-weight: 600;
}

.opc-muted {
    color: #6f6f6f;
}

.opc-message {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border-radius: 6px;
    display: none;
}

.opc-message.error,
.opc-message.success {
    display: block;
}

.opc-message.error {
    background: #ffe8e8;
    color: #9e2020;
}

.opc-message.success {
    background: #e9f9eb;
    color: #1b6f2a;
}

.opc-total-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}

.opc-total-row.grand {
    border-top: 1px solid #ececec;
    margin-top: 8px;
    padding-top: 10px;
    font-weight: 700;
}

.sticky {
    position: sticky;
    top: 20px;
}

@media (max-width: 980px) {
    .opc-page {
        grid-template-columns: 1fr;
    }

    .opc-fields {
        grid-template-columns: 1fr;
    }
}

.opc-np-types{display:flex;gap:12px;margin:8px 0}
.opc-np-types label{display:flex;align-items:center;gap:4px}
