.ct-modal-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1050; visibility: hidden; transition: visibility 0.3s ease; } .ct-modal-wrapper.ct-panel-open { visibility: visible; } .ct-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(48, 14, 56, 0.45); opacity: 0; transition: opacity 0.3s ease; } .ct-modal-wrapper.ct-panel-open .ct-backdrop { opacity: 1; } .ct-panel { position: absolute; top: 0; left: 0; width: 100%; max-width: 440px; height: 100%; background: #FFFFFF; color: #1D151F; box-shadow: 4px 0 24px rgba(48, 14, 56, 0.15); transform: translateX(-100%); transition: transform 0.3s ease-in-out; display: flex; flex-direction: column; z-index: 1051; } .ct-modal-wrapper.ct-panel-open .ct-panel { transform: translateX(0); } .ct-panel-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid #E2D8E4; display: flex; align-items: center; justify-content: space-between; background: #FFFFFF; } .ct-title-text { font-size: 1.25rem; font-weight: 700; color: #7E1897; margin: 0; } .ct-header-close-btn { background: transparent; border: none; padding: 0.25rem; color: #735E78; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: color 0.2s, background-color 0.2s; } .ct-header-close-btn:hover { color: #1D151F; background-color: #F4E9F6; } .ct-panel-body { flex: 1 1 auto; overflow-y: auto; padding: 1.5rem; max-height: calc(100vh - 70px); } .ct-main-content { display: flex; flex-direction: column; min-height: 100%; } .ct-cart-items-wrapper { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; } .ct-cart-empty { text-align: center; color: #735E78; padding: 2.5rem 0; font-size: 0.95rem; } .ct-cart-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem; background: #F8F3F9; border: 1px solid #E2D8E4; border-radius: 8px; } .ct-cart-item-col-img { flex-shrink: 0; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: #FFFFFF; display: flex; align-items: center; justify-content: center; } .ct-item-img { width: 100%; height: 100%; object-fit: cover; } .ct-cart-item-col-info { flex: 1 1 auto; min-width: 0; } .ct-item-title { font-weight: 600; font-size: 0.95rem; color: #1D151F; margin-bottom: 0.25rem; line-height: 1.25; word-break: break-word; } .ct-item-price-unit { font-size: 0.85rem; color: #735E78; } .ct-cart-item-col-actions { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; } .ct-qty-control { display: inline-flex; align-items: center; border: 1px solid #E2D8E4; border-radius: 6px; background: #FFFFFF; overflow: hidden; } .ct-qty-btn { background: #FFFFFF; border: none; width: 26px; height: 28px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #7E1897; cursor: pointer; transition: background 0.15s; user-select: none; } .ct-qty-btn:hover { background: #F4E9F6; } .ct-qty-val { width: 26px; text-align: center; font-size: 0.85rem; font-weight: 600; color: #1D151F; } .ct-item-line-total { font-weight: 600; font-size: 0.9rem; color: #1D151F; min-width: 55px; text-align: right; } .ct-item-remove-btn { background: transparent; border: none; color: #735E78; cursor: pointer; padding: 4px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; transition: color 0.15s, background-color 0.15s; } .ct-item-remove-btn:hover { color: #AD36C8; background-color: #F4E9F6; } .ct-cart-footer-summary { margin-top: auto; padding-top: 1rem; border-top: 1px solid #E2D8E4; } .ct-subtotal-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 1.1rem; font-weight: 700; color: #1D151F; } .ct-subtotal-value { color: #7E1897; } .ct-btn-primary { background-color: #7E1897 !important; border-color: #7E1897 !important; color: #FFFFFF !important; font-weight: 600; padding: 0.75rem 1rem; border-radius: 6px; transition: background-color 0.2s; } .ct-btn-primary:hover, .ct-btn-primary:focus { background-color: #641378 !important; border-color: #641378 !important; } .ct-btn-continue { border-color: #E2D8E4 !important; color: #735E78 !important; font-weight: 600; } .ct-btn-continue:hover { background-color: #F4E9F6 !important; color: #1D151F !important; } .ct-checkout-section { padding-top: 1rem; } .ct-divider { border: 0; border-top: 1px solid #E2D8E4; margin: 1.25rem 0; opacity: 1; } .ct-checkout-title { font-size: 1.1rem; font-weight: 700; color: #7E1897; margin-bottom: 1rem; } .ct-checkout-breakdown { background: #F8F3F9; padding: 0.85rem; border-radius: 6px; border: 1px solid #E2D8E4; font-size: 0.9rem; } .ct-consent-label { font-size: 0.85rem; color: #1D151F; } .ct-consent-label a { color: #7E1897; text-decoration: underline; } .ct-error-msg { font-size: 0.82rem; color: #D32F2F; } .ct-success-screen { text-align: center; padding: 2rem 1rem; } .ct-success-icon { margin-bottom: 1rem; } .ct-success-title { font-size: 1.35rem; font-weight: 700; color: #7E1897; margin-bottom: 0.75rem; } .ct-success-text { color: #735E78; font-size: 0.95rem; line-height: 1.5; } .ct-toast-container { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 1090; display: flex; flex-direction: column; gap: 0.75rem; pointer-events: none; } .ct-toast { display: flex; align-items: center; gap: 0.85rem; width: 300px; max-width: calc(100vw - 2rem); background: #FFFFFF; border: 1px solid #E2D8E4; border-left: 4px solid #7E1897; border-radius: 8px; box-shadow: 0 4px 16px rgba(48, 14, 56, 0.12); padding: 0.75rem; pointer-events: auto; opacity: 0; transform: translateY(-10px); transition: opacity 0.25s ease, transform 0.25s ease; } .ct-toast.ct-toast-show { opacity: 1; transform: translateY(0); } .ct-toast-thumb { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #F8F3F9; } .ct-toast-thumb img { width: 100%; height: 100%; object-fit: cover; } .ct-toast-body { flex: 1 1 auto; min-width: 0; } .ct-toast-title { font-weight: 600; font-size: 0.85rem; color: #7E1897; } .ct-toast-desc { font-size: 0.8rem; color: #735E78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .badge-pill-cart { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.35rem; font-size: 0.75rem; font-weight: 700; border-radius: 999px; background-color: #7E1897; color: #FFFFFF; vertical-align: middle; margin-left: 0.25rem; } @media (max-width: 576px) { .ct-panel { width: 100%; max-width: 100%; } .ct-cart-item { flex-direction: column; align-items: stretch; gap: 0.5rem; } .ct-cart-item-col-img { width: 100%; height: 120px; } .ct-cart-item-col-info { text-align: center; } .ct-cart-item-col-actions { justify-content: space-between; border-top: 1px dashed #E2D8E4; padding-top: 0.5rem; width: 100%; } }