- Replace hand-rolled loading/error/empty markup with shared app-skeleton, app-empty-state, and app-button across catalog, product details, cart, compare, wishlist, and the public static-page renderer - Fix hardcoded hex colors that bypassed theme CSS variables (catalog, product details), restoring multi-tenant theme correctness - Remove ~1100 lines of dead "alt" cart theme CSS (never applied by the template) from cart.component.scss, bringing it back under the 40kB build budget (89.49kB -> 59.39kB cart-component chunk) - Swap legacy global .btn/.btn-ghost/.btn-primary classes for app-button in compare and wishlist empty/toolbar actions
1158 lines
23 KiB
SCSS
1158 lines
23 KiB
SCSS
// Base styles (platform theme)
|
||
.cart-container.platform {
|
||
max-width: 1200px;
|
||
margin: 0 auto;
|
||
padding: 24px;
|
||
min-height: calc(100vh - 200px);
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
}
|
||
|
||
.cart-container.platform .cart-header {
|
||
margin-bottom: 28px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
|
||
h1 {
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
font-size: var(--font-size-4xl, 2rem);
|
||
font-weight: var(--font-weight-bold, 700);
|
||
color: var(--text-primary);
|
||
margin: 0;
|
||
}
|
||
|
||
.clear-cart-btn {
|
||
padding: 10px 20px;
|
||
background: transparent;
|
||
color: var(--text-secondary);
|
||
border: 1px solid var(--border-color);
|
||
border-radius: var(--radius-lg, 13px);
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
font-size: var(--font-size-base, 0.875rem);
|
||
font-weight: var(--font-weight-semibold, 600);
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
|
||
svg {
|
||
display: block;
|
||
width: 16px;
|
||
height: 16px;
|
||
}
|
||
|
||
&:hover {
|
||
background: #fef2f2;
|
||
border-color: #ef4444;
|
||
color: #ef4444;
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
&:active {
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
}
|
||
|
||
.empty-cart {
|
||
min-height: 320px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.cart-content {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr) 350px;
|
||
gap: 24px;
|
||
align-items: start;
|
||
}
|
||
|
||
.cart-items {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.cart-item-wrapper {
|
||
position: relative;
|
||
overflow: hidden;
|
||
border-radius: var(--radius-md, 12px);
|
||
transition: transform 0.3s ease;
|
||
|
||
&.swiped {
|
||
.cart-item {
|
||
transform: translateX(-80px);
|
||
}
|
||
|
||
.delete-btn-mobile {
|
||
opacity: 1;
|
||
pointer-events: all;
|
||
}
|
||
}
|
||
}
|
||
|
||
// platform cart item
|
||
.cart-container.platform .cart-item {
|
||
display: flex;
|
||
gap: 20px;
|
||
background: white;
|
||
border: 1px solid var(--border-color);
|
||
border-radius: var(--radius-lg, 13px);
|
||
padding: 20px;
|
||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||
position: relative;
|
||
z-index: 1;
|
||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
|
||
|
||
&:hover {
|
||
border-color: #a1b4b5;
|
||
box-shadow: 0 4px 12px rgba(73, 118, 113, 0.1);
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
.item-image {
|
||
flex-shrink: 0;
|
||
width: 100px;
|
||
height: 100px;
|
||
border-radius: var(--radius-lg, 13px);
|
||
overflow: hidden;
|
||
background: var(--bg-secondary);
|
||
border: 1px solid var(--border-color);
|
||
|
||
img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: contain;
|
||
background: white;
|
||
display: block;
|
||
padding: 6px;
|
||
transition: transform 0.3s ease;
|
||
}
|
||
|
||
&:hover img {
|
||
transform: scale(1.05);
|
||
}
|
||
}
|
||
|
||
.item-info {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.item-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: flex-start;
|
||
gap: 12px;
|
||
}
|
||
|
||
.item-name {
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
font-size: var(--font-size-lg, 1rem);
|
||
font-weight: var(--font-weight-semibold, 600);
|
||
color: var(--text-primary);
|
||
text-decoration: none;
|
||
transition: color 0.2s;
|
||
|
||
&:hover {
|
||
color: var(--primary-color);
|
||
}
|
||
}
|
||
|
||
.remove-btn {
|
||
flex-shrink: 0;
|
||
padding: 6px;
|
||
background: transparent;
|
||
border: none;
|
||
color: #a1b4b5;
|
||
cursor: pointer;
|
||
border-radius: var(--radius-sm, 8px);
|
||
transition: all 0.2s;
|
||
|
||
&:hover {
|
||
background: #fef2f2;
|
||
color: #ef4444;
|
||
}
|
||
}
|
||
|
||
.item-description {
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
font-size: var(--font-size-base, 0.875rem);
|
||
color: var(--text-secondary);
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.cart-item-variants {
|
||
display: flex;
|
||
gap: 10px;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
margin-top: 4px;
|
||
|
||
.cart-variant {
|
||
font-size: var(--font-size-sm, 0.8125rem);
|
||
color: var(--primary-color);
|
||
background: rgba(73, 118, 113, 0.08);
|
||
padding: 3px 10px;
|
||
border-radius: 6px;
|
||
font-weight: var(--font-weight-medium, 500);
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.cart-colour-swatch {
|
||
display: inline-block;
|
||
width: 16px;
|
||
height: 16px;
|
||
border-radius: 50%;
|
||
border: 1px solid rgba(0, 0, 0, 0.15);
|
||
vertical-align: middle;
|
||
}
|
||
}
|
||
|
||
.item-footer {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-top: auto;
|
||
}
|
||
}
|
||
|
||
// Pricing & Quantity - shared
|
||
.item-pricing {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
|
||
.price-with-discount {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.original-price {
|
||
font-size: var(--font-size-sm, 0.8125rem);
|
||
color: #9ca3af;
|
||
text-decoration: line-through;
|
||
}
|
||
|
||
.current-price {
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
font-size: var(--font-size-xl, 1.125rem);
|
||
font-weight: var(--font-weight-bold, 700);
|
||
color: var(--primary-color);
|
||
}
|
||
|
||
.delivery-price {
|
||
font-size: var(--font-size-sm, 0.8125rem);
|
||
font-weight: var(--font-weight-medium, 500);
|
||
color: var(--text-secondary);
|
||
}
|
||
}
|
||
|
||
// platform quantity controls
|
||
.cart-container.platform .quantity-controls {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
background: var(--bg-secondary);
|
||
border-radius: var(--radius-lg, 13px);
|
||
padding: 4px 10px;
|
||
border: 1px solid var(--border-color);
|
||
|
||
.qty-btn {
|
||
width: 30px;
|
||
height: 30px;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--primary-color);
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: 50%;
|
||
transition: all 0.2s;
|
||
|
||
&:hover:not(:disabled) {
|
||
background: var(--primary-color);
|
||
color: white;
|
||
}
|
||
|
||
&:disabled {
|
||
opacity: 0.3;
|
||
cursor: not-allowed;
|
||
}
|
||
}
|
||
|
||
.qty-value {
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
font-size: var(--font-size-lg, 1rem);
|
||
font-weight: var(--font-weight-bold, 700);
|
||
color: var(--text-primary);
|
||
min-width: 24px;
|
||
text-align: center;
|
||
}
|
||
}
|
||
|
||
.delete-btn-mobile {
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
width: 80px;
|
||
background: #ef4444;
|
||
border: none;
|
||
color: white;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 0.3s ease;
|
||
border-radius: 0 12px 12px 0;
|
||
|
||
&:active {
|
||
background: #dc2626;
|
||
}
|
||
}
|
||
|
||
// platform Cart Summary
|
||
.cart-container.platform .cart-summary {
|
||
position: sticky;
|
||
top: 90px;
|
||
background: var(--bg-secondary);
|
||
border: 1px solid var(--border-color);
|
||
border-radius: var(--radius-lg, 13px);
|
||
padding: 28px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.15);
|
||
|
||
.summary-header h3 {
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
font-size: var(--font-size-3xl, 1.5rem);
|
||
font-weight: var(--font-weight-bold, 700);
|
||
color: var(--text-primary);
|
||
margin: 0 0 16px 0;
|
||
}
|
||
|
||
.summary-row {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
font-size: var(--font-size-md, 0.9375rem);
|
||
color: var(--text-secondary);
|
||
|
||
&.delivery {
|
||
display: flex;
|
||
}
|
||
|
||
&.total {
|
||
padding-top: 16px;
|
||
border-top: 1px solid var(--border-color);
|
||
font-size: var(--font-size-xl, 1.125rem);
|
||
font-weight: var(--font-weight-bold, 700);
|
||
color: var(--text-primary);
|
||
margin-top: 8px;
|
||
|
||
.total-price {
|
||
font-size: var(--font-size-3xl, 1.5rem);
|
||
color: var(--primary-color);
|
||
}
|
||
}
|
||
}
|
||
|
||
.payment-method-actions {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 10px;
|
||
margin-top: 8px;
|
||
}
|
||
|
||
.checkout-btn {
|
||
width: 100%;
|
||
padding: 16px;
|
||
background: var(--primary-color);
|
||
color: white;
|
||
border: none;
|
||
border-radius: var(--radius-lg, 13px);
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
font-size: var(--font-size-lg, 1rem);
|
||
font-weight: var(--font-weight-bold, 700);
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.15);
|
||
|
||
&:hover:not(:disabled) {
|
||
background: var(--primary-hover);
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 6px 16px rgba(73, 118, 113, 0.3);
|
||
}
|
||
|
||
&:active {
|
||
transform: translateY(0);
|
||
}
|
||
|
||
&:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|
||
}
|
||
|
||
.cart-login-gate {
|
||
margin-top: 16px;
|
||
padding: 20px;
|
||
border-radius: 14px;
|
||
background: rgba(42, 171, 238, 0.05);
|
||
border: 1px dashed rgba(42, 171, 238, 0.3);
|
||
text-align: center;
|
||
|
||
.login-gate-icon {
|
||
margin: 0 auto 10px;
|
||
width: 56px;
|
||
height: 56px;
|
||
border-radius: 50%;
|
||
background: rgba(42, 171, 238, 0.1);
|
||
color: #2AABEE;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.login-gate-title {
|
||
margin: 0 0 4px;
|
||
font-size: var(--font-size-lg, 1rem);
|
||
font-weight: var(--font-weight-bold, 700);
|
||
color: #1a1a1a;
|
||
}
|
||
|
||
.login-gate-desc {
|
||
margin: 0 0 16px;
|
||
font-size: var(--font-size-sm, 0.8125rem);
|
||
color: #6b7280;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.telegram-login-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 12px 24px;
|
||
border: none;
|
||
border-radius: 10px;
|
||
background: #2AABEE;
|
||
color: #fff;
|
||
font-size: var(--font-size-md, 0.9375rem);
|
||
font-weight: var(--font-weight-semibold, 600);
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
|
||
&:hover {
|
||
background: #229ED9;
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 4px 12px rgba(42, 171, 238, 0.3);
|
||
}
|
||
}
|
||
}
|
||
|
||
.card-payment-btn {
|
||
background: #1f2937;
|
||
|
||
&:hover:not(:disabled) {
|
||
background: #111827;
|
||
box-shadow: 0 6px 16px rgba(31, 41, 55, 0.28);
|
||
}
|
||
}
|
||
}
|
||
|
||
// Terms agreement - shared base
|
||
.terms-agreement {
|
||
margin-top: 12px;
|
||
|
||
.checkbox-container {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 10px;
|
||
cursor: pointer;
|
||
position: relative;
|
||
padding-left: 28px;
|
||
|
||
input[type="checkbox"] {
|
||
position: absolute;
|
||
opacity: 0;
|
||
cursor: pointer;
|
||
height: 0;
|
||
width: 0;
|
||
}
|
||
|
||
.checkmark {
|
||
position: absolute;
|
||
left: 0;
|
||
top: 2px;
|
||
height: 18px;
|
||
width: 18px;
|
||
background: white;
|
||
border: 2px solid #d1d5db;
|
||
border-radius: var(--radius-xs, 4px);
|
||
transition: all 0.2s;
|
||
|
||
&::after {
|
||
content: "";
|
||
position: absolute;
|
||
display: none;
|
||
left: 5px;
|
||
top: 2px;
|
||
width: 4px;
|
||
height: 8px;
|
||
border: solid white;
|
||
border-width: 0 2px 2px 0;
|
||
transform: rotate(45deg);
|
||
}
|
||
}
|
||
|
||
.terms-text {
|
||
font-size: var(--font-size-sm, 0.8125rem);
|
||
color: #6b7280;
|
||
line-height: 1.4;
|
||
|
||
a {
|
||
color: var(--primary-color);
|
||
text-decoration: none;
|
||
|
||
&:hover {
|
||
text-decoration: underline;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.delivery-warning {
|
||
margin: -4px 0 0;
|
||
padding: 10px 12px;
|
||
border-radius: 10px;
|
||
font-size: var(--font-size-sm, 0.8125rem);
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.cart-container.platform .cart-summary .delivery-warning {
|
||
color: #9a6700;
|
||
background: #fff8e8;
|
||
border: 1px solid #f1ddb2;
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
}
|
||
|
||
// platform checkbox colors
|
||
.cart-container.platform .terms-agreement .checkbox-container {
|
||
input[type="checkbox"]:checked ~ .checkmark {
|
||
background: var(--primary-color);
|
||
border-color: var(--primary-color);
|
||
|
||
&::after {
|
||
display: block;
|
||
}
|
||
}
|
||
|
||
.checkmark {
|
||
border: 2px solid var(--border-color);
|
||
border-radius: var(--radius-xs, 4px);
|
||
}
|
||
|
||
.terms-text {
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
font-size: var(--font-size-sm, 0.8125rem);
|
||
color: var(--text-secondary);
|
||
line-height: 1.5;
|
||
|
||
a {
|
||
color: var(--primary-color);
|
||
text-decoration: none;
|
||
font-weight: var(--font-weight-semibold, 600);
|
||
|
||
&:hover {
|
||
text-decoration: underline;
|
||
color: var(--primary-hover);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Payment modal styles
|
||
.payment-modal-overlay {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
background: rgba(0, 0, 0, 0.6);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 1000;
|
||
padding: 20px;
|
||
}
|
||
|
||
.payment-modal {
|
||
background: white;
|
||
border-radius: var(--radius-lg, 13px);
|
||
max-width: 500px;
|
||
width: 100%;
|
||
padding: 40px;
|
||
position: relative;
|
||
max-height: 90vh;
|
||
overflow-y: auto;
|
||
border: 1px solid var(--border-color);
|
||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
|
||
}
|
||
.close-modal-btn {
|
||
position: absolute;
|
||
top: 16px;
|
||
right: 16px;
|
||
width: 36px;
|
||
height: 36px;
|
||
border: none;
|
||
background: #f3f4f6;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
color: #6b7280;
|
||
z-index: 10;
|
||
|
||
&:hover {
|
||
background: #e5e7eb;
|
||
color: #1f2937;
|
||
transform: scale(1.1);
|
||
}
|
||
|
||
&:active {
|
||
transform: scale(0.95);
|
||
}
|
||
|
||
svg {
|
||
width: 20px;
|
||
height: 20px;
|
||
}
|
||
}
|
||
.close-modal-btn {
|
||
position: absolute;
|
||
top: 16px;
|
||
right: 16px;
|
||
width: 36px;
|
||
height: 36px;
|
||
border: none;
|
||
background: #f3f4f6;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
color: #6b7280;
|
||
z-index: 10;
|
||
|
||
&:hover {
|
||
background: #e5e7eb;
|
||
color: #1f2937;
|
||
transform: scale(1.1);
|
||
}
|
||
|
||
&:active {
|
||
transform: scale(0.95);
|
||
}
|
||
|
||
svg {
|
||
width: 20px;
|
||
height: 20px;
|
||
}
|
||
}
|
||
|
||
.payment-status-screen {
|
||
text-align: center;
|
||
|
||
h2 {
|
||
font-size: var(--font-size-3xl, 1.5rem);
|
||
margin: 20px 0 10px;
|
||
color: #1a1a1a;
|
||
}
|
||
|
||
p {
|
||
color: #6b7280;
|
||
margin: 0;
|
||
}
|
||
|
||
&.success {
|
||
.success-icon {
|
||
width: 80px;
|
||
height: 80px;
|
||
background: #10b981;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 3rem;
|
||
color: white;
|
||
margin: 0 auto 20px;
|
||
}
|
||
}
|
||
|
||
&.error {
|
||
.error-icon {
|
||
width: 80px;
|
||
height: 80px;
|
||
background: #f97316;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 3rem;
|
||
font-weight: var(--font-weight-bold, 700);
|
||
color: white;
|
||
margin: 0 auto 20px;
|
||
}
|
||
|
||
.payment-error-actions {
|
||
margin-top: 24px;
|
||
}
|
||
|
||
.retry-payment-btn {
|
||
padding: 14px 24px;
|
||
background: var(--primary-color);
|
||
color: white;
|
||
border: none;
|
||
border-radius: var(--radius-lg, 13px);
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
font-size: var(--font-size-lg, 1rem);
|
||
font-weight: var(--font-weight-bold, 700);
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
|
||
&:hover {
|
||
background: var(--primary-hover);
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 4px 12px rgba(73, 118, 113, 0.3);
|
||
}
|
||
}
|
||
}
|
||
|
||
&.timeout {
|
||
.timeout-icon {
|
||
font-size: 4rem;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.auto-close {
|
||
font-size: var(--font-size-sm, 0.8125rem);
|
||
margin-top: 20px;
|
||
}
|
||
}
|
||
}
|
||
|
||
.spinner-large,
|
||
.spinner-small {
|
||
width: 50px;
|
||
height: 50px;
|
||
border: 4px solid var(--border-color);
|
||
border-top: 4px solid var(--primary-color);
|
||
border-radius: 50%;
|
||
animation: spin 1s linear infinite;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.spinner-small {
|
||
width: 20px;
|
||
height: 20px;
|
||
border-width: 2px;
|
||
}
|
||
|
||
@keyframes spin {
|
||
0% { transform: rotate(0deg); }
|
||
100% { transform: rotate(360deg); }
|
||
}
|
||
|
||
.payment-active {
|
||
h2 {
|
||
text-align: center;
|
||
margin-bottom: 24px;
|
||
color: #1a1a1a;
|
||
}
|
||
|
||
.qr-section {
|
||
display: flex;
|
||
justify-content: center;
|
||
margin-bottom: 24px;
|
||
}
|
||
|
||
.qr-wrapper {
|
||
padding: 16px;
|
||
background: white;
|
||
border-radius: var(--radius-md, 12px);
|
||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.qr-code {
|
||
display: block;
|
||
width: 250px;
|
||
height: 250px;
|
||
}
|
||
|
||
.scan-line {
|
||
position: absolute;
|
||
top: 16px;
|
||
left: 16px;
|
||
right: 16px;
|
||
height: 2px;
|
||
background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
|
||
animation: scan 2s linear infinite;
|
||
box-shadow: 0 0 10px var(--primary-color);
|
||
}
|
||
|
||
@keyframes scan {
|
||
0% {
|
||
top: 16px;
|
||
}
|
||
50% {
|
||
top: calc(100% - 18px);
|
||
}
|
||
100% {
|
||
top: 16px;
|
||
}
|
||
}
|
||
|
||
.payment-info {
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.payment-amount {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 16px;
|
||
background: #f9fafb;
|
||
border-radius: var(--radius-sm, 8px);
|
||
margin-bottom: 16px;
|
||
|
||
.label {
|
||
color: #6b7280;
|
||
font-size: var(--font-size-md, 0.9375rem);
|
||
}
|
||
|
||
.amount {
|
||
font-size: var(--font-size-2xl, 1.25rem);
|
||
font-weight: var(--font-weight-bold, 700);
|
||
color: #1a1a1a;
|
||
}
|
||
}
|
||
|
||
.waiting-indicator {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
color: #6b7280;
|
||
|
||
.pulse-dot {
|
||
width: 8px;
|
||
height: 8px;
|
||
background: var(--primary-color);
|
||
border-radius: 50%;
|
||
animation: pulse 1.5s ease-in-out infinite;
|
||
}
|
||
}
|
||
|
||
.payment-actions {
|
||
display: flex;
|
||
gap: 12px;
|
||
margin-top: 16px;
|
||
|
||
.copy-btn,
|
||
.open-btn {
|
||
flex: 1;
|
||
padding: 12px 16px;
|
||
border-radius: var(--radius-sm, 8px);
|
||
font-weight: var(--font-weight-semibold, 600);
|
||
font-size: var(--font-size-md, 0.9375rem);
|
||
cursor: pointer;
|
||
transition: all 0.3s ease;
|
||
text-align: center;
|
||
text-decoration: none;
|
||
border: none;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.copy-btn {
|
||
background: #10b981;
|
||
color: white;
|
||
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
|
||
|
||
&:hover {
|
||
background: #059669;
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
|
||
}
|
||
|
||
&:active {
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
|
||
.open-btn {
|
||
background: var(--primary-color);
|
||
color: white;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-shadow: 0 4px 12px rgba(73, 118, 113, 0.25);
|
||
|
||
&:hover {
|
||
background: var(--primary-hover);
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 6px 16px rgba(73, 118, 113, 0.35);
|
||
}
|
||
|
||
&:active {
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
.bank-payment-modal-overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 1001;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 24px;
|
||
background: rgba(17, 24, 39, 0.55);
|
||
}
|
||
|
||
.bank-payment-modal {
|
||
position: relative;
|
||
width: min(960px, 92vw);
|
||
height: min(760px, 86vh);
|
||
padding: 56px 16px 16px;
|
||
background: white;
|
||
border-radius: var(--radius-lg, 13px);
|
||
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
|
||
}
|
||
|
||
.bank-payment-frame {
|
||
width: 100%;
|
||
height: 100%;
|
||
border: 0;
|
||
border-radius: var(--radius-sm, 8px);
|
||
background: white;
|
||
}
|
||
|
||
@keyframes pulse {
|
||
0%, 100% {
|
||
transform: scale(1);
|
||
opacity: 1;
|
||
}
|
||
50% {
|
||
transform: scale(1.3);
|
||
opacity: 0.5;
|
||
}
|
||
}
|
||
|
||
.email-form {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
margin-top: 24px;
|
||
|
||
.input-group {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
|
||
.error-message {
|
||
color: #ef4444;
|
||
font-size: var(--font-size-base, 0.875rem);
|
||
padding-left: 4px;
|
||
animation: slideDown 0.2s ease;
|
||
}
|
||
|
||
@keyframes slideDown {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(-4px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
|
||
.email-input {
|
||
width: 100%;
|
||
padding: 14px;
|
||
border: 1px solid #e5e7eb;
|
||
border-radius: var(--radius-sm, 8px);
|
||
font-size: var(--font-size-lg, 1rem);
|
||
outline: none;
|
||
transition: all 0.2s;
|
||
|
||
&:focus {
|
||
border-color: var(--primary-color);
|
||
box-shadow: 0 0 0 3px rgba(73, 118, 113, 0.1);
|
||
}
|
||
|
||
&.valid {
|
||
border-color: #10b981;
|
||
background-color: #f0fdf4;
|
||
|
||
&:focus {
|
||
border-color: #10b981;
|
||
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
|
||
}
|
||
}
|
||
|
||
&.invalid {
|
||
border-color: #ef4444;
|
||
background-color: #fef2f2;
|
||
|
||
&:focus {
|
||
border-color: #ef4444;
|
||
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
|
||
}
|
||
}
|
||
}
|
||
|
||
.submit-email-btn {
|
||
padding: 14px;
|
||
background: var(--primary-color);
|
||
color: white;
|
||
border: none;
|
||
border-radius: var(--radius-lg, 13px);
|
||
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
font-size: var(--font-size-lg, 1rem);
|
||
font-weight: var(--font-weight-bold, 700);
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
transition: all 0.2s;
|
||
|
||
&:hover:not(:disabled) {
|
||
background: var(--primary-hover);
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 4px 12px rgba(73, 118, 113, 0.3);
|
||
}
|
||
|
||
&:disabled {
|
||
opacity: 0.6;
|
||
cursor: not-allowed;
|
||
}
|
||
}
|
||
}
|
||
|
||
// Mobile responsive
|
||
@media (max-width: 768px) {
|
||
.cart-content {
|
||
grid-template-columns: minmax(0, 1fr);
|
||
gap: 20px;
|
||
}
|
||
|
||
.cart-summary {
|
||
position: static;
|
||
width: 100%;
|
||
max-width: 100%;
|
||
min-width: 0;
|
||
}
|
||
|
||
.cart-container.platform {
|
||
padding: 16px;
|
||
}
|
||
|
||
.cart-container.platform .cart-header {
|
||
flex-wrap: wrap;
|
||
gap: 12px;
|
||
}
|
||
|
||
.remove-btn-desktop {
|
||
display: none !important;
|
||
}
|
||
|
||
.delete-btn-mobile {
|
||
display: flex;
|
||
}
|
||
|
||
.payment-modal {
|
||
padding: 24px;
|
||
padding-top: 56px; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
}
|
||
|
||
.close-modal-btn {
|
||
top: 12px;
|
||
right: 12px;
|
||
width: 32px;
|
||
height: 32px;
|
||
|
||
svg {
|
||
width: 18px;
|
||
height: 18px;
|
||
}
|
||
}
|
||
|
||
.qr-code {
|
||
width: 200px !important;
|
||
height: 200px !important;
|
||
}
|
||
|
||
.payment-actions {
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
|
||
.copy-btn,
|
||
.open-btn {
|
||
width: 100%;
|
||
padding: 12px;
|
||
}
|
||
}
|
||
|
||
.payment-method-actions {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.bank-payment-modal-overlay {
|
||
padding: 12px;
|
||
}
|
||
|
||
.bank-payment-modal {
|
||
width: 94vw;
|
||
height: 82vh;
|
||
padding: 52px 10px 10px;
|
||
}
|
||
|
||
.payment-active h2 {
|
||
font-size: var(--font-size-2xl, 1.25rem);
|
||
margin-bottom: 16px;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 769px) {
|
||
.delete-btn-mobile {
|
||
display: none !important;
|
||
}
|
||
}
|