.coupon-grid { display: grid; grid-template-columns: repeat(3, 417.5px); gap: 16px 10px; justify-content: center; width: 100%; max-width: 900px; padding: 0; margin-left: 300px; } .coupon-item { position: relative; width: 100%; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; cursor: pointer; padding: 16px; background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 47%, rgba(0, 0, 0, 0.808) 77%, rgba(0, 0, 0, 0.773) 100%); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); z-index: 0; max-height: 350px; } .coupon-item:hover { z-index: 10; max-height: 500px; box-shadow: none; border: 2px solid white; box-sizing: border-box; } .coupon-item .css-gsjzcg { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; pointer-events: none; opacity: 0; } .coupon-item:hover .css-gsjzcg { max-height: 300px; pointer-events: auto; opacity: 1; } .css-1kgakwq { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .css-1alou07 { width: 100%; height: auto; filter: brightness(1.1); object-fit: contain; margin-bottom: 12px; } .css-cut7kz { font-size: 1rem; font-weight: bold; margin-bottom: 6px; color: white; } .css-k36ljx { font-size: 0.9rem; color: #ccc; margin-bottom: 12px; } .css-95g4uk, .css-a0y2e3 { font-size: 0.9rem; margin-bottom: 6px; } .MuiChip-root { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 16px; font-size: 0.8rem; } .remaining-count { color: red; font-weight: bold; } .MuiChip-filledSecondary { background-color: transparent; border: 1px solid rgba(145, 158, 171, 0.3); color: white; text-transform: uppercase; font-weight: bold; } .MuiChip-filledDefault { transition: background-color 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(145, 158, 171, 0.3); overflow: hidden; text-overflow: ellipsis; padding-left: 12px; padding-right: 12px; white-space: nowrap; } .MuiChip-filledDefault .MuiChip-label { color: white !important; } .price-container { margin-top: 4px; display: flex; align-items: center; gap: 8px; } .price-label { font-size: 1rem; font-weight: 500; line-height: 1.5; color: rgb(255, 255, 255); } #coupon-popup { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.75); display: flex; justify-content: center; align-items: center; z-index: 9999; visibility: visible; opacity: 1; transition: opacity 0.3s ease; } #coupon-popup.hidden { visibility: hidden; opacity: 0; pointer-events: none; } #coupon-popup .popup-content { padding: 32px; text-align: center; justify-content: center; background-color: rgb(33, 30, 31); color: rgb(255, 255, 255); background-image: none; position: relative; overflow-y: auto; display: flex; flex-direction: column; max-height: calc(100% - 64px); max-width: 600px; box-shadow: rgba(0, 0, 0, 0.24) 0px 0px 4px 0px, rgba(0, 0, 0, 0.24) 0px 24px 48px 0px; transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1); border-radius: 8px; margin: 32px; } #popup-image { width: 100%; height: auto; border-radius: 6px; margin-bottom: 15px; object-fit: contain; } #popup-title { font-size: 1.5rem; margin-bottom: 10px; font-weight: bold; color: #fff; } #popup-status, #popup-remaining, #popup-price, #popup-type, #popup-id, #popup-current { font-size: 0.9rem; margin-bottom: 6px; color: #ccc; } #popup-description { margin: 15px 0; font-size: 1rem; line-height: 1.3; color: #ddd; } #coupon-popup .popup-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; } #coupon-popup button { padding: 8px 16px; border: none; border-radius: 5px; font-size: 1rem; cursor: pointer; transition: background-color 0.25s ease; user-select: none; } #cancel-popup { background-color: #444; color: #eee; border: 1px solid #666; } #cancel-popup:hover { background-color: #555; } #redeem-popup { background-color: #2979ff; color: white; box-shadow: 0 2px 6px rgba(41, 121, 255, 0.7); } #redeem-popup:hover { background-color: #1565c0; box-shadow: 0 4px 12px rgba(21, 101, 192, 0.9); } .quantity-input { padding: 12px 10px; border-radius: 5px; color: white; font-size: 14px; width: 100%; } .quantity-input input[type="text"] { padding: 8px 10px; border-radius: 5px; border: 1px solid #555; background-color: rgb(33, 30, 31); color: white; font-size: 14px; margin-bottom: 10px; text-align: center; transition: all 0.2s ease-in-out; } .quantity-input input:focus, .quantity-input input:not(:placeholder-shown) { background-color: rgb(33, 30, 31); border-color: #C24849; outline: none; text-align: left; padding-left: 0.75rem; } .quantity-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px #b8b8b8 inset !important; -webkit-text-fill-color: white !important; transition: background-color 5000s ease-in-out 0s; } .quantity-input-container { position: relative; width: 100%; background-color: rgb(33, 30, 31); } .quantity-label { position: absolute; left: 10px; top: 40%; transform: translateY(-50%); color: #b8b8b8; font-size: 14px; font-weight: 500; pointer-events: none; transition: 0.2s ease all; background-color: rgb(33, 30, 31); padding: 0 4px; } .quantity-input:focus+.quantity-label, .quantity-input:not(:placeholder-shown)+.quantity-label { top: 3px; left: 8px; font-size: 12px; color: #C24849; background-color: rgb(33, 30, 31); } .hidden { display: none !important; } #coupon-popup, #message-popup { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; } .popup-message { background-color: rgb(51, 49, 49); padding: 20px; border-radius: 8px; max-width: 400px; width: 90%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; } #message-text { margin-bottom: 10px; } .btn { background-color: rgb(194, 72, 73); color: white; border: none; border-radius: 5px; padding: 8px 16px; cursor: pointer; font-size: 1rem; transition: background-color 0.3s ease; } .btn:hover { background-color: rgb(172, 62, 63); } .wheel-option-group { display: none; } .wheel-options { display: flex; gap: 10px; margin-top: 10px; } .wheel-option { flex: 1; padding: 12px; border: 2px solid #ccc; border-radius: 8px; text-align: center; cursor: pointer; background-color: #0F0D0D; transition: all 0.2s ease-in-out; user-select: none; opacity: 0.5; } .wheel-option:hover { background-color: #0F0D0D; opacity: 0.8; } .wheel-option.selected { border-color: #70fa39d2; background-color: rgba(145, 158, 171, 0.12); font-weight: bold; opacity: 1; }