/* =========================================================
   EnjoyRoll Készlet Info – stílus
   ========================================================= */

/* --- Gomb a termékoldalon --- */
.enjoyroll-stock-info-block {
    margin: 20px 0;
    padding: 15px;
    background: #f7f9fb;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.enjoyroll-stock-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.enjoyroll-stock-info-btn:hover { background: #1d4ed8; }
.enjoyroll-stock-info-btn:active { transform: translateY(1px); }
.enjoyroll-stock-info-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}
.enjoyroll-stock-info-icon { font-size: 18px; }
.enjoyroll-stock-info-help {
    margin: 8px 0 0;
    font-size: 13px;
    color: #64748b;
}

/* --- Modal --- */
.enjoyroll-stock-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.enjoyroll-stock-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .65);
    backdrop-filter: blur(2px);
}
.enjoyroll-stock-modal-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
    padding: 28px;
    max-height: 90vh;
    overflow-y: auto;
    animation: enjoyroll-stock-in .2s ease-out;
}
@keyframes enjoyroll-stock-in {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.enjoyroll-stock-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
}
.enjoyroll-stock-modal-close:hover { color: #0f172a; }

.enjoyroll-stock-title {
    margin: 0 0 6px;
    font-size: 20px;
    color: #0f172a;
}
.enjoyroll-stock-product {
    margin: 0 0 18px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.enjoyroll-stock-info-text {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 18px;
}
.enjoyroll-stock-info-text p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #1e3a8a;
    line-height: 1.5;
}
.enjoyroll-stock-info-text p:last-child { margin-bottom: 0; }
.enjoyroll-stock-info-hint { color: #475569 !important; font-size: 12px !important; }

.enjoyroll-stock-field {
    display: block;
    margin-bottom: 12px;
}
.enjoyroll-stock-field span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}
.enjoyroll-stock-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}
.enjoyroll-stock-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.enjoyroll-stock-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #94a3b8;
}

/* --- Variáció lista --- */
.enjoyroll-stock-variations-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 0 4px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}
.enjoyroll-stock-variation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}
.enjoyroll-stock-variation-item:hover {
    border-color: #2563eb;
    background: #f8fafc;
}
.enjoyroll-stock-variation-item input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #2563eb;
}
.enjoyroll-stock-variation-item input[type="radio"]:checked ~ .enjoyroll-stock-variation-label {
    font-weight: 600;
    color: #1d4ed8;
}
.enjoyroll-stock-variation-item:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}
.enjoyroll-stock-variation-label {
    flex: 1;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.3;
}
.enjoyroll-stock-variation-sku {
    font-size: 11px;
    color: #64748b;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}

.enjoyroll-stock-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin: 10px 0;
}

.enjoyroll-stock-submit,
.enjoyroll-stock-close-btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
    margin-top: 8px;
}
.enjoyroll-stock-submit:hover,
.enjoyroll-stock-close-btn:hover { background: #1d4ed8; }
.enjoyroll-stock-submit:disabled { background: #94a3b8; cursor: not-allowed; }

/* --- Loading --- */
.enjoyroll-stock-step-loading {
    text-align: center;
    padding: 30px 0;
}
.enjoyroll-stock-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: enjoyroll-stock-spin 1s linear infinite;
}
@keyframes enjoyroll-stock-spin {
    to { transform: rotate(360deg); }
}

/* --- Eredmény --- */
.enjoyroll-stock-step-result {
    text-align: center;
}
.enjoyroll-stock-result-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 12px;
}
.enjoyroll-stock-result-title {
    margin: 0 0 12px;
    font-size: 22px;
    color: #0f172a;
}
.enjoyroll-stock-result-message {
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.enjoyroll-stock-result-message strong { color: #0f172a; }

.enjoyroll-stock-result-success .enjoyroll-stock-result-title { color: #059669; }
.enjoyroll-stock-result-pending .enjoyroll-stock-result-title { color: #2563eb; }

/* --- Mobil --- */
@media (max-width: 549px) {
    .enjoyroll-stock-modal-box {
        padding: 22px 18px;
    }
    .enjoyroll-stock-title { font-size: 18px; }
    .enjoyroll-stock-result-title { font-size: 19px; }
}