/* Rice-ler Elállási Funkció – Frontend CSS */

.riceler-elallas-container {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.riceler-elallas-header {
    background: #bc8157;
    color: #fff;
    padding: 32px 36px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.riceler-elallas-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #fff;
}

.riceler-elallas-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
    line-height: 1.5;
}

/* Steps */
.riceler-step {
    border: 1px solid #e0e0e0;
    border-top: none;
    background: #fff;
    transition: opacity 0.3s;
}

.riceler-step:last-of-type {
    border-radius: 0 0 12px 12px;
}

.riceler-step-locked {
    opacity: 0.45;
    pointer-events: none;
}

.riceler-step-locked.riceler-unlocked {
    opacity: 1;
    pointer-events: all;
}

.riceler-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.riceler-step-header h3 {
    margin: 0;
    font-size: 17px;
    color: #1a1a1a;
}

.riceler-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #bc8157;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.riceler-step-body {
    padding: 24px 28px;
}

/* Form elements */
.riceler-form-row {
    margin-bottom: 20px;
}

.riceler-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.riceler-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fff;
}

.riceler-input:focus {
    outline: none;
    border-color: #bc8157;
    box-shadow: 0 0 0 3px rgba(188, 129, 87, 0.18);
}

.riceler-input[readonly] {
    background: #f5f5f5;
    color: #666;
}

.riceler-textarea {
    min-height: 90px;
    resize: vertical;
}

.riceler-hint {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 12px;
}

/* Buttons */
.riceler-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.riceler-btn-primary {
    background: #bc8157;
    color: #fff;
}
.riceler-btn-primary:hover { background: #a86f49; color: #fff; }

.riceler-btn-secondary {
    background: #bc8157;
    color: #fff;
}
.riceler-btn-secondary:hover { background: #a86f49; color: #fff; }

.riceler-btn-danger {
    background: #dc2626;
    color: #fff;
}
.riceler-btn-danger:hover { background: #b91c1c; color: #fff; }

.riceler-btn-ghost {
    background: transparent;
    color: #555;
    border: 1.5px solid #ddd;
}
.riceler-btn-ghost:hover { background: #f5f5f5; }

.riceler-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.riceler-btn-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Termékek lista */
.riceler-termekek {
    margin-bottom: 20px;
}

.riceler-termek-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.riceler-termek-item:hover {
    border-color: #bc8157;
    background: #fbf4ef;
}

.riceler-termek-item.selected {
    border-color: #bc8157;
    background: #fbf4ef;
}

.riceler-termek-item.mar-elallva {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9f9f9;
}

.riceler-termek-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.riceler-termek-item.selected .riceler-termek-checkbox {
    background: #bc8157;
    border-color: #bc8157;
    color: #fff;
}

.riceler-termek-kep {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.riceler-termek-info {
    flex: 1;
}

.riceler-termek-nev {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}

.riceler-termek-meta {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.riceler-termek-tag {
    font-size: 11px;
    background: #fef2f2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

/* Összefoglaló */
.riceler-osszefoglalas {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.riceler-osszefoglalas h4 {
    margin: 0 0 12px;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.riceler-osszefoglalas table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.riceler-osszefoglalas td {
    padding: 6px 0;
    vertical-align: top;
}

.riceler-osszefoglalas td:first-child {
    color: #6b7280;
    width: 160px;
    font-weight: 500;
}

/* Nyilatkozat */
.riceler-nyilatkozat {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.riceler-checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.riceler-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #bc8157;
}

/* Messages */
.riceler-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
}

.riceler-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.riceler-message.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.riceler-message.info {
    background: #fbf4ef;
    border: 1px solid #e6c8b2;
    color: #8b5c3d;
}

/* Rendeles info */
.riceler-rendeles-info {
    background: #f0faf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #15803d;
    margin-bottom: 16px;
}

/* Success screen */
.riceler-success {
    text-align: center;
    padding: 48px 32px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: #fff;
}

.riceler-success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.riceler-success h3 {
    font-size: 22px;
    color: #15803d;
    margin: 0 0 12px;
}

.riceler-success-info {
    background: #f0fdf4;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 24px;
    text-align: left;
}

.riceler-success-info p {
    margin: 6px 0;
    font-size: 14px;
    color: #374151;
}

/* My Account gomb a rendelés részletek oldalon */
.riceler-order-elallas-section {
    margin-top: 32px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.riceler-order-elallas-title {
    font-size: 16px;
    margin: 0 0 10px;
}

.riceler-elallas-order-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 20px;
    background: #dc2626;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.riceler-elallas-order-btn:hover {
    background: #b91c1c;
    color: #fff;
}

/* Lábléc link */
.riceler-elallas-gomb-link {
    color: inherit;
    text-decoration: underline;
    font-size: 13px;
}

/* Loading */
.riceler-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: riceler-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes riceler-spin {
    to { transform: rotate(360deg); }
}

/* My Account elállások lista */
.riceler-myaccount-elallas {
    padding: 0;
}

.riceler-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.riceler-badge-beerkezett  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.riceler-badge-feldolgozas { background: #fffbeb; color: #d97706; border: 1px solid #fcd34d; }
.riceler-badge-befejezve   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.riceler-badge-elutasitva  { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; }

@media (max-width: 600px) {
    .riceler-elallas-header { padding: 24px 20px; }
    .riceler-step-body { padding: 18px 16px; }
    .riceler-btn-row { flex-direction: column; }
    .riceler-btn { width: 100%; justify-content: center; }
}
