Files
2026-09-15 10:35:56 +08:00

1020 lines
22 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
.checkout-cart-index button:hover,
button:focus {
border: none;
}
.checkout-cart-index .page-main {
width: 83.3333%;
max-width: 1600px;
margin: 0 auto;
padding: 42px 0 0 0;
}
.esun-cart-page__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
margin-bottom: 48px;
}
.esun-cart-page__header h1 {
margin: 0;
color: #1f2224;
font-size: 22px;
font-weight: 700;
line-height: 1.2;
}
.esun-cart-page__continue {
color: #777;
font-size: 18px;
font-weight: 700;
text-decoration: underline;
}
.checkout-cart-index .cart-container {
display: grid;
grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.95fr);
gap: 28px;
}
.checkout-cart-index .cart-container .form-cart,
.checkout-cart-index .cart-container .cart-summary {
float: none;
width: 100%;
margin: 0;
padding: 0;
box-sizing: border-box;
}
.checkout-cart-index .cart-container .form-cart {
grid-column: 1;
grid-row: 1;
align-self: start;
}
.checkout-cart-index .cart-container .cart-summary {
position: static;
top: auto;
grid-column: 2;
grid-row: 1;
align-self: start;
background: transparent;
}
.checkout-cart-index .cart-container > .rewards:empty,
.checkout-cart-index .cart-container > .checkout-cart-widget:empty {
display: none;
}
.checkout-cart-index .cart.table-wrapper,
.checkout-cart-index #shopping-cart-table {
float: none;
width: 100%;
margin: 0;
border: 0;
}
.checkout-cart-index .cart.table-wrapper .items > .esun-cart-page-item {
border-top: 0;
border-bottom: 0;
}
.checkout-cart-index #shopping-cart-table > thead,
.checkout-cart-index .cart.main.actions {
display: none;
}
.checkout-cart-index .esun-cart-page-item {
display: block;
margin-bottom: 20px;
}
.checkout-cart-index .esun-cart-page-item .item-info,
.checkout-cart-index .esun-cart-page-item__cell {
display: block;
width: 100%;
padding: 0 !important;
border: 0 !important;
}
.esun-cart-page-item__card {
position: relative;
display: grid;
grid-template-columns: 140px minmax(0, 1fr) auto;
grid-template-rows: 1fr auto;
gap: 12px 26px;
min-height: 190px;
padding: 26px 30px;
border: 1px solid #d8dcde;
border-radius: 16px;
background: #fff;
box-sizing: border-box;
}
.esun-cart-page-item__photo {
display: flex;
grid-row: 1 / 3;
align-items: center;
justify-content: center;
width: 140px;
height: 140px;
}
.esun-cart-page-item__photo .product-image-container,
.esun-cart-page-item__photo .product-image-wrapper {
width: 100% !important;
height: 100%;
padding: 0 !important;
}
.esun-cart-page-item__photo .product-image-photo {
position: static;
width: 100%;
height: 100%;
object-fit: contain;
}
.esun-cart-page-item__details {
min-width: 0;
}
.esun-cart-page-item__name,
.esun-cart-page-item__name a {
color: #303437;
font-size: 19px;
font-weight: 600;
text-decoration: none;
}
.esun-cart-page-item__options {
margin: 10px 0 0;
color: #656a6f;
font-size: 14px;
}
.esun-cart-page-item__option {
display: flex;
gap: 6px;
}
.esun-cart-page-item__option dt,
.esun-cart-page-item__option dd {
margin: 0;
}
.esun-cart-page-item__qty {
display: inline-flex;
align-items: stretch;
height: 42px;
margin-top: 22px;
border: 1px solid #d6dade;
border-radius: 24px;
overflow: hidden;
}
.esun-cart-page-item__qty-button,
.esun-cart-page-item__qty .qty {
width: 48px;
height: 42px;
padding: 0;
border: 0;
border-radius: 0;
background: #fff;
box-shadow: none;
text-align: center;
}
.esun-cart-page-item__qty-button {
font-size: 23px;
font-weight: 600;
}
.esun-cart-page-item__qty .qty {
border-right: 1px solid #e0e3e5;
border-left: 1px solid #e0e3e5;
font-size: 15px;
}
.esun-cart-page-item__actions {
position: absolute;
top: 25px;
right: 30px;
}
.esun-cart-page-item__actions .action:not(.action-delete) {
display: none !important;
}
.esun-cart-page-item__actions .action-delete {
color: #555;
font-size: 13px;
text-decoration: underline;
}
.esun-cart-page-item__actions .action-delete::before {
display: none;
}
.esun-cart-page-item__price {
align-self: end;
min-width: 130px;
padding-right: 6px;
padding-bottom: 10px;
color: #222;
font-size: 23px;
font-weight: 700;
text-align: right;
}
.esun-cart-page-item__price .price {
font-size: inherit;
}
.checkout-cart-index .cart-totals {
display: block;
width: 100%;
box-sizing: border-box;
padding: 18px 0;
border-top: 1px solid #d8dcde;
border-bottom: 1px solid #d8dcde;
}
.esun-cart-page-total-row {
display: flex;
width: 100%;
box-sizing: border-box;
align-items: center;
justify-content: space-between;
gap: 20px;
min-height: 44px;
padding: 0 8px;
color: #5f6468;
font-size: 16px;
}
.esun-cart-page-total-row strong {
color: #333;
font-weight: 500;
}
.esun-cart-page-total-row--grand {
min-height: 62px;
margin-top: 10px;
padding-top: 12px;
border-top: 1px solid #d8dcde;
color: #252525;
font-size: 21px;
}
.esun-cart-page-total-row--grand strong {
font-size: 24px;
font-weight: 700;
}
.checkout-cart-index .esun-coupon--cart {
margin-top: 22px;
padding: 18px 20px;
border: 1px solid #d8dcde;
border-radius: 14px;
background: #fff;
}
.checkout-cart-index .esun-coupon__title {
margin-bottom: 11px;
color: #292d30;
font-size: 16px;
font-weight: 700;
}
.checkout-cart-index .esun-coupon__label {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
.checkout-cart-index .esun-coupon__controls {
display: grid;
align-items: center;
grid-template-columns: minmax(0, 1fr) auto;
gap: 10px 12px;
}
.checkout-cart-index .esun-coupon__input {
min-width: 0;
height: 46px;
border: 1px solid #cfd4d7;
border-radius: 23px;
padding: 0 18px;
}
.checkout-cart-index .esun-coupon__button {
flex: 0 0 auto;
min-width: 96px;
height: 46px;
padding: 0 20px;
border: 1px solid #18aa59 !important;
border-radius: 23px;
background: #fff;
color: #168b4b;
font-weight: 700;
}
.checkout-cart-index .esun-coupon__button:hover {
background: #18aa59;
}
.checkout-cart-index .esun-coupon__applied {
align-items: center;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 10px 16px;
min-height: 42px;
}
.checkout-cart-index .esun-coupon__picker-button {
grid-column: 1 / -1;
justify-self: end;
width: auto;
min-width: 0;
height: auto;
padding: 2px 0 0;
}
.checkout-cart-index .esun-coupon__applied strong {
color: #168b4b;
}
.checkout-cart-index .esun-coupon__applied > span {
min-width: 0;
overflow-wrap: anywhere;
}
.checkout-cart-index .esun-coupon__remove {
display: inline !important;
flex: 0 0 auto;
width: auto !important;
min-width: 0 !important;
max-width: none !important;
height: auto !important;
min-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
color: #168b4b;
font-weight: 700;
line-height: 1.4 !important;
text-decoration: underline;
white-space: nowrap;
}
.checkout-cart-index .esun-coupon__remove:hover,
.checkout-cart-index .esun-coupon__remove:focus,
.checkout-cart-index .esun-coupon__remove:active {
border: 0 !important;
background: transparent !important;
box-shadow: none !important;
color: #116d3c;
}
.checkout-cart-index .esun-coupon__message {
display: none;
margin-top: 9px;
font-size: 13px;
}
.checkout-cart-index .esun-coupon__message.is-error,
.checkout-cart-index .esun-coupon__message.is-success {
display: block;
}
.checkout-cart-index .esun-coupon__message.is-error {
color: #c62828;
}
.checkout-cart-index .esun-coupon__message.is-success {
color: #168b4b;
}
.checkout-cart-index .esun-coupon__form.is-loading {
opacity: 0.65;
}
.checkout-cart-index .checkout-methods-items {
margin: 24px 0 30px;
}
.checkout-cart-index .checkout-methods-items .action.primary.checkout {
width: 100%;
min-height: 58px;
border-radius: 30px;
background: #18aa59;
font-size: 21px;
font-weight: 700;
border: none;
}
.checkout-cart-index .checkout-methods-items .item + .item {
display: none;
}
.esun-cart-page-services {
display: flex;
flex-direction: column;
gap: 22px;
}
.esun-cart-page-service {
padding: 20px 22px;
background: #f5f6f6;
color: #444;
font-size: 12px;
}
.esun-cart-page-service h2 {
margin: 0 0 12px;
color: #333;
font-size: 19px;
font-weight: 700;
}
.esun-cart-page-service--payment .esun-payment-methods {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
align-items: center;
gap: 8px;
}
.esun-cart-page-service--payment .esun-payment-methods span {
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
height: 44px;
padding: 6px 8px;
border: 1px solid #d9dcdf;
border-radius: 6px;
background: #fff;
box-sizing: border-box;
}
.esun-cart-page-service--payment .esun-payment-methods img {
display: block;
width: auto;
max-width: 100%;
height: 26px;
object-fit: contain;
}
.esun-cart-page-service--delivery {
border-top: 1px solid #d9d9d9;
}
.checkout-cart-index .esun-product-accordion__item {
border-bottom: 1px solid #d9d9d9;
}
.checkout-cart-index .esun-product-accordion__summary {
align-items: center;
color: #333;
cursor: pointer;
display: flex;
font-size: 14px;
font-weight: 700;
justify-content: space-between;
line-height: 1.35;
list-style: none;
min-height: 56px;
padding: 0 18px 0 0;
}
.checkout-cart-index .esun-product-accordion__summary::-webkit-details-marker {
display: none;
}
.checkout-cart-index .esun-product-accordion__summary::after {
content: "+";
font-size: 18px;
font-weight: 400;
line-height: 1;
}
.checkout-cart-index
.esun-product-accordion__item[open]
.esun-product-accordion__summary::after {
content: "×";
}
.checkout-cart-index .esun-product-accordion__content {
color: #666;
font-size: 13px;
line-height: 1.6;
padding: 0 0 22px;
}
.checkout-cart-index .esun-product-service ul {
list-style: none;
margin: 0;
padding: 0;
}
.checkout-cart-index .esun-product-service li {
margin: 0 0 8px;
padding-left: 14px;
position: relative;
}
.checkout-cart-index .esun-product-service li::before {
content: "·";
left: 0;
position: absolute;
}
.checkout-cart-index .esun-product-service a {
color: #666;
text-decoration: underline;
}
@media (max-width: 900px) {
.checkout-cart-index .page-main {
padding-top: 24px;
}
.esun-cart-page__header {
margin-bottom: 28px;
}
.esun-cart-page__header h1 {
font-size: 22px;
}
.checkout-cart-index .cart-container {
grid-template-columns: minmax(0, 1fr);
gap: 30px;
}
.checkout-cart-index .cart-container .form-cart,
.checkout-cart-index .cart-container .cart-summary {
grid-column: 1;
}
.checkout-cart-index .cart-container .form-cart {
grid-row: 1;
order: 1;
}
.checkout-cart-index .cart-container .cart-summary {
position: static;
grid-row: 2;
order: 2;
}
}
@media (max-width: 600px) {
.checkout-cart-index .page-main {
width: calc(100% - 24px);
padding-top: 16px;
}
.checkout-cart-index .cart-container {
gap: 20px;
}
.esun-cart-page__header {
align-items: flex-start;
flex-direction: column;
gap: 8px;
margin-bottom: 18px;
}
.esun-cart-page__header h1 {
font-size: 22px;
}
.esun-cart-page__continue {
font-size: 13px;
}
.checkout-cart-index .esun-cart-page-item {
margin-bottom: 14px;
}
.esun-cart-page-item__card {
grid-template-columns: 80px minmax(0, 1fr);
gap: 8px 14px;
min-height: 0;
padding: 14px;
border-radius: 14px;
}
.esun-cart-page-item__photo {
width: 80px;
height: 80px;
}
.esun-cart-page-item__actions {
top: 14px;
right: 12px;
}
.esun-cart-page-item__actions .action-delete {
font-size: 11px;
}
.esun-cart-page-item__details {
padding-right: 54px;
}
.esun-cart-page-item__name,
.esun-cart-page-item__name a {
font-size: 15px;
line-height: 1.3;
}
.esun-cart-page-item__options {
margin-top: 6px;
font-size: 12px;
line-height: 1.4;
}
.esun-cart-page-item__qty {
height: 34px;
margin-top: 12px;
}
.esun-cart-page-item__qty-button,
.esun-cart-page-item__qty .qty {
width: 38px;
height: 34px;
}
.esun-cart-page-item__qty-button {
font-size: 16px;
}
.esun-cart-page-item__qty .qty {
font-size: 13px;
}
.esun-cart-page-item__price {
grid-column: 2;
min-width: 0;
padding-bottom: 0;
font-size: 18px;
line-height: 1.25;
position: absolute;
bottom: 30px;
right: 12px;
}
.esun-cart-page-item__price .price-excluding-tax {
font-size: 18px;
}
}
.esun-free-gift-label {
display: inline-flex;
align-items: center;
width: fit-content;
margin-top: 6px;
padding: 3px 9px;
border-radius: 999px;
background: #e8f7ef;
color: #138a4b;
font-size: 12px;
font-weight: 700;
}
.esun-cart-page-item__qty--locked {
align-items: center;
height: auto;
gap: 6px;
border: 0;
border-radius: 0;
overflow: visible;
color: #353535;
font-size: 15px;
line-height: 1.4;
}
.checkout-cart-index .esun-cart-recommended {
--esun-green: #12ad5c;
--esun-green-dark: #0c914c;
--esun-text: #242424;
border-top: 1px solid #d9d9d9;
margin-top: 44px;
min-width: 0;
padding: 30px 0 54px;
width: 100%;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__heading {
align-items: center;
display: flex;
gap: 24px;
justify-content: space-between;
margin-bottom: 20px;
}
.checkout-cart-index .esun-cart-recommended h2 {
color: #303437;
font-size: 25px;
font-weight: 500;
line-height: 1.2;
margin: 0;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__navigation {
display: flex;
flex: 0 0 auto;
gap: 10px;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__previous,
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__next {
align-items: center;
background: #fff;
border: 1px solid #d8dcde;
border-radius: 6px;
color: #333;
cursor: pointer;
display: inline-flex;
font-size: 22px;
height: 36px;
justify-content: center;
line-height: 1;
padding: 0 0 2px;
width: 36px;
}
.checkout-cart-index .esun-cart-recommended .swiper-button-disabled {
cursor: default;
opacity: .35;
}
.checkout-cart-index .esun-cart-recommended .swiper-button-lock {
display: none;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__slider {
min-width: 0;
overflow: hidden;
width: 100%;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__wrapper {
align-items: stretch;
flex-wrap: nowrap;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__item {
background: #fff;
border: 1px solid #eef2ef;
border-radius: 18px;
box-sizing: border-box;
box-shadow: 0 10px 26px rgba(23, 50, 36, .06);
display: flex;
flex-direction: column;
height: auto;
min-height: 374px;
min-width: 0;
overflow: hidden;
padding: 14px;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__image {
display: block;
height: 178px;
overflow: hidden;
position: relative;
width: 100%;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__badge {
background: var(--esun-green);
border-radius: 999px;
color: #fff;
font-size: 8px;
font-weight: 800;
line-height: 1;
padding: 5px 9px;
position: absolute;
z-index: 2;
}
.checkout-cart-index .esun-cart-recommended .product-image-container,
.checkout-cart-index .esun-cart-recommended .product-image-wrapper {
height: 100%;
width: 100% !important;
}
.checkout-cart-index .esun-cart-recommended .product-image-wrapper {
display: block;
padding-bottom: 0 !important;
}
.checkout-cart-index .esun-cart-recommended .product-image-photo {
height: 100%;
inset: 0;
margin: auto;
max-height: none;
object-fit: contain;
position: absolute;
transition: opacity .16s ease;
width: 100%;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__body {
display: flex;
flex: 1;
flex-direction: column;
min-width: 0;
padding: 14px 0 0;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__name {
display: block;
font-size: 16px;
font-weight: 800;
line-height: 1.25;
margin: 0 0 8px;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__name a {
color: var(--esun-text);
text-decoration: none;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__name a:hover,
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__name a:focus {
color: var(--esun-green);
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 12px;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__tags span {
border: 1px solid #e4e9e6;
border-radius: 999px;
color: #808882;
font-size: 11px;
font-weight: 700;
line-height: 18px;
max-width: 100%;
overflow: hidden;
padding: 0 8px;
text-overflow: ellipsis;
white-space: nowrap;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__swatches {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 18px;
max-height: 44px;
min-height: 36px;
overflow: hidden;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__swatch {
appearance: none;
background: #fff;
border: 1px solid #e2e8e4;
border-radius: 50%;
cursor: pointer;
display: inline-flex;
flex: 0 0 18px;
height: 18px;
padding: 1px;
width: 18px;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__swatch > span,
.checkout-cart-index .esun-cart-recommended .esun-category-card__swatch img {
border-radius: 50%;
height: 100%;
object-fit: cover;
width: 100%;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__swatch-more {
color: #4c5450;
font-size: 11px;
font-weight: 700;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__inner {
display: flex;
flex: 1;
flex-direction: column;
margin-top: auto;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__footer {
align-items: center;
display: flex;
gap: 12px;
justify-content: space-between;
margin-top: auto;
min-height: 41px;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__price {
align-items: baseline;
display: flex;
flex-wrap: wrap;
gap: 6px;
min-width: 0;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__final-price {
color: var(--esun-green);
font-size: 16px;
font-weight: 800;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__regular-price {
color: #b1b8b4;
font-size: 10px;
font-weight: 700;
text-decoration: line-through;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__actions,
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__actions form {
margin: 0;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__cart {
align-items: center;
background: var(--esun-green) !important;
border: 0 !important;
border-radius: 50% !important;
box-shadow: none !important;
color: #fff !important;
display: inline-flex !important;
height: 41px !important;
justify-content: center;
min-width: 0 !important;
padding: 0 !important;
width: 41px !important;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__cart:hover,
.checkout-cart-index .esun-cart-recommended .esun-category-card__cart:focus {
background: var(--esun-green-dark) !important;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__cart svg {
fill: none;
height: 17px;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.9;
width: 17px;
}
.checkout-cart-index .esun-cart-recommended .esun-category-card__cart span {
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
@media (max-width: 600px) {
.checkout-cart-index .esun-cart-recommended {
margin-top: 32px;
padding: 24px 0 40px;
}
.checkout-cart-index .esun-cart-recommended h2 {
font-size: 21px;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__item {
border-radius: 16px;
min-height: 315px;
padding: 10px;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__image {
height: 138px;
}
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__name,
.checkout-cart-index .esun-cart-recommended .esun-category-card__final-price {
font-size: 14px;
}
}