Anton | fix: настройка cart checkout

This commit is contained in:
ab.an.ev@yandex.ru
2026-04-02 13:01:26 +03:00
parent 61f14a2978
commit 6938c56241
8 changed files with 1282 additions and 0 deletions

View File

@@ -561,6 +561,183 @@ body:is(.test1-checkout-page, .test1-cart-page) {
padding-top: 24px;
}
.checkout-progress {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
margin-bottom: 22px;
}
.checkout-progress-step {
display: inline-flex;
justify-content: center;
align-items: center;
min-height: 48px;
padding: 12px 14px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.55);
border: 1px solid rgba(255, 255, 255, 0.68);
color: var(--muted);
font-weight: 800;
text-align: center;
}
.checkout-progress-step.is-active {
background: linear-gradient(135deg, var(--premium-navy), var(--premium-blue));
color: #fff;
box-shadow: 0 18px 34px rgba(13, 79, 214, 0.24);
}
.checkout-progress-step.is-complete {
color: var(--premium-navy);
}
.checkout-progress-step.is-pending {
opacity: 0.72;
}
.water-commerce-panel,
.water-seo-copy-section {
margin-top: 24px;
padding: 24px;
border-radius: 28px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.62));
border: 1px solid rgba(255, 255, 255, 0.78);
box-shadow: 0 24px 64px rgba(8, 31, 79, 0.1);
}
.water-commerce-panel-head h2,
.water-seo-copy-section h2 {
margin: 0;
color: var(--premium-navy);
font-size: clamp(28px, 3vw, 40px);
line-height: 1.05;
letter-spacing: -0.04em;
}
.water-commerce-panel-head p,
.water-seo-copy-section p {
margin: 14px 0 0;
color: var(--muted);
line-height: 1.8;
}
.water-commerce-benefits {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 18px;
}
.water-commerce-benefits span,
.water-commerce-alert {
display: inline-flex;
align-items: center;
min-height: 42px;
padding: 10px 14px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.82);
border: 1px solid rgba(13, 79, 214, 0.08);
}
.water-commerce-alerts {
display: grid;
gap: 12px;
margin-top: 18px;
}
.water-commerce-alert.is-success {
background: rgba(25, 167, 111, 0.1);
color: #0d6d49;
}
.water-commerce-repeat-order {
margin-top: 18px;
}
.water-checkout-submit-box {
margin: 0 0 18px;
padding: 18px;
border-radius: 22px;
background: rgba(255, 255, 255, 0.72);
border: 1px solid rgba(13, 79, 214, 0.08);
}
.water-checkout-submit-note {
margin-bottom: 12px;
color: var(--premium-navy);
font-weight: 800;
}
.water-checkout-submit-list {
margin: 0;
padding-left: 20px;
color: var(--muted);
line-height: 1.7;
}
.water-empty-cart-cta {
margin-top: 16px;
}
:is(.test1-checkout-page, .test1-cart-page) .cart_totals {
position: sticky;
top: 104px;
}
:is(.test1-checkout-page, .test1-cart-page) .cross-sells {
margin-top: 24px;
padding: 24px;
border-radius: 28px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.6));
border: 1px solid rgba(255, 255, 255, 0.78);
}
:is(.test1-checkout-page, .test1-cart-page) .cross-sells > h2 {
margin: 0 0 16px;
color: var(--premium-navy);
}
:is(.test1-checkout-page, .test1-cart-page) .quantity {
display: inline-flex;
align-items: center;
gap: 8px;
}
:is(.test1-checkout-page, .test1-cart-page) .quantity .qty {
width: 74px;
text-align: center;
}
.quantity-button {
width: 38px;
height: 38px;
display: inline-grid;
place-items: center;
border-radius: 12px;
background: rgba(8, 31, 79, 0.08);
color: var(--premium-navy);
font-weight: 800;
}
.quantity-button:hover {
background: rgba(13, 79, 214, 0.14);
}
@media (max-width: 991px) {
.checkout-progress,
.water-commerce-benefits {
grid-template-columns: 1fr;
}
:is(.test1-checkout-page, .test1-cart-page) .cart_totals {
position: static;
top: auto;
}
}
@media (min-width: 992px) {
:is(.test1-checkout-page, .test1-cart-page) .checkout-shell {
grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
@@ -574,6 +751,10 @@ body:is(.test1-checkout-page, .test1-cart-page) {
.premium-footer-grid {
grid-template-columns: 1fr;
}
.checkout-progress {
grid-template-columns: 1fr;
}
}
@media (max-width: 781px) {
@@ -623,4 +804,11 @@ body:is(.test1-checkout-page, .test1-cart-page) {
:is(.test1-checkout-page, .test1-cart-page) .coupon {
display: grid;
}
.water-commerce-panel,
.water-seo-copy-section,
.cross-sells,
.water-checkout-submit-box {
padding: 18px;
}
}