/* AJÁNLAT ÖSSZESÍTŐ MODAL */
.summary-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.summary-modal.hidden {
    display: none;
}

.summary-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.summary-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Bezárás gomb */
.summary-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f4;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.summary-close-btn:hover {
    background: #e7e5e4;
    transform: rotate(90deg);
}

.summary-close-btn svg {
    color: #57534e;
}

/* Fejléc */
.summary-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid #e7e5e4;
}

.summary-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #292524;
    font-weight: 700;
}

/* Tartalmi rész (scroll) */
.summary-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.summary-section {
    margin-bottom: 2rem;
}

.summary-section h3 {
    font-size: 1.25rem;
    color: #292524;
    margin-bottom: 1rem;
    font-weight: 600;
    border-left: 4px solid #57534e;
    padding-left: 1rem;
}

/* Ügyfél adatok */
.customer-info {
    background: #f5f5f4;
    padding: 1.5rem;
    border-radius: 8px;
}

.customer-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.customer-info-item:last-child {
    margin-bottom: 0;
}

.customer-info-item svg {
    color: #57534e;
    flex-shrink: 0;
}

.customer-info-label {
    font-weight: 600;
    color: #57534e;
    min-width: 80px;
}

.customer-info-value {
    color: #292524;
}

/* Anyag összesítő */
.selected-material-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    background: #f5f5f4;
    padding: 1.5rem;
    border-radius: 8px;
    align-items: center;
}

.material-summary-image {
    width: auto;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e7e5e4;
}

.material-summary-info h4 {
    font-size: 1.25rem;
    color: #292524;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.material-summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #57534e;
    font-size: 0.875rem;
}

.material-summary-price {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #292524;
}

/* Párkányok összesítő */
.windowsills-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.windowsill-summary-item {
    background: #f5f5f4;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #57534e;
}

.windowsill-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.windowsill-summary-specs {
    flex: 1;
}

.windowsill-quantity {
    font-size: 1.5rem;
    font-weight: 700;
    color: #57534e;
    margin-right: 0.5rem;
}

.windowsill-dimensions {
    font-size: 1.25rem;
    font-weight: 600;
    color: #292524;
    margin-bottom: 0.25rem;
}

.windowsill-indoor-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #57534e;
    font-weight: 500;
}

.windowsill-summary-price {
    text-align: right;
    font-size: 1.25rem;
    font-weight: 700;
    color: #292524;
    white-space: nowrap;
}

/* Extrák lista */
.extras-summary-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e7e5e4;
}

.extras-summary-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #57534e;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.extra-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #57534e;
}

.extra-summary-name {
    flex: 1;
}

.extra-summary-price {
    font-weight: 600;
    color: #292524;
    margin-left: 1rem;
}

.extras-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid #d6d3d1;
    font-weight: 600;
    color: #292524;
}

/* Végösszeg */
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #292524;
    color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.total-label {
    font-size: 1.25rem;
    font-weight: 600;
}

.total-amount {
    font-size: 2rem;
    font-weight: 700;
}

/* Feltételek */
.terms-section {
    margin-bottom: 0;
}

.terms-box {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 1.5rem;
}

.terms-box p {
    margin: 0 0 0.75rem 0;
    color: #78716c;
    font-size: 0.875rem;
    line-height: 1.6;
}

.terms-box p:last-child {
    margin-bottom: 0;
}

.terms-box strong {
    color: #292524;
    font-weight: 600;
}

.terms-box ul {
    margin: 0.5rem 0 0.75rem 0;
    padding-left: 1.5rem;
    color: #78716c;
    font-size: 0.875rem;
    line-height: 1.6;
}

.terms-box ul li {
    margin-bottom: 0.5rem;
}

.terms-box ul li:last-child {
    margin-bottom: 0;
}

.terms-box ul ul {
    margin-top: 0.25rem;
    margin-bottom: 0;
}


/* Gombok */
.summary-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid #e7e5e4;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    background: #f5f5f4;
    border-radius: 0 0 16px 16px;
}

.summary-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reject-btn {
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #fecaca;
}

.reject-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    transform: translateY(-2px);
}

.accept-btn {
    background: #22c55e;
    color: white;
    border: 2px solid #16a34a;
}

.accept-btn:hover {
    background: #16a34a;
    border-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Reszponzív */
@media (max-width: 768px) {
    .summary-modal {
        padding: 0;
    }
    
    .summary-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .summary-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .summary-header h2 {
        font-size: 1.5rem;
        padding-right: 2rem;
    }
    
    .summary-body {
        padding: 1.5rem 1rem;
    }
    
    .selected-material-summary {
        grid-template-columns: 1fr;
    }
    
    .material-summary-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .windowsill-summary-header {
        flex-direction: column;
    }
    
    .windowsill-summary-price {
        text-align: left;
        margin-top: 0.5rem;
    }
    
    .summary-footer {
        flex-direction: column;
        padding: 1rem;
    }
    
    .summary-btn {
        width: 100%;
    }
    
    .total-label {
        font-size: 1.125rem;
    }
    
    .total-amount {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .customer-info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .customer-info-label {
        min-width: auto;
    }
}

/* FRISSÍTETT GOMBOK - 3 DARAB */
/* Vissza gomb - Piros */
.back-btn {
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #fecaca;
}

.back-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    transform: translateY(-2px);
}

/* Ajánlat küldése - Narancs */
.send-btn {
    background: #fed7aa;
    color: #c2410c;
    border: 2px solid #fdba74;
}

.send-btn:hover {
    background: #fdba74;
    border-color: #fb923c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}