/* Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.4);
}
/* Confirmation */
.popup-confirmation {
background-color: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
margin: 10% auto; /* Adjusted margin for better vertical centering */
padding: 20px;
border: none;
max-width: 80%; /* Responsive width */
width: 400px; /* Default width */
border-radius: 10px;
text-align: center;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 
}
.popup-confirmation h2 {
margin-bottom: 10px;
}
.popup-confirmation p {
text-align: left; /* Align text to the left for better readability */
margin-bottom: 10px;
}
.close-confirmation {
color: #aaa;
position: relative; /* Changed position to relative */
float: right;
font-size: 28px;
font-weight: bold;
top: 0px; /* Added top for better positioning */
right: -10px; /* Added right for better positioning */
}
.close-confirmation:hover,
.close-confirmation:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
/* Input Fields */
.popup-confirmation input[type="text"],
.popup-confirmation input[type="date"] {
width: calc(100% - 22px);
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 4px;
}
/* Buttons */
.popup-confirmation button {
background-color: #10b981; /* Green */
color: white;
padding: 10px 20px;
margin: 10px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}

/* Loyalty info modal */
.loyalty-info-modal {
display: none;
align-items: center;
justify-content: center;
padding: 20px;
}

.loyalty-info-modal.show {
display: flex;
}

.loyalty-info-content {
position: relative;
background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 50%, #edf2ff 100%);
border: 1px solid #e5e7eb;
border-radius: 18px;
padding: 26px 26px 22px;
width: min(640px, 94vw);
max-height: 82vh;
overflow: auto;
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 8px 16px rgba(15, 23, 42, 0.12);
backdrop-filter: blur(6px);
}

.loyalty-info-title {
margin: 0 0 6px;
color: #111827;
font-size: 20px;
font-weight: 700;
}

.loyalty-info-balance {
margin: 0 0 12px;
color: #111827;
font-weight: 600;
}

.loyalty-info-body {
color: #374151;
line-height: 1.5;
}

.loyalty-info-body h4 {
margin: 12px 0 8px;
font-size: 16px;
color: #1f2937;
}

.loyalty-info-list {
margin: 0;
padding-left: 18px;
display: flex;
flex-direction: column;
gap: 8px;
color: #0f172a;
list-style: none;
padding-left: 0;
}

.loyalty-info-list li {
display: grid;
grid-template-columns: 1fr auto auto;
gap: 10px;
align-items: center;
padding: 12px 14px;
border: 1px solid #e5e7eb;
border-radius: 12px;
background: rgba(255, 255, 255, 0.9);
box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.loyalty-reward-label {
font-weight: 700;
color: #0f172a;
}

.loyalty-reward-meta {
font-size: 14px;
color: #4b5563;
text-align: right;
}

.loyalty-reward-points {
justify-self: end;
padding: 6px 10px;
border-radius: 999px;
background: linear-gradient(135deg, #4f46e5, #7c3aed);
color: #fff;
font-weight: 700;
font-size: 13px;
box-shadow: 0 6px 12px rgba(76, 29, 149, 0.25);
}

.loyalty-reward-hidden {
display: none;
}

.loyalty-info-note {
margin: 14px 0 0;
font-size: 13px;
color: #6b7280;
}

.loyalty-toggle-btn {
display: none;
margin: 10px 0 4px;
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px 14px;
border-radius: 10px;
border: 1px solid #d1d5db;
background: #f8fafc;
color: #1f2937;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}

.loyalty-toggle-btn:hover {
background: #eef2ff;
border-color: #c7d2fe;
}

.loyalty-toggle-btn:focus-visible {
outline: 2px solid #4f46e5;
outline-offset: 2px;
}

.modal-close {
position: absolute;
top: 12px;
right: 12px;
width: 32px;
height: 32px;
border-radius: 999px;
border: 1px solid #e5e7eb;
background: #f8fafc;
color: #374151;
font-size: 18px;
line-height: 1;
cursor: pointer;
}

.modal-close:hover {
background: #eef2ff;
border-color: #c7d2fe;
}

.modal-close:focus-visible {
outline: 2px solid #4f46e5;
outline-offset: 2px;
}
