.eh-root {
    --eh-primary: #f97316;
    --eh-primary-dark: #ea580c;
    --eh-text: #111827;
    --eh-muted: #6b7280;
    --eh-border: #e5e7eb;
    --eh-bg: #ffffff;
    --eh-success: #16a34a;
    --eh-radius: 16px;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--eh-text);
    background: var(--eh-bg);
    border-radius: var(--eh-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,.10);
    padding: 28px;
    max-width: 620px;
    width: 100%;
    box-sizing: border-box;
}
.eh-root * { box-sizing: border-box; }

.eh-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 4px;
}
.eh-subtitle {
    color: var(--eh-muted);
    margin: 0 0 20px;
    font-size: .9rem;
}
.eh-grid-wrapper {
    height: 160px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-bottom: 12px;
}
.eh-grid-wrapper::-webkit-scrollbar { width: 5px; }
.eh-grid-wrapper::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.eh-grid-wrapper::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }

.eh-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 6px;
}
.eh-field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.eh-field select,
.eh-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--eh-border);
    border-radius: 10px;
    font-size: .95rem;
    background: #fff;
    color: var(--eh-text);
}
.eh-field select:focus,
.eh-field input:focus {
    outline: none;
    border-color: var(--eh-primary);
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.eh-field .eh-input-suffix {
    position: relative;
}
.eh-field .eh-input-suffix span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--eh-muted);
    font-size: .85rem;
    pointer-events: none;
}

.eh-result {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--eh-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.eh-result-label {
    font-weight: 700;
    font-size: .95rem;
    margin: 0;
}
.eh-result-sub {
    color: var(--eh-muted);
    font-size: .78rem;
    margin: 0 0 4px;
}
.eh-price {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1d4ed8;
    margin: 0;
}
.eh-delivery {
    color: var(--eh-success);
    font-size: .82rem;
    font-weight: 600;
    margin: 2px 0 0;
}
.eh-actions {
    display: flex;
    gap: 10px;
}
.eh-btn {
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.eh-btn-primary {
    background: var(--eh-primary);
    color: #fff;
}
.eh-btn-primary:hover { background: var(--eh-primary-dark); }
.eh-btn-outline {
    background: #fff;
    border: 1px solid var(--eh-border);
    color: var(--eh-text);
}
.eh-secure {
    text-align: center;
    color: var(--eh-muted);
    font-size: .75rem;
    margin-top: 18px;
}
.eh-loading, .eh-error {
    font-size: .85rem;
    color: var(--eh-muted);
    margin-top: 8px;
}
.eh-error { color: #dc2626; }

/* ---- Modal ---- */
.eh-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
}
.eh-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}
.eh-modal-box {
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
}

@media (max-width: 560px) {
    .eh-grid { grid-template-columns: 1fr; }
    .eh-result { flex-direction: column; align-items: stretch; }
    .eh-actions { flex-direction: column; }
}
