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

380 lines
7.6 KiB
CSS

.esun-reward-use {
border: 1px solid #ddd;
margin: 16px 0;
padding: 16px;
}
.esun-reward-use .action,
.esun-reward-products .action.primary,
.esun-coupon__button {
background: #18aa59;
background-image: none;
border-color: #18aa59;
color: #fff;
}
.esun-reward-use .action:hover,
.esun-reward-use .action:focus,
.esun-reward-products .action.primary:hover,
.esun-reward-products .action.primary:focus,
.esun-coupon__button:hover,
.esun-coupon__button:focus {
background: #148f4b;
background-image: none;
border-color: #148f4b;
color: #fff;
}
.esun-reward-use__title {
font-weight: 700;
margin-bottom: 8px;
}
.esun-reward-use__controls {
display: flex;
gap: 8px;
}
.esun-reward-use__controls input {
max-width: 180px;
}
.checkout-index-index .amcheckout-summary-container .esun-checkout-summary-tool,
.checkout-index-index .amcheckout-summary-container .esun-reward-use {
background: #fff;
border: 1px solid #d8dcde;
border-radius: 14px;
margin: 12px 0;
padding: 18px 20px;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__title {
color: #292d30;
font-size: 16px;
font-weight: 700;
margin-bottom: 11px;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__label {
clip: rect(0, 0, 0, 0);
height: 1px;
overflow: hidden;
position: absolute;
width: 1px;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__controls {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 10px;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__input {
flex: 1 1 auto;
height: 46px;
min-width: 0;
max-width: none;
border: 1px solid #cfd4d7;
border-radius: 23px;
padding: 0 18px;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__button {
background: #fff;
border: 1px solid #18aa59;
border-radius: 23px;
color: #168b4b;
flex: 0 0 auto;
font-weight: 700;
height: 46px;
min-width: 96px;
padding: 0 20px;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__button:hover,
.checkout-index-index .amcheckout-summary-container .esun-coupon__button:focus {
background: #148f4b;
border-color: #148f4b;
color: #fff;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__picker-button {
font-size: 14px;
grid-column: 1 / -1;
justify-self: end;
min-width: 0;
height: auto;
margin-top: 2px;
padding: 0;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__applied {
align-items: center;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 16px;
min-height: 42px;
}
.checkout-index-index
.amcheckout-summary-container
.esun-coupon__applied
.esun-coupon__picker-button {
grid-column: 1 / -1;
justify-self: end;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__applied strong {
color: #168b4b;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__applied > span {
min-width: 0;
overflow-wrap: anywhere;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__remove {
background: transparent !important;
border: 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
color: #168b4b;
height: auto !important;
margin: 0 !important;
min-height: 0 !important;
min-width: 0 !important;
padding: 0 !important;
text-decoration: underline;
white-space: nowrap;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__message {
display: none;
font-size: 13px;
margin-top: 9px;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__message.is-error,
.checkout-index-index .amcheckout-summary-container .esun-coupon__message.is-success {
display: block;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__message.is-error {
color: #c62828;
}
.checkout-index-index .amcheckout-summary-container .esun-coupon__message.is-success {
color: #168b4b;
}
.checkout-index-index .amcheckout-summary-container .esun-reward-use__balance {
margin: 0 0 10px;
}
.checkout-index-index .amcheckout-summary-container .esun-reward-use .note {
margin: 8px 0 0;
}
.esun-reward-account {
color: #333;
font-size: 16px;
}
.esun-reward-hero .esun-account-avatar {
color: #aaa;
font-size: 82px;
}
.esun-reward-hero__content {
min-width: 0;
}
.esun-reward-tier {
background: #050505;
border-radius: 30px;
color: #fff;
margin-left: auto;
min-width: 180px;
padding: 11px 30px;
text-align: center;
}
.esun-reward-tier > span {
display: block;
font-size: 13px;
letter-spacing: .08em;
line-height: 1.2;
text-transform: uppercase;
}
.esun-reward-tier > strong {
color: #fff;
font-size: 23px;
line-height: 1.25;
}
.esun-reward-overview,
.esun-reward-history-panel {
padding: 38px 34px;
}
.esun-reward-account__summary {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
margin-top: 30px;
}
.esun-reward-card {
align-items: center;
background: #fafafa;
box-sizing: border-box;
display: flex;
flex-direction: column;
min-height: 190px;
padding: 27px 20px;
text-align: center;
}
.esun-reward-card + .esun-reward-card {
border-left: 1px solid #e2e2e2;
}
.esun-reward-card > .iconfont {
color: #666;
font-size: 42px;
height: 48px;
line-height: 48px;
margin-bottom: 8px;
}
.esun-reward-card > span {
color: #777;
font-size: 15px;
}
.esun-reward-card > strong {
color: #222;
display: block;
font-size: 25px;
font-weight: 600;
line-height: 1.25;
margin-top: 5px;
}
.esun-reward-card:first-child > strong {
color: #f28c00;
}
.esun-reward-card > small {
color: #888;
display: block;
font-size: 13px;
margin-top: 5px;
}
.esun-reward-history-panel .table-wrapper {
margin-top: 30px;
overflow-x: auto;
}
.esun-reward-history {
border-collapse: collapse;
margin: 0;
min-width: 720px;
width: 100%;
}
.esun-reward-history thead {
background: #fafafa;
}
.esun-reward-history th,
.esun-reward-history td {
border-bottom: 1px solid #e6e6e6;
padding: 16px 18px;
text-align: left;
vertical-align: middle;
}
.esun-reward-history th {
color: #666;
font-size: 14px;
font-weight: 500;
text-transform: uppercase;
}
.esun-reward-history td {
color: #444;
font-size: 15px;
}
.esun-reward-history tbody tr:hover {
background: #fcfcfc;
}
.esun-reward-history__change {
font-weight: 600;
}
.esun-reward-history__change.is-positive {
color: #299b59;
}
.esun-reward-history__change.is-negative {
color: #e45752;
}
.esun-reward-empty {
color: #888;
padding: 48px 20px 30px;
text-align: center;
}
.esun-reward-empty .iconfont {
color: #aaa;
display: block;
font-size: 58px;
line-height: 1;
}
.esun-reward-empty p {
margin: 14px 0 0;
}
@media (max-width: 900px) {
.esun-reward-account__summary {
grid-template-columns: 1fr;
}
.esun-reward-card {
min-height: 0;
}
.esun-reward-card + .esun-reward-card {
border-left: 0;
border-top: 1px solid #e2e2e2;
}
}
@media (max-width: 767px) {
.esun-reward-tier {
margin-left: 0;
min-width: 0;
padding: 9px 22px;
}
.esun-reward-tier > strong {
font-size: 18px;
}
.esun-reward-overview,
.esun-reward-history-panel {
padding: 24px 18px;
}
.esun-reward-account__summary,
.esun-reward-history-panel .table-wrapper {
margin-top: 20px;
}
}