.qoc-wrap {
    margin-top: 10px;
}

.qoc-btn {
    display: block;
    width: 100%;
    background: #3a7d44;
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.qoc-btn:hover {
    background: #2f6738;
}

#qoc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#qoc-overlay.qoc-open {
    display: flex;
}

.qoc-modal {
    background: #fff;
    border-radius: 10px;
    padding: 26px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.qoc-modal h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.qoc-sub {
    color: #666;
    font-size: 13px;
    margin-bottom: 18px;
}

.qoc-tiers {
    margin-bottom: 16px;
}

.qoc-tier-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.qoc-tier-row:last-child {
    margin-bottom: 0;
}

.qoc-tier-row input {
    margin: 0;
    flex-shrink: 0;
}

.qoc-tier-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: #f3f3f3;
    flex-shrink: 0;
}

.qoc-tier-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.qoc-tier-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.qoc-tier-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.qoc-tier-badge,
.qoc-tier-best {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.qoc-tier-badge {
    background: #fdecec;
    color: #c0392b;
}

.qoc-tier-best {
    background: #eaf5ec;
    color: #3a7d44;
}

.qoc-tier-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
    flex-shrink: 0;
}

.qoc-tier-before {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.qoc-tier-now {
    font-weight: 700;
    font-size: 14px;
    color: #3a7d44;
}

.qoc-tier-row-selected {
    border-color: #3a7d44;
    background: #f6f8f5;
}

.qoc-summary {
    background: #f6f8f5;
    border: 1px solid #e2e8de;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.qoc-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: #444;
}

.qoc-summary-total {
    border-top: 1px solid #dfe6db;
    margin-top: 6px;
    padding-top: 8px;
    font-weight: 700;
    color: #222;
    font-size: 15px;
}

.qoc-loading {
    color: #888;
    font-size: 13px;
}

.qoc-field {
    margin-bottom: 14px;
}

.qoc-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
}

.qoc-field input,
.qoc-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.qoc-field textarea {
    min-height: 70px;
    resize: vertical;
}

.qoc-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.qoc-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #999;
}

.qoc-error {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 12px;
}

.qoc-submit {
    width: 100%;
    background: #3a7d44;
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.qoc-submit:hover {
    background: #2f6738;
}

.qoc-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    #qoc-overlay {
        padding: 8px;
        align-items: flex-end;
    }

    .qoc-modal {
        padding: 18px 14px;
        max-height: 92vh;
        border-radius: 12px 12px 0 0;
    }

    .qoc-modal h3 {
        font-size: 18px;
    }

    .qoc-tier-row {
        gap: 8px;
        padding: 7px 8px;
    }

    .qoc-tier-img {
        width: 38px;
        height: 38px;
    }

    .qoc-tier-name {
        font-size: 13px;
    }

    .qoc-tier-now {
        font-size: 13px;
    }

    .qoc-tier-before {
        font-size: 11px;
    }

    .qoc-field input,
    .qoc-field textarea {
        font-size: 16px;
    }
}
