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

988 lines
21 KiB
CSS

body.esun-cart-is-open {
overflow: hidden;
}
.header-top-link-item.header-minicart .esun-cart-wrapper {
position: static;
}
.header-top-link-item.header-minicart .esun-cart-wrapper > .action.showcart,
.header-top-link-item.header-minicart
.esun-cart-wrapper
> .action.showcart:hover,
.header-top-link-item.header-minicart
.esun-cart-wrapper
> .action.showcart:focus,
.header-top-link-item.header-minicart
.esun-cart-wrapper
> .action.showcart:active {
padding: 0;
border: 0;
background-color: transparent;
color: inherit;
outline: 0;
box-shadow: none;
}
.header-top-link-item.header-minicart .esun-cart-wrapper .esun-cart-backdrop {
position: fixed;
inset: 0;
z-index: 10000;
display: block;
width: 100%;
height: 100%;
padding: 0;
border: 0;
border-radius: 0;
background: rgba(0, 0, 0, 0.35);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition:
opacity 0.25s ease,
visibility 0.25s ease;
}
.header-top-link-item.header-minicart
.esun-cart-wrapper.active
.esun-cart-backdrop {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
.header-top-link-item.header-minicart
.esun-cart-wrapper
.block-minicart.esun-cart-drawer {
position: fixed !important;
top: 0 !important;
right: 0 !important;
bottom: 0 !important;
left: auto !important;
z-index: 10001 !important;
display: none;
width: 620px !important;
min-width: 0 !important;
max-width: calc(100vw - 48px) !important;
height: 100vh;
height: 100dvh;
max-height: none !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
border-radius: 0 !important;
background: #fff;
box-shadow: -10px 0 34px rgba(0, 0, 0, 0.18) !important;
transform: translateX(100%);
transition: transform 0.3s ease;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-color: #18aa59 #e1e1e1;
scrollbar-width: thin;
}
.header-top-link-item.header-minicart
.esun-cart-wrapper.active
.block-minicart.esun-cart-drawer {
transform: translateX(0);
}
.header-top-link-item.header-minicart .esun-cart-drawer::before,
.header-top-link-item.header-minicart .esun-cart-drawer::after {
display: none !important;
}
.esun-cart-drawer #minicart-content-wrapper {
display: flex;
flex-direction: column;
width: 100%;
height: auto;
min-height: 100%;
overflow: visible;
}
.header-top-link-item.header-minicart
.esun-cart-wrapper
.block-minicart.esun-cart-drawer::-webkit-scrollbar {
width: 7px;
}
.header-top-link-item.header-minicart
.esun-cart-wrapper
.block-minicart.esun-cart-drawer::-webkit-scrollbar-thumb {
border-radius: 7px;
background: #18aa59;
}
.header-top-link-item.header-minicart
.esun-cart-wrapper
.block-minicart.esun-cart-drawer::-webkit-scrollbar-track {
background: #e1e1e1;
}
.esun-cart-drawer__contents {
display: contents;
}
.esun-cart-drawer__header {
display: flex;
flex: 0 0 auto;
align-items: center;
justify-content: space-between;
min-height: 72px;
padding: 14px 28px;
border-bottom: 1px solid #e7e7e7;
}
.esun-cart-drawer__title-wrap {
display: flex;
align-items: center;
min-width: 0;
}
.esun-cart-drawer__icon {
display: inline-block;
width: 42px;
height: 42px;
margin-right: 14px;
border-radius: 50%;
background-color: #18aa59;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.2 10.2a2 2 0 0 0 2 1.6h7.9a2 2 0 0 0 2-1.6L20.5 8H6'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: center;
background-size: 21px 21px;
}
.esun-cart-drawer__title,
.esun-cart-drawer__count {
color: #222;
font-size: 20px;
line-height: 1.3;
}
.esun-cart-drawer__count {
margin-left: 7px;
font-weight: 700;
}
.esun-cart-drawer .action.close {
position: static !important;
width: 40px;
height: 40px;
padding: 0;
border: 0;
background: transparent;
color: #7c8189;
box-shadow: none;
}
.esun-cart-drawer .action.close::before {
content: "\00d7";
font-family: Arial, sans-serif;
font-size: 30px;
font-weight: 300;
line-height: 38px;
}
.esun-cart-drawer .action.close span {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
.esun-cart-progress {
flex: 0 0 auto;
min-height: 132px;
padding: 22px 38px 16px;
}
.esun-cart-progress + .esun-cart-progress {
margin-top: 14px;
}
.esun-cart-progress__name {
color: #202427;
display: block;
font-size: 13px;
margin-bottom: 3px;
}
.esun-cart-progress__message {
min-height: 21px;
margin-bottom: 26px;
color: #179f54;
font-size: 14px;
font-weight: 700;
}
.esun-cart-progress__rail {
position: relative;
height: 8px;
margin: 0 8px 52px;
border-radius: 8px;
background: #d9dcde;
}
.esun-cart-progress__fill {
position: absolute;
inset: 0 auto 0 0;
max-width: 100%;
border-radius: inherit;
background: #19aa59;
transition: width 0.25s ease;
}
.esun-cart-progress__step {
position: absolute;
top: 50%;
width: 104px;
color: #42464a;
text-align: center;
transform: translate(-50%, -50%);
}
.esun-cart-progress__step:first-of-type {
transform: translate(0, -50%);
}
.esun-cart-progress__step:last-of-type {
transform: translate(-100%, -50%);
}
.esun-cart-progress__marker {
display: block;
width: 22px;
height: 22px;
margin: 0 auto;
border: 3px solid #b8cfdd;
border-radius: 50%;
background: #fff;
box-sizing: border-box;
}
.esun-cart-progress__step.is-active .esun-cart-progress__marker {
border-color: #19aa59;
background: #19aa59;
box-shadow: inset 0 0 0 4px #fff;
}
.esun-cart-progress__step.is-free-shipping .esun-cart-progress__marker {
border-color: #ff8a00;
}
.esun-cart-progress__value,
.esun-cart-progress__label {
position: absolute;
top: 22px;
left: 50%;
display: block;
width: 116px;
transform: translateX(-50%);
}
.esun-cart-progress__value {
padding: 3px 7px;
border-radius: 12px;
background: #e9f7ef;
color: #333;
font-size: 11px;
font-weight: 700;
box-sizing: border-box;
}
.esun-cart-progress__step.is-free-shipping .esun-cart-progress__value {
background: #fff4e4;
color: #f27d00;
}
.esun-cart-progress__label {
top: 50px;
font-size: 11px;
font-weight: 600;
}
.esun-cart-items-panel {
flex: 0 0 auto;
width: auto;
height: auto !important;
max-height: none !important;
min-height: 0;
margin: 0 28px;
overflow: visible !important;
}
.esun-cart-drawer .minicart-items {
display: block;
width: 100%;
height: auto !important;
max-height: none !important;
margin-top: 20px;
padding: 0 4px 0 0;
list-style: none;
overflow: visible !important;
}
.esun-cart-drawer .minicart-items-wrapper,
.esun-cart-drawer [data-action="scroll"] {
height: auto !important;
max-height: none !important;
overflow: visible !important;
}
.esun-cart-drawer .minicart-items .product-item {
position: relative;
margin: 0 0 12px;
padding: 16px;
border: 1px solid #d8dcde;
border-radius: 12px;
background: #fff;
}
.esun-cart-drawer .minicart-items .product-item:first-child {
border-color: #87dbaa;
}
.esun-cart-drawer .product-item .product {
position: relative;
display: flex;
align-items: stretch;
}
.esun-cart-drawer .product-image-container {
flex: 0 0 104px;
width: 104px !important;
height: 104px;
margin-right: 18px;
}
.esun-cart-drawer .product-image-wrapper {
display: block;
width: 100%;
height: 100%;
padding: 0 !important;
}
.esun-cart-drawer .product-image-photo {
position: static;
width: 100%;
height: 100%;
border-radius: 8px;
object-fit: contain;
}
.esun-cart-drawer .product-item-details {
display: flex;
flex: 1 1 auto;
flex-direction: column;
min-width: 0;
padding: 0;
}
.esun-cart-drawer .esun-cart-item__heading {
align-items: flex-start;
display: flex;
gap: 18px;
justify-content: space-between;
min-width: 0;
}
.esun-cart-drawer .product-item-name {
flex: 1 1 auto;
min-width: 0;
margin-bottom: 6px;
overflow: hidden;
color: #343434;
font-size: 15px;
font-weight: 600;
line-height: 1.35;
text-overflow: ellipsis;
white-space: nowrap;
}
.esun-cart-drawer .product.options {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
min-width: 0;
color: #686d72;
font-size: 12px;
line-height: 1.5;
}
.esun-cart-drawer .esun-cart-item__option {
display: flex;
width: 100%;
min-width: 0;
align-items: baseline;
}
.esun-cart-drawer .product.options .label {
flex: 0 0 auto;
margin-right: 5px;
}
.esun-cart-drawer .product.options .values {
min-width: 0;
overflow-wrap: anywhere;
}
.esun-cart-item__bottom {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 14px;
margin-top: auto;
padding-top: 10px;
}
.esun-cart-item__qty {
display: inline-flex;
align-items: center;
height: 34px;
border: 1px solid #d7dbde;
border-radius: 17px;
overflow: hidden;
}
.esun-cart-item__qty-button,
.esun-cart-item__qty .item-qty {
width: 34px;
height: 32px;
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
background: #fff;
color: #353535;
line-height: 32px;
text-align: center;
outline: 0;
box-shadow: none !important;
}
.esun-cart-drawer .esun-cart-item__qty-button:hover,
.esun-cart-drawer .esun-cart-item__qty-button:focus,
.esun-cart-drawer .esun-cart-item__qty-button:active {
border: 0 !important;
background: #f1f6f3;
outline: 0;
box-shadow: none !important;
}
.minicart-items .esun-cart-item__qty .item-qty {
width: 42px;
border-right: 1px solid #e2e4e5;
border-left: 1px solid #e2e4e5;
appearance: textfield;
}
.esun-cart-item__qty .item-qty::-webkit-inner-spin-button,
.esun-cart-item__qty .item-qty::-webkit-outer-spin-button {
margin: 0;
appearance: none;
}
.esun-cart-item__qty .update-cart-item {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
}
.esun-cart-item__price {
display: flex;
align-items: baseline;
gap: 8px;
white-space: nowrap;
}
.esun-cart-item__price strong,
.esun-cart-item__price .price {
color: #252525;
font-size: 17px;
}
.esun-cart-item__price .old-price,
.esun-cart-item__price .old-price .price {
color: #8a8d90;
font-size: 11px;
text-decoration: line-through;
}
.esun-cart-drawer .product-item .action {
flex: 0 0 auto;
position: static;
color: #555;
font-size: 13px;
text-decoration: underline;
width: auto;
}
.esun-cart-drawer .product-item .action.delete::before {
display: none;
}
.esun-cart-drawer .product-item .esun-cart-item__remove > span {
position: static;
width: auto;
height: auto;
margin: 0;
padding: 0;
overflow: visible;
clip: auto;
clip-path: none;
white-space: nowrap;
}
.esun-cart-totals {
display: block;
flex: 0 0 auto;
margin: 18px 28px 0;
padding: 16px 0 18px;
border-top: 1px solid #d9dcde;
border-bottom: 1px solid #d9dcde;
}
.esun-cart-total-row {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 29px;
color: #555b60;
font-size: 14px;
}
.esun-cart-total-row .price {
color: inherit;
font-size: inherit;
}
.esun-cart-total-row__pending {
color: #81868a;
font-size: 12px;
}
.esun-cart-total-row--grand {
min-height: 42px;
margin-top: 7px;
padding-top: 9px;
border-top: 1px solid #eceeef;
color: #222;
font-size: 20px;
}
.header-top-link-item.header-minicart
.esun-cart-totals
.action.primary.checkout {
display: block;
width: 100%;
min-height: 44px;
margin-top: 12px;
border-radius: 22px;
background: #18aa59;
color: #fff;
font-weight: 700;
}
.esun-cart-drawer .esun-coupon--mini {
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid #eceeef;
}
.esun-cart-drawer .esun-coupon__title {
margin-bottom: 9px;
color: #292d30;
font-size: 14px;
font-weight: 700;
}
.esun-cart-drawer .esun-coupon__label {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
.esun-cart-drawer .esun-coupon__controls {
display: flex;
gap: 8px;
}
.esun-cart-drawer .esun-coupon__input {
min-width: 0;
height: 40px;
padding: 0 14px;
border: 1px solid #cfd4d7;
border-radius: 20px;
font-size: 13px;
}
.esun-cart-drawer .esun-coupon__button {
flex: 0 0 auto;
min-width: 82px;
height: 40px;
padding: 0 17px;
border: 1px solid #18aa59 !important;
border-radius: 20px;
background: #fff;
color: #168b4b;
font-size: 13px;
font-weight: 700;
}
.esun-cart-drawer .esun-coupon__button:hover {
background: #18aa59;
}
.esun-cart-drawer .esun-coupon__applied {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
min-height: 38px;
color: #4e5357;
font-size: 13px;
}
.esun-cart-drawer .esun-coupon__applied > span {
min-width: 0;
overflow-wrap: anywhere;
}
.esun-cart-drawer .esun-coupon__applied strong {
color: #168b4b;
}
.esun-cart-drawer .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-size: 12px;
font-weight: 700;
line-height: 1.4 !important;
text-decoration: underline;
white-space: nowrap;
}
.esun-cart-drawer .esun-coupon__remove:hover,
.esun-cart-drawer .esun-coupon__remove:focus,
.esun-cart-drawer .esun-coupon__remove:active {
border: 0 !important;
background: transparent !important;
box-shadow: none !important;
color: #116d3c;
}
.esun-cart-drawer .esun-coupon__message {
margin-top: 8px;
font-size: 12px;
}
.esun-cart-drawer .esun-coupon__message.is-error {
color: #c62828;
}
.esun-cart-drawer .esun-coupon__message.is-success {
color: #168b4b;
}
.header-top-link-item.header-minicart
.esun-cart-totals
.action.esun-cart-viewcart {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 44px;
margin-top: 10px;
border: 1px solid #18aa59;
border-radius: 22px;
background: #fff;
color: #18aa59;
font-weight: 700;
text-align: center;
text-decoration: none;
box-sizing: border-box;
}
.header-top-link-item.header-minicart
.esun-cart-totals
.action.esun-cart-viewcart:hover,
.header-top-link-item.header-minicart
.esun-cart-totals
.action.esun-cart-viewcart:focus {
background: #f1f8f4;
color: #138849;
text-decoration: none;
}
.esun-cart-services {
flex: 0 0 auto;
margin: 0 28px;
padding: 14px 0 22px;
}
.esun-cart-service {
padding: 12px 16px;
background: #f5f6f6;
color: #444;
font-size: 11px;
}
.esun-cart-service + .esun-cart-service {
margin-top: 12px;
}
.esun-cart-service h3 {
margin: 0 0 8px;
color: #333;
font-size: 15px;
font-weight: 700;
}
.esun-cart-service p,
.esun-cart-service ul {
margin: 6px 0 0;
}
.esun-cart-service ul {
padding-left: 18px;
}
.esun-cart-service--payment .esun-payment-methods {
display: grid !important;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 8px;
margin-top: 6px;
}
.esun-cart-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-service--payment .esun-payment-methods img {
display: block;
width: auto;
max-width: 100%;
height: 26px;
object-fit: contain;
}
.esun-cart-empty {
display: flex;
flex: 1 1 auto;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 260px;
gap: 20px;
padding: 30px;
color: #464b4f;
}
.esun-cart-wrapper.has-cart-items .esun-cart-empty:not(.esun-cart-loading),
.esun-cart-wrapper:has(#mini-cart > .product-item)
.esun-cart-empty:not(.esun-cart-loading),
.esun-cart-wrapper.is-cart-syncing .esun-cart-empty:not(.esun-cart-loading) {
display: none !important;
}
.esun-cart-wrapper.has-no-cart-items:not(:has(#mini-cart > .product-item))
.esun-cart-items-panel,
.esun-cart-wrapper.has-no-cart-items:not(:has(#mini-cart > .product-item))
.esun-cart-totals {
display: none !important;
}
.esun-cart-wrapper:has(#mini-cart > .product-item) .esun-cart-items-panel {
display: block !important;
}
.esun-cart-wrapper:has(#mini-cart > .product-item) .esun-cart-totals {
display: block !important;
}
.esun-cart-loading {
gap: 14px;
}
.esun-cart-loading__spinner {
width: 30px;
height: 30px;
border: 3px solid #dcefe3;
border-top-color: #159447;
border-radius: 50%;
animation: esun-cart-spin 0.8s linear infinite;
}
@keyframes esun-cart-spin {
to {
transform: rotate(360deg);
}
}
.header-top-link-item.header-minicart .esun-cart-empty .action.primary {
display: inline-flex;
width: auto;
min-width: 176px;
height: auto;
min-height: 44px;
padding: 11px 28px;
border-radius: 22px;
background: #18aa59;
color: #fff;
font-size: 14px;
font-weight: 700;
line-height: 22px;
white-space: nowrap;
box-sizing: border-box;
}
.header-top-link-item.header-minicart .esun-cart-empty .action.primary:hover,
.header-top-link-item.header-minicart .esun-cart-empty .action.primary:focus {
background: #148a47;
color: #fff;
text-decoration: none;
}
@media (max-width: 600px) {
.esun-cart-service--payment .esun-payment-methods {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
.catalog-product-view .esun-product-service--payment {
padding: 0 !important;
}
.header-top-link-item.header-minicart
.esun-cart-wrapper
.block-minicart.esun-cart-drawer {
width: 100vw !important;
max-width: 100vw !important;
}
.esun-cart-drawer__header {
min-height: 62px;
padding: 10px 16px;
}
.esun-cart-drawer__icon {
width: 36px;
height: 36px;
margin-right: 9px;
}
.esun-cart-drawer__title,
.esun-cart-drawer__count {
font-size: 17px;
}
.esun-cart-progress {
min-height: 122px;
padding: 18px 19px 12px;
}
.esun-cart-progress__step {
width: 72px;
}
.esun-cart-progress__value,
.esun-cart-progress__label {
width: 84px;
font-size: 9px;
}
.esun-cart-items-panel {
flex-basis: auto;
min-height: 0;
margin: 0 16px;
}
.esun-cart-drawer .minicart-items .product-item {
padding: 12px;
}
.esun-cart-drawer .product-image-container {
flex-basis: 82px;
width: 82px !important;
height: 82px;
margin-right: 11px;
}
.esun-cart-drawer .product-item-details {
padding-right: 0;
}
.esun-cart-drawer .product-item .action.delete {
font-size: 12px;
}
.esun-cart-item__bottom {
flex-wrap: wrap;
}
.esun-cart-totals,
.esun-cart-services {
margin-right: 16px;
margin-left: 16px;
}
}
@media (prefers-reduced-motion: reduce) {
.header-top-link-item.header-minicart
.esun-cart-wrapper
.esun-cart-backdrop,
.header-top-link-item.header-minicart
.esun-cart-wrapper
.block-minicart.esun-cart-drawer,
.esun-cart-progress__fill {
transition: none;
}
}
.esun-free-gift-label {
display: inline-flex;
align-items: center;
width: fit-content;
margin-top: 4px;
padding: 2px 8px;
border-radius: 999px;
background: #e8f7ef;
color: #138a4b;
font-size: 11px;
font-weight: 700;
}
.esun-cart-item__qty--locked {
align-items: center;
height: auto;
gap: 4px;
border: 0;
border-radius: 0;
overflow: visible;
background: transparent;
color: #353535;
line-height: 1.4;
}