costco-grocery-list/frontend/src/styles/ConfirmBuyModal.css
2026-01-01 22:55:39 -08:00

159 lines
2.4 KiB
CSS

.confirm-buy-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
animation: fadeIn 0.2s ease-out;
}
.confirm-buy-modal {
background: white;
padding: 2em;
border-radius: 12px;
max-width: 450px;
width: 90%;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
animation: slideUp 0.3s ease-out;
}
.confirm-buy-modal h2 {
margin: 0 0 0.5em 0;
font-size: 1.5em;
color: #333;
text-align: center;
}
.confirm-buy-item-name {
margin: 0 0 1.5em 0;
font-size: 1.1em;
color: #007bff;
font-weight: 600;
text-align: center;
}
.confirm-buy-quantity-section {
margin: 2em 0;
}
.confirm-buy-label {
margin: 0 0 1em 0;
font-size: 1em;
color: #555;
text-align: center;
}
.confirm-buy-counter {
display: flex;
align-items: center;
justify-content: center;
gap: 1em;
}
.confirm-buy-counter-btn {
width: 50px;
height: 50px;
border: 2px solid #007bff;
border-radius: 8px;
background: white;
color: #007bff;
font-size: 1.8em;
font-weight: bold;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
padding: 0;
}
.confirm-buy-counter-btn:hover:not(:disabled) {
background: #007bff;
color: white;
}
.confirm-buy-counter-btn:disabled {
border-color: #ccc;
color: #ccc;
cursor: not-allowed;
}
.confirm-buy-counter-display {
width: 80px;
height: 50px;
border: 2px solid #ddd;
border-radius: 8px;
text-align: center;
font-size: 1.5em;
font-weight: bold;
color: #333;
background: #f8f9fa;
}
.confirm-buy-counter-display:focus {
outline: none;
border-color: #007bff;
}
.confirm-buy-actions {
display: flex;
gap: 1em;
margin-top: 2em;
}
.confirm-buy-cancel,
.confirm-buy-confirm {
flex: 1;
padding: 0.9em;
border: none;
border-radius: 8px;
font-size: 1em;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.confirm-buy-cancel {
background: #f0f0f0;
color: #333;
}
.confirm-buy-cancel:hover {
background: #e0e0e0;
}
.confirm-buy-confirm {
background: #28a745;
color: white;
}
.confirm-buy-confirm:hover {
background: #218838;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideUp {
from {
transform: translateY(30px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}