.cart-area,
.checkout-area {
    padding-top: 10px;
}

.table-content {
    overflow-x: auto;
    border: 1px solid #e5ebf2;
    background: #fff;
}

.apt-cart-table {
    margin: 0;
    min-width: 760px;
}

.apt-cart-table th,
.apt-cart-table td {
    vertical-align: middle;
    border-bottom: 1px solid #e5ebf2;
    padding: 16px 14px;
}

.apt-cart-table thead th {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    text-transform: uppercase;
}

.product-thumbnail img,
.your-order-table .product-name img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.product-name a,
.your-order-table .product-name {
    color: #0f172a;
    text-decoration: none;
}

.apt-cart-meta {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

.cart-plus-minus input {
    width: 88px;
    min-height: 46px;
    border: 1px solid #d7e0ea;
    background: #fff;
    text-align: center;
    padding: 0 10px;
}

.apt-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.apt-qty-control .cart-plus-minus input,
.apt-qty-control .apt-qty-input {
    width: 68px;
    min-height: 46px;
    height: 46px;
    border: 0;
    border-left: 1px solid #d7e0ea;
    border-right: 1px solid #d7e0ea;
    border-radius: 0;
    box-shadow: none;
}

.apt-qty-btn {
    width: 42px;
    min-height: 46px;
    border: 0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.apt-qty-btn:hover {
    background: #e2e8f0;
}

.apt-qty-btn:focus-visible {
    outline: 2px solid rgba(195, 127, 45, 0.35);
    outline-offset: -2px;
}

.remove-from-cart {
    border: 0;
    background: transparent;
    color: var(--apt-red);
    font-size: 18px;
    line-height: 1;
}

.coupon-all {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.t-y-btn,
.t-y-btn-border,
.t-y-btn-grey {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    border: 1px solid var(--apt-primary);
    border-radius: 2px;
    background: var(--apt-primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
    padding: 0 16px;
}

.t-y-btn:hover,
.t-y-btn-border:hover,
.t-y-btn-grey:hover {
    background: #01044f;
    border-color: #01044f;
    color: #fff;
    text-decoration: none;
}

.t-y-btn-border,
.t-y-btn-grey {
    background: #fff;
    color: var(--apt-primary);
}

.cart-page-total,
.your-order,
.checkbox-form,
.coupon-accordion {
    border: 1px solid #e5ebf2;
    background: #fff;
    padding: 24px;
    margin: 20px 0px;
}

.cart-page-total h2,
.your-order h3,
.checkbox-form h3 {
    margin-bottom: 18px;
    color: #0f172a;
}

.cart-page-total ul,
.your-order-table table {
    width: 100%;
    margin: 0;
}

.your-order > table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.cart-page-total ul {
    list-style: none;
    padding: 0;
}

.cart-page-total li,
.your-order-table th,
.your-order-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5ebf2;
}

.your-order > table tr {
    border-bottom: 1px solid #e5ebf2;
}

.your-order > table tr:last-child {
    border-bottom: 0;
}

.your-order > table th,
.your-order > table td {
    padding: 14px 0;
    vertical-align: middle;
}

.your-order > table th {
    color: #334155;
    font-weight: 400;
}

.your-order > table td {
    text-align: end;
}

.your-order > table td .amount {
    display: inline-flex;
    justify-content: flex-end;
    width: 100%;
}

.cart-page-total li:last-child,
.your-order-table tr:last-child th,
.your-order-table tr:last-child td {
    border-bottom: 0;
}

.your-order-table table {
    border-collapse: collapse;
}

.your-order-table .product-name {
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: start;
}

.your-order-table .product-quantity {
    color: #64748b;
    font-weight: 500;
}

.coupon-accordion {
    margin-bottom: 24px;
    padding: 18px 24px;
}

.coupon-accordion h3 {
    margin: 0;
    font-size: 15px;
    color: #475569;
}

.coupon-accordion span {
    color: var(--apt-primary);
}

.apt-address-card__summary {
    border: 1px solid #e5ebf2;
    background: #f8fafc;
    padding: 18px;
    margin-bottom: 18px;
}

.apt-address-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.apt-address-card__summary div + div {
    margin-top: 6px;
}

.installmentsAds {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e5ebf2;
    background: #fff;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.installmentsAds img {
    width: 96px;
    max-width: 30%;
}

.installmentsAds span {
    color: #334155;
    font-size: 14px;
}

.apt-store-preview {
    margin-top: 12px;
    color: #475569;
}

#checkoutShippingAccordion .accordion-button.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.apt-inline-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--apt-primary);
    font-weight: 700;
    text-decoration: underline;
}

.apt-login-modal__dialog {
    width: min(480px, calc(100vw - 32px));
}

.apt-login-modal__form {
    display: grid;
    gap: 12px;
}

.checkout-form-list,
.country-select {
    margin-bottom: 18px;
}

.checkout-form-list label,
.country-select label,
.ship-different-title label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
}

.checkout-form-list input,
.country-select select {
    width: 100%;
    min-height: 36px;
    border: 1px solid #d7e0ea;
    background: #fff;
    padding: 0 14px;
}

.checkout-form-list input.is-invalid,
.country-select select.is-invalid,
.country-select .nice-select.is-invalid {
    border-color: #dc2626;
}

.checkout-error {
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
    line-height: 1.4;
}

.checkout-error--block {
    margin-bottom: 14px;
}

.required {
    color: #dc2626;
}

.checkout-location-trigger {
    width: 100%;
    margin-bottom: 18px;
}

.country-select .nice-select {
    width: 100%;
    min-height: 34px;
    border: 1px solid #d7e0ea;
    border-radius: 0;
    line-height: 36px;
    font-size: 14px;
}

.country-select .nice-select .current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-select .nice-select .nice-select-dropdown {
    left: 0;
    right: 0;
    max-height: 260px;
    z-index: 30;
}

.country-select .nice-select .nice-select-search {
    margin: 0;
}

.apt-location-modal[hidden] {
    display: none;
}

.apt-location-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.apt-location-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.apt-location-modal__dialog {
    position: relative;
    width: min(720px, calc(100vw - 32px));
    margin: 6vh auto 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.apt-location-modal__header,
.apt-location-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #e5ebf2;
}

.apt-location-modal__footer {
    border-top: 1px solid #e5ebf2;
    border-bottom: 0;
    justify-content: flex-end;
}

.apt-location-modal__title {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
}

.apt-location-modal__close {
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 20px;
    line-height: 1;
}

.apt-location-modal__body {
    padding: 18px 22px 10px;
}

.apt-payment-modal[hidden] {
    display: none !important;
}

.apt-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.apt-payment-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
}

.apt-payment-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, calc(100vw - 32px));
    margin: 40px auto;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.apt-payment-modal__header {
    padding: 18px 24px 0;
}

.apt-payment-modal__header h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.apt-payment-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #dbe3ec;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.apt-payment-modal__body {
    padding: 16px;
}

.apt-payment-modal__body iframe {
    width: 100%;
    height: min(78vh, 680px);
    border: 0;
    border-radius: 18px;
}

.apt-location-map {
    height: 420px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d7e0ea;
    background: #f8fafc;
}

.apt-location-modal__hint {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}

body.apt-modal-open {
    overflow: hidden;
}

.different-address {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid #e5ebf2;
}

.ship-different-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ship-different-title input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.payment-method .accordion-item {
    border: 1px solid #e5ebf2;
    margin-bottom: 12px;
    background: #fff;
}

.payment-method .accordion-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: 0;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: none;
}

.payment-method .payments-img {
    width: 40px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 auto;
}

.payment-method .accordion-button input[type="radio"] {
    width: 16px;
    height: 16px;
}

.payment-method .accordion-button.collapsed {
    color: #334155;
}

.payment-method .accordion-body {
    padding: 0 16px 16px;
    color: #475569;
}

.accordion-collapse {
    display: none;
}

.accordion-collapse.show {
    display: block;
}

.order-button-payment {
    margin-top: 20px;
}

.apt-checkout-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #e5ebf2;
    background: #fff;
    color: #334155;
}

.apt-checkout-notice--gift {
    background: #fff7e6;
    border-color: #ffe3b3;
}

.apt-checkout-notice--info {
    background: #f0f7ff;
    border-color: #cfe6ff;
}

.apt-checkout-notice--success {
    background: #f0fff4;
    border-color: #c9f2d3;
}

.apt-success-page {
    padding-top: 18px;
}

.apt-success-hero,
.apt-success-card,
.apt-success-bank-transfer {
    border: 1px solid #e5ebf2;
    background: #fff;
}

.apt-success-hero {
    margin: 20px auto 24px;
    padding: 32px 28px;
    text-align: center;
}

.apt-success-hero--failed {
    max-width: 720px;
}

.apt-success-hero__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: #16a34a;
}

.apt-success-hero--failed .apt-success-hero__icon {
    background: #dc2626;
}

.apt-success-hero h2 {
    margin-bottom: 10px;
    color: #0f172a;
}

.apt-success-hero p {
    margin-bottom: 10px;
    color: #475569;
}

.apt-success-hero__meta strong,
.apt-success-hero__reward strong {
    color: #0f172a;
}

.apt-success-hero__reward {
    color: #15803d;
}

.apt-success-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.apt-success-hero__danger {
    border-color: #dc2626;
    color: #dc2626;
    background: #fff;
}

.apt-success-hero__danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.apt-success-bank-transfer {
    margin-bottom: 24px;
    padding: 24px;
}

.apt-success-bank-transfer__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.apt-success-bank-transfer__header h3 {
    margin: 0;
    color: #0f172a;
}
.apt-success-bank-transfer__header img {
    height: 28px;
}

.apt-success-bank-transfer__body {
    color: #334155;
    line-height: 1.8;
}

.apt-success-bank-transfer__body strong {
    color: #0f172a;
    font-weight: 700;
}

.apt-success-bank-transfer__body a {
    color: inherit;
    text-decoration: none;
}

.apt-success-bank-transfer__body a:hover {
    text-decoration: underline;
}

.apt-success-bank-transfer__body p:last-child {
    margin-bottom: 0;
}

.apt-success-card {
    padding: 24px;
}

.apt-success-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e5ebf2;
}

.apt-success-item:first-child {
    padding-top: 0;
}

.apt-success-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.apt-success-item__media {
    width: 78px;
    min-width: 78px;
    margin: 0;
}

.apt-success-item__media img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.apt-success-item__content {
    flex: 1 1 auto;
}

.apt-success-item__content h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
}

.apt-success-item__price {
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}

.apt-success-summary__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5ebf2;
}

.apt-success-summary__row:last-child {
    border-bottom: 0;
}

.apt-success-summary__label {
    color: #334155;
}

.apt-success-summary__label span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

.apt-success-summary__value {
    text-align: end;
    color: #0f172a;
    white-space: nowrap;
}

.apt-success-summary__row--total .apt-success-summary__label span {
    display: inline;
    margin-top: 0;
    margin-inline-start: 4px;
}

@media (max-width: 991.98px) {
    .cart-page-total {
        margin-top: 24px;
    }

    .your-order {
        margin-top: 24px;
    }
}

@media (max-width: 767.98px) {
    .cart-page-total,
    .your-order,
    .checkbox-form,
    .coupon-accordion {
        padding: 18px;
    }

    .your-order-table .product-name {
        align-items: flex-start;
    }

    .apt-payment-modal__dialog {
        width: calc(100vw - 18px);
        margin: 12px auto;
    }

    .apt-payment-modal__body iframe {
        height: 72vh;
    }

    .apt-success-hero,
    .apt-success-card,
    .apt-success-bank-transfer {
        padding: 18px;
    }

    .apt-success-item {
        align-items: flex-start;
    }

    .apt-success-item__price {
        min-width: 86px;
    }
}

th{
    font-weight: 400;
}
.order-total th,
.order-total td {
    font-weight: bold;
}

.coupon-area .input-group {
    display: flex;
    gap: 8px;
}
