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

762 lines
18 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-index-index .am-checkout {
width: 83.333333%;
margin: 0 auto;
max-width: 1600px;
}
.field-tooltip {
display: none;
}
.checkout-index-index .esun-checkout-services {
display: flex;
flex-direction: column;
gap: 22px;
margin-top: 20px;
}
.checkout-index-index dl.item-options {
margin-bottom: 0;
}
.checkout-index-index .esun-checkout-service--payment {
background: #f5f6f6;
color: #444;
font-size: 12px;
padding: 20px 22px;
}
.checkout-index-index .esun-checkout-service--payment h2 {
color: #333;
font-size: 19px;
font-weight: 700;
margin: 0 0 12px;
}
.checkout-index-index .esun-checkout-service--payment .esun-payment-methods {
align-items: center;
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 8px;
}
.checkout-index-index
.esun-checkout-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;
}
.checkout-index-index
.esun-checkout-service--payment
.esun-payment-methods
img {
display: block;
width: auto;
max-width: 100%;
height: 26px;
object-fit: contain;
}
.checkout-index-index .esun-checkout-service--delivery {
border-top: 1px solid #d9d9d9;
}
.checkout-index-index
.esun-checkout-service--delivery
.esun-product-accordion__item {
border-bottom: 1px solid #d9d9d9;
}
.checkout-index-index
.esun-checkout-service--delivery
.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-index-index
.esun-checkout-service--delivery
.esun-product-accordion__summary::-webkit-details-marker {
display: none;
}
.checkout-index-index
.esun-checkout-service--delivery
.esun-product-accordion__summary::after {
content: "+";
font-size: 18px;
font-weight: 400;
line-height: 1;
}
.checkout-index-index
.esun-checkout-service--delivery
.esun-product-accordion__item[open]
.esun-product-accordion__summary::after {
content: "×";
}
.checkout-index-index
.esun-checkout-service--delivery
.esun-product-accordion__content {
color: #666;
font-size: 13px;
line-height: 1.6;
padding: 0 0 22px;
}
.checkout-index-index .esun-checkout-services .esun-product-service ul {
list-style: none;
margin: 0;
padding: 0;
}
.checkout-index-index .esun-checkout-services .esun-product-service li {
margin: 0 0 8px;
padding-left: 14px;
position: relative;
}
.checkout-index-index .esun-checkout-services .esun-product-service li::before {
content: "·";
left: 0;
position: absolute;
}
.checkout-index-index .esun-checkout-services .esun-product-service a {
color: #666;
text-decoration: underline;
}
/* Keep checkout form spacing consistent across Amasty checkout sections. */
.checkout-index-index
.amcheckout-main-container
.amcheckout-step-container
.field:not(.choice) {
margin-bottom: 16px;
}
.checkout-index-index
.amcheckout-main-container
.amcheckout-step-container
.field:not(.choice)
> .label {
display: block;
line-height: 1.4;
margin: 0 0 6px;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field
> .label,
.checkout-index-index
.amcheckout-form-login
#customer-email-fieldset
> .field
> .label {
box-sizing: border-box;
float: none;
width: 100%;
padding: 0;
text-align: left;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field
> .control,
.checkout-index-index
.amcheckout-form-login
#customer-email-fieldset
> .field
> .control {
box-sizing: border-box;
float: none;
width: 100%;
}
.checkout-index-index
.amcheckout-form-login
.amcheckout-email
.amcheckout-wrapper {
min-width: 0;
}
.checkout-index-index .amcheckout-form-login .amcheckout-email .note {
width: 100%;
margin: 6px 0 0;
line-height: 1.4;
}
.checkout-index-index
.esun-checkout-address-form
.field.street
.control
.nested
.field {
margin-top: 10px;
margin-bottom: 0;
}
.checkout-index-index .am-checkout input[type="text"],
.checkout-index-index .am-checkout input[type="password"],
.checkout-index-index .am-checkout input[type="url"],
.checkout-index-index .am-checkout input[type="tel"],
.checkout-index-index .am-checkout input[type="search"],
.checkout-index-index .am-checkout input[type="number"]:not(.qty),
.checkout-index-index .am-checkout input[type="email"],
.checkout-index-index .am-checkout select,
.checkout-index-index .am-checkout textarea {
box-sizing: border-box;
width: 100%;
border: 1px solid #aeb5b1;
border-radius: 12px;
background-color: #fff;
box-shadow: none;
color: #303437;
font-size: 14px;
transition:
border-color 0.2s ease,
box-shadow 0.2s ease;
}
.checkout-index-index .am-checkout input[type="text"],
.checkout-index-index .am-checkout input[type="password"],
.checkout-index-index .am-checkout input[type="url"],
.checkout-index-index .am-checkout input[type="tel"],
.checkout-index-index .am-checkout input[type="search"],
.checkout-index-index .am-checkout input[type="number"]:not(.qty),
.checkout-index-index .am-checkout input[type="email"] {
height: 42px;
padding: 0 16px;
}
.checkout-index-index .am-checkout select {
height: 42px;
padding: 0 44px 0 16px;
appearance: none;
-webkit-appearance: none;
background-color: #fff;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235b625e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 16px center;
background-size: 14px 8px;
}
.checkout-index-index .am-checkout textarea {
min-height: 96px;
padding: 11px 14px;
line-height: 1.5;
resize: vertical;
}
.checkout-index-index
.am-checkout
input:not([type="checkbox"]):not([type="radio"]):not(.qty):focus,
.checkout-index-index .am-checkout select:focus,
.checkout-index-index .am-checkout textarea:focus {
border-color: #18aa59;
box-shadow: 0 0 0 3px rgba(24, 170, 89, 0.12);
outline: 0;
}
.checkout-index-index
.am-checkout
input.mage-error:not([type="checkbox"]):not([type="radio"]),
.checkout-index-index .am-checkout select.mage-error,
.checkout-index-index .am-checkout textarea.mage-error {
border-color: #d94b4b;
box-shadow: 0 0 0 3px rgba(217, 75, 75, 0.1);
}
/* New shipping address modal lives outside .am-checkout. */
.checkout-index-index .new-shipping-address-modal .modal-inner-wrap {
display: flex;
flex-direction: column;
overflow: hidden;
border-radius: 18px;
background: #fff;
}
.checkout-index-index .new-shipping-address-modal .modal-header {
flex: 0 0 auto;
padding: 26px 32px 16px;
}
.checkout-index-index .new-shipping-address-modal .modal-title {
margin: 0;
padding: 0 48px 14px 0;
border-bottom: 1px solid #dce3df;
color: #292d30;
font-size: 28px;
font-weight: 700;
line-height: 1.25;
}
.checkout-index-index .new-shipping-address-modal .action-close {
top: 16px;
right: 18px;
color: #7d8581;
}
.checkout-index-index .new-shipping-address-modal .modal-content {
flex: 1 1 auto;
overflow-x: hidden;
overflow-y: auto;
padding: 6px 32px 26px;
}
.checkout-index-index .new-shipping-address-modal .esun-checkout-address-form {
width: 100%;
max-width: none;
}
.checkout-index-index
.new-shipping-address-modal
.esun-checkout-address-form
.fieldset.address
> .field:not(.choice)
> .label,
.checkout-index-index
.new-shipping-address-modal
.esun-checkout-address-form
.fieldset.address
> .field:not(.choice)
> .control {
display: block;
width: 100%;
min-width: 0;
max-width: none;
}
.checkout-index-index
.new-shipping-address-modal
.esun-checkout-address-form
.fieldset.address
> .field:not(.choice)
> .label {
margin: 0 0 6px;
color: #303437;
font-size: 14px;
font-weight: 600;
line-height: 1.4;
}
.checkout-index-index
.new-shipping-address-modal
input:not([type="checkbox"]):not([type="radio"]),
.checkout-index-index .new-shipping-address-modal select {
box-sizing: border-box;
width: 100%;
height: 42px;
padding: 0 16px;
border: 1px solid #aeb5b1;
border-radius: 12px;
background-color: #fff;
box-shadow: none;
color: #303437;
font-size: 14px;
}
.checkout-index-index .new-shipping-address-modal select {
padding-right: 44px;
appearance: none;
-webkit-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235b625e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 16px center;
background-size: 14px 8px;
}
.checkout-index-index
.new-shipping-address-modal
input:not([type="checkbox"]):not([type="radio"]):focus,
.checkout-index-index .new-shipping-address-modal select:focus {
border-color: #18aa59;
box-shadow: 0 0 0 3px rgba(24, 170, 89, 0.12);
outline: 0;
}
.checkout-index-index .new-shipping-address-modal .field.choice {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 9px;
margin-top: 2px;
}
.checkout-index-index .new-shipping-address-modal .field.choice .label {
margin: 0;
font-size: 14px;
font-weight: 400;
}
.checkout-index-index .new-shipping-address-modal .modal-footer {
display: flex;
flex: 0 0 auto;
align-items: center;
justify-content: flex-end;
gap: 12px;
padding: 18px 32px 22px;
border-top: 1px solid #e2e7e4;
background: #fff;
}
.checkout-index-index .new-shipping-address-modal .modal-footer .action {
display: inline-flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
min-width: 112px;
height: 42px;
margin: 0;
padding: 0 22px;
border-radius: 21px;
box-shadow: none;
font-size: 14px;
font-weight: 700;
line-height: 1;
}
.checkout-index-index
.new-shipping-address-modal
.modal-footer
.action-hide-popup {
order: 1;
border: 1px solid #18aa59;
background: #fff;
color: #168b4b;
}
.checkout-index-index
.new-shipping-address-modal
.modal-footer
.action-save-address {
order: 2;
border: 1px solid #18aa59;
background: #18aa59;
color: #fff;
}
.checkout-index-index
.new-shipping-address-modal
.modal-footer
.action-hide-popup:hover,
.checkout-index-index
.new-shipping-address-modal
.modal-footer
.action-hide-popup:focus {
border-color: #148f4b;
background: #f2fbf6;
color: #148f4b;
}
.checkout-index-index
.new-shipping-address-modal
.modal-footer
.action-save-address:hover,
.checkout-index-index
.new-shipping-address-modal
.modal-footer
.action-save-address:focus {
border-color: #148f4b;
background: #148f4b;
color: #fff;
}
.checkout-index-index .am-checkout.-classic .checkout-block {
border: 1px solid #dcefe4;
border-radius: 14px;
box-shadow: none;
transition:
border-color 0.2s ease,
box-shadow 0.2s ease;
}
.checkout-index-index .am-checkout.-classic .checkout-block:hover {
border-color: #cce8d8;
box-shadow: none;
}
.checkout-index-index .am-checkout.-classic .checkout-block:focus-within {
border-color: #b8dfca;
box-shadow: 0 6px 20px rgba(24, 170, 89, 0.1);
}
.opc-block-summary .mark .value {
display: none;
}
@media (min-width: 768px) {
.checkout-index-index .new-shipping-address-modal .modal-inner-wrap {
left: 50%;
width: min(860px, calc(100% - 48px));
max-width: 860px;
max-height: calc(100vh - 48px);
margin: 24px 0 0;
transform: translateX(-50%);
}
.checkout-index-index .esun-checkout-address-form .fieldset.address {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 18px 20px;
margin-right: 0;
margin-left: 0;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field {
grid-column: 1 / -1;
width: auto;
margin-bottom: 0;
padding-right: 0;
padding-left: 0;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".firstname"],
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".lastname"] {
grid-column: span 3;
order: 10;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".company"] {
order: 15;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field.street {
order: 20;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".city"] {
order: 30;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".country_id"],
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".region_id"],
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".region"],
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".postcode"] {
grid-column: span 2;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".country_id"] {
order: 40;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".region_id"],
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".region"] {
order: 41;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".postcode"] {
order: 42;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field[name$=".telephone"] {
grid-column: 1 / -1;
order: 18;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field.choice {
order: 100;
}
}
@media (max-width: 767px) {
.checkout-index-index .modal-popup.new-shipping-address-modal {
right: 0;
left: 0;
width: auto;
}
.checkout-index-index
.modal-popup.new-shipping-address-modal
.modal-inner-wrap[class] {
width: auto;
height: calc(100dvh - 24px);
min-height: 0;
max-height: calc(100dvh - 24px);
margin: 12px;
border-radius: 16px;
background: #fff;
}
.checkout-index-index .new-shipping-address-modal .modal-header {
padding: 20px 20px 12px;
}
.checkout-index-index .new-shipping-address-modal .modal-title {
padding: 0 40px 12px 0;
font-size: 22px;
}
.checkout-index-index .new-shipping-address-modal .action-close {
top: 9px;
right: 10px;
}
.checkout-index-index .new-shipping-address-modal .modal-content {
padding: 4px 20px 20px;
}
.checkout-index-index
.new-shipping-address-modal
.esun-checkout-address-form
.fieldset.address
> .field {
width: 100%;
margin-bottom: 14px;
padding: 0;
}
.checkout-index-index
.new-shipping-address-modal
input:not([type="checkbox"]):not([type="radio"]),
.checkout-index-index .new-shipping-address-modal select {
height: 42px;
border-radius: 10px;
font-size: 16px;
}
.checkout-index-index .new-shipping-address-modal .modal-footer {
gap: 10px;
padding: 14px 20px 18px;
}
.checkout-index-index .new-shipping-address-modal .modal-footer .action {
flex: 1 1 0;
min-width: 0;
padding: 0 14px;
}
.checkout-index-index .opc-estimated-wrapper {
display: none;
}
.checkout-index-index .am-checkout {
width: 100%;
}
.checkout-index-index .am-checkout.-classic .checkout-block {
margin: 0 0 16px;
padding: 18px 14px;
border-radius: 12px;
}
.checkout-index-index .esun-checkout-address-form .fieldset.address {
margin-right: 0;
margin-left: 0;
}
.checkout-index-index
.esun-checkout-address-form
.fieldset.address
> .field {
margin-bottom: 14px;
padding-right: 0;
padding-left: 0;
}
.checkout-index-index
.amcheckout-main-container
.amcheckout-step-container
.field:not(.choice)
> .label {
margin-bottom: 5px;
}
.checkout-index-index
.amcheckout-main-container
.amcheckout-step-container
input:not([type="checkbox"]):not([type="radio"]),
.checkout-index-index
.amcheckout-main-container
.amcheckout-step-container
select,
.checkout-index-index
.amcheckout-main-container
.amcheckout-step-container
textarea {
box-sizing: border-box;
font-size: 16px;
}
.checkout-index-index .am-checkout input[type="text"],
.checkout-index-index .am-checkout input[type="password"],
.checkout-index-index .am-checkout input[type="url"],
.checkout-index-index .am-checkout input[type="tel"],
.checkout-index-index .am-checkout input[type="search"],
.checkout-index-index .am-checkout input[type="number"]:not(.qty),
.checkout-index-index .am-checkout input[type="email"],
.checkout-index-index .am-checkout select {
height: 42px;
border-radius: 10px;
}
.checkout-index-index .am-checkout textarea {
border-radius: 10px;
}
}