.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: 1em; 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-header { text-align: center; margin-bottom: 0.5em; } .confirm-buy-zone { font-size: 0.85em; color: #666; font-weight: 500; margin-bottom: 0.2em; text-transform: uppercase; letter-spacing: 0.5px; } .confirm-buy-item-name { margin: 0; font-size: 1.2em; color: #007bff; font-weight: 600; } .confirm-buy-image-section { display: flex; align-items: center; justify-content: center; gap: 0.6em; margin: 0.8em 0; } .confirm-buy-nav-btn { width: 35px; height: 35px; border: 2px solid #007bff; border-radius: 50%; 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; flex-shrink: 0; } .confirm-buy-nav-btn:hover:not(:disabled) { background: #007bff; color: white; } .confirm-buy-nav-btn:disabled { border-color: #ccc; color: #ccc; cursor: not-allowed; } .confirm-buy-image-container { width: 280px; height: 280px; display: flex; align-items: center; justify-content: center; border: 2px solid #ddd; border-radius: 8px; overflow: hidden; background: #f8f9fa; } .confirm-buy-image { max-width: 100%; max-height: 100%; object-fit: contain; } .confirm-buy-image-placeholder { font-size: 4em; color: #ccc; } .confirm-buy-quantity-section { margin: 0.8em 0; } .confirm-buy-counter { display: flex; align-items: center; justify-content: center; gap: 0.8em; } .confirm-buy-counter-btn { width: 45px; height: 45px; border: 2px solid #007bff; border-radius: 8px; background: white; color: #007bff; font-size: 1.6em; 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: 70px; height: 45px; border: 2px solid #ddd; border-radius: 8px; text-align: center; font-size: 1.4em; font-weight: bold; color: #333; background: #f8f9fa; } .confirm-buy-counter-display:focus { outline: none; border-color: #007bff; } .confirm-buy-actions { display: flex; gap: 0.6em; margin-top: 1em; } .confirm-buy-cancel, .confirm-buy-confirm { flex: 1; padding: 0.75em 0.5em; border: none; border-radius: 8px; font-size: 0.95em; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; } .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; } } /* Mobile optimizations */ @media (max-width: 480px) { .confirm-buy-modal { padding: 0.8em; } .confirm-buy-header { margin-bottom: 0.4em; } .confirm-buy-zone { font-size: 0.8em; } .confirm-buy-item-name { font-size: 1.1em; } .confirm-buy-image-section { gap: 0.5em; margin: 0.6em 0; } .confirm-buy-actions { gap: 0.5em; margin-top: 0.8em; } .confirm-buy-cancel, .confirm-buy-confirm { padding: 0.7em 0.4em; font-size: 0.9em; } .confirm-buy-image-container { width: 220px; height: 220px; } .confirm-buy-nav-btn { width: 30px; height: 30px; font-size: 1.6em; } .confirm-buy-counter-btn { width: 40px; height: 40px; font-size: 1.4em; } .confirm-buy-counter-display { width: 60px; height: 40px; font-size: 1.2em; } .confirm-buy-quantity-section { margin: 0.6em 0; } } @media (max-width: 360px) { .confirm-buy-modal { padding: 0.7em; } .confirm-buy-cancel, .confirm-buy-confirm { padding: 0.65em 0.3em; font-size: 0.85em; } .confirm-buy-image-container { width: 180px; height: 180px; } .confirm-buy-nav-btn { width: 28px; height: 28px; font-size: 1.4em; } }