Business store shipping groups/static rates UI, and customer checkout that quotes and applies shipping on delivery and payment. Co-authored-by: Cursor <cursoragent@cursor.com>
182 lines
3.7 KiB
CSS
182 lines
3.7 KiB
CSS
.overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: var(--modal-overlay-bg);
|
|
backdrop-filter: blur(var(--modal-overlay-blur));
|
|
-webkit-backdrop-filter: blur(var(--modal-overlay-blur));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 260;
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal {
|
|
width: 100%;
|
|
max-width: 440px;
|
|
background: var(--surface);
|
|
backdrop-filter: blur(24px);
|
|
-webkit-backdrop-filter: blur(24px);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius);
|
|
box-shadow: 0 20px 60px rgba(31, 38, 135, 0.15);
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 24px 24px 0;
|
|
}
|
|
|
|
.title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.closeBtn {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
color: var(--text-secondary);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.closeBtn:hover:not(:disabled) {
|
|
background: rgba(var(--primary-rgb) / 0.1);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.form {
|
|
padding: 20px 24px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.error {
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 13px;
|
|
color: #b91c1c;
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.field label {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.field input,
|
|
.field select {
|
|
min-height: var(--field-height);
|
|
padding: var(--field-padding-y) var(--field-padding-x);
|
|
font-size: var(--field-font-size);
|
|
line-height: 1.4;
|
|
color: var(--text-primary);
|
|
background: var(--surface);
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
border-radius: var(--radius-sm);
|
|
outline: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.field input:focus,
|
|
.field select:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
|
|
}
|
|
|
|
.amountRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.amountRow input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-family: var(--font-en), var(--font-ui);
|
|
}
|
|
|
|
.amountUnit {
|
|
flex-shrink: 0;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-en), var(--font-ui);
|
|
direction: ltr;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
padding-top: 4px;
|
|
direction: rtl;
|
|
}
|
|
|
|
.cancelBtn {
|
|
padding: 8px 16px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
border-radius: var(--radius-sm);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.cancelBtn:hover:not(:disabled) {
|
|
background: rgba(148, 163, 184, 0.15);
|
|
}
|
|
|
|
.submitBtn {
|
|
padding: 8px 18px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: white;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: 0 4px 12px rgba(var(--primary-rgb) / 0.3);
|
|
}
|
|
|
|
.submitBtn:disabled,
|
|
.cancelBtn:disabled,
|
|
.closeBtn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.overlayIn { animation: overlayFadeIn 0.2s ease forwards; }
|
|
.overlayOut { animation: overlayFadeOut 0.2s ease forwards; }
|
|
.modalIn { animation: modalFadeIn 0.25s ease forwards; }
|
|
.modalOut { animation: modalFadeOut 0.22s ease forwards; }
|
|
|
|
@keyframes overlayFadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
@keyframes overlayFadeOut {
|
|
from { opacity: 1; }
|
|
to { opacity: 0; }
|
|
}
|
|
@keyframes modalFadeIn {
|
|
from { opacity: 0; transform: translateY(12px) scale(0.98); }
|
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
}
|
|
@keyframes modalFadeOut {
|
|
from { opacity: 1; transform: translateY(0) scale(1); }
|
|
to { opacity: 0; transform: translateY(8px) scale(0.98); }
|
|
}
|