.tgwv-cart-page {
    padding: 2rem 0 3.5rem;
}

.tgwv-checkout-page {
    padding: 2rem 0 3.5rem;
    width: 100%;
}

.tgwv-cart-page__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e8ecf1;
}

.tgwv-cart-page__title,
.tgwv-checkout-page__title {
    margin: 0;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.tgwv-cart-page__meta {
    margin: 0.35rem 0 0;
    font-size: 15px;
    color: #64748b;
}

.tgwv-cart-page__continue-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 15px;
    font-weight: 600;
    color: var(--tgwv-brand, #000000);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tgwv-cart-page__continue-link::before {
    content: "←";
    font-size: 16px;
    line-height: 1;
}

.tgwv-cart-page__continue-link:hover {
    color: color-mix(in srgb, var(--tgwv-brand, #000000) 78%, #000000);
}

.tgwv-cart-empty {
    max-width: 28rem;
    margin: 2rem auto 3rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid #e8ecf1;
    border-radius: 20px;
    background: var(--tgwv-color-light);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.tgwv-cart-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.06);
    color: var(--tgwv-brand, #000000);
    box-shadow: 0 4px 16px rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.08);
}

.tgwv-cart-empty__title {
    margin: 0 0 0.5rem;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.tgwv-cart-empty__hint {
    margin: 0 0 1.5rem;
    font-size: 15px;
    color: #64748b;
    line-height: 1.55;
}

.tgwv-cart-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        var(--tgwv-brand, #000000) 0%,
        color-mix(in srgb, var(--tgwv-brand, #000000) 82%, #000000) 100%
    );
    color: var(--tgwv-color-light);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tgwv-cart-empty__btn:hover {
    color: var(--tgwv-color-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.28);
}

.tgwv-cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

.tgwv-cart-list {
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    background: var(--tgwv-color-light);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.tgwv-cart-list__head {
    display: none;
}

.tgwv-cart-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.tgwv-cart-item:last-child {
    border-bottom: 0;
}

.tgwv-cart-item__product {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.tgwv-cart-item__thumb-link {
    flex: 0 0 auto;
    text-decoration: none;
}

.tgwv-cart-item__thumb {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.tgwv-cart-item__thumb--placeholder {
    background: linear-gradient(145deg, #e2e8f0 0%, #f1f5f9 100%);
}

.tgwv-cart-item__info {
    min-width: 0;
    flex: 1;
}

.tgwv-cart-item__title {
    display: block;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #0f172a;
    text-decoration: none;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: color 0.2s ease;
}

.tgwv-cart-item__title:hover {
    color: var(--tgwv-brand, #000000);
}

.tgwv-cart-item__price-mobile {
    display: block;
    margin: 0.4rem 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.tgwv-cart-item__label {
    color: #94a3b8;
    font-weight: 500;
    font-size: 13px;
    margin-right: 0.25rem;
}

.tgwv-cart-item__price,
.tgwv-cart-item__line-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.65rem;
    margin-top: 0.15rem;
    border-top: 1px solid #f1f5f9;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.tgwv-cart-item__price {
    display: none;
}

.tgwv-cart-item__qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.65rem;
    margin-top: 0.15rem;
    border-top: 1px solid #f1f5f9;
}

.tgwv-cart-item__qty::before,
.tgwv-cart-item__line-total::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.tgwv-cart-item__line-total .tgwv-cart-line-total {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.tgwv-cart-item__qty .tgwv-cart-qty-stepper {
    width: fit-content;
}

/* Qty stepper — self-contained (cart page không load product-single CSS) */
.tgwv-cart-qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--tgwv-color-light);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.tgwv-cart-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    min-height: 2.5rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: #f8fafc;
    color: #475569;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.tgwv-cart-qty-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
}

.tgwv-cart-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tgwv-cart-qty-input {
    width: 2.75rem;
    min-height: 2.5rem;
    margin: 0;
    padding: 0 0.25rem;
    border: 0;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    background: var(--tgwv-color-light);
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.tgwv-cart-qty-input::-webkit-outer-spin-button,
.tgwv-cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tgwv-cart-qty-input:focus {
    outline: none;
    background: #f8fafc;
}

.tgwv-cart-item__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.55rem 0.9rem;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: var(--tgwv-color-light);
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tgwv-cart-item__action {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.25rem;
}

.tgwv-cart-item__remove:hover {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fca5a5;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.tgwv-cart-item__remove-text {
    display: inline;
}

.tgwv-cart-summary__box {
    padding: 1.5rem;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    background: var(--tgwv-color-light);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
}

.tgwv-cart-summary__title {
    margin: 0 0 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.tgwv-cart-summary__rows {
    margin: 0 0 1.35rem;
    padding: 0;
}

.tgwv-cart-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 15px;
}

.tgwv-cart-summary__row dt,
.tgwv-cart-summary__row dd {
    margin: 0;
}

.tgwv-cart-summary__row dt {
    color: #64748b;
}

.tgwv-cart-summary__row dd {
    font-weight: 600;
    color: #0f172a;
}

.tgwv-cart-summary__row--total {
    margin-top: 0.5rem;
    padding: 1rem 0 0;
    border-top: 2px solid #f1f5f9;
    font-size: 17px;
}

.tgwv-cart-summary__row--total dt {
    color: #0f172a;
    font-weight: 700;
}

.tgwv-cart-summary__row--total dd {
    font-size: 22px;
    font-weight: 800;
    color: var(--tgwv-brand, #000000);
    letter-spacing: -0.02em;
}

.tgwv-cart-summary__checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.1rem;
    margin-bottom: 0.85rem;
    padding: 0.8rem 1.25rem;
    border-radius: 12px;
    /* Theme settings → Primary → --tgwv-brand */
    background: linear-gradient(
        135deg,
        var(--tgwv-brand, #000000) 0%,
        color-mix(in srgb, var(--tgwv-brand, #000000) 82%, #000000) 100%
    );
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tgwv-cart-summary__checkout:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.34);
}

.tgwv-cart-summary__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
    font-size: 13px;
    color: #64748b;
}

.tgwv-cart-summary__note svg {
    flex-shrink: 0;
    color: var(--tgwv-brand, #000000);
}

.tgwv-cart-summary__continue {
    display: block;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--tgwv-brand, #000000);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tgwv-cart-summary__continue:hover {
    color: color-mix(in srgb, var(--tgwv-brand, #000000) 78%, #000000);
    text-decoration: underline;
}

/* Cart remove confirm modal */
html.tgwv-cart-confirm-open,
html.tgwv-cart-confirm-open body {
    overflow: hidden;
}

.tgwv-cart-confirm {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.tgwv-cart-confirm[hidden] {
    display: none !important;
}

.tgwv-cart-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
}

.tgwv-cart-confirm__dialog {
    position: relative;
    width: min(100%, 26rem);
    padding: 1.5rem;
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    background: var(--tgwv-color-light);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    text-align: center;
    animation: tgwv-cart-confirm-in 0.22s ease;
}

@keyframes tgwv-cart-confirm-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tgwv-cart-confirm__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    background: #fef2f2;
    color: #dc2626;
}

.tgwv-cart-confirm__title {
    margin: 0 0 0.5rem;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.tgwv-cart-confirm__message {
    margin: 0 0 0.65rem;
    font-size: 15px;
    line-height: 1.5;
    color: #64748b;
}

.tgwv-cart-confirm__product {
    margin: 0 0 1.15rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    word-break: break-word;
}

.tgwv-cart-confirm__product[hidden] {
    display: none !important;
}

.tgwv-cart-confirm__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.tgwv-cart-confirm__btn {
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tgwv-cart-confirm__btn--cancel {
    border: 1px solid #e2e8f0;
    background: var(--tgwv-color-light);
    color: #475569;
}

.tgwv-cart-confirm__btn--cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.tgwv-cart-confirm__btn--danger {
    border: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--tgwv-color-light);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}

.tgwv-cart-confirm__btn--danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.34);
}

@media (max-width: 420px) {
    .tgwv-cart-confirm__actions {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   Checkout page
   ===================================================================== */
.tgwv-checkout-page__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.75rem;
}

.tgwv-checkout-page__meta {
    margin: 0.35rem 0 0;
    font-size: 15px;
    color: #6b7280;
}

.tgwv-checkout-page__back-link {
    display: none;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--tgwv-brand, #000000);
    text-decoration: none;
}

.tgwv-checkout-page__back-link:hover {
    color: color-mix(in srgb, var(--tgwv-brand, #000000) 78%, #000000);
    text-decoration: underline;
}

.tgwv-checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    width: 100%;
}

.tgwv-checkout-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.tgwv-checkout-form__alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.tgwv-checkout-form__alert[hidden] {
    display: none !important;
}

.tgwv-checkout-field--error .tgwv-checkout-input,
.tgwv-checkout-input.tgwv-checkout-input--error {
    border-color: #dc2626;
    background-color: #fffbfb;
}

.tgwv-checkout-field--error .tgwv-checkout-select,
.tgwv-checkout-select.tgwv-checkout-input--error {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 12px 8px;
}

.tgwv-checkout-field--error .tgwv-checkout-input:focus,
.tgwv-checkout-input.tgwv-checkout-input--error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.tgwv-checkout-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 13px;
    font-weight: 500;
    color: #dc2626;
    line-height: 1.4;
}

.tgwv-checkout-error[hidden] {
    display: none !important;
}

.tgwv-checkout-panel {
    margin-bottom: 1.25rem;
    padding: 1.35rem;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    background: var(--tgwv-color-light);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.tgwv-checkout-panel:last-of-type {
    margin-bottom: 0;
}

.tgwv-checkout-panel__title {
    margin: 0 0 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f7;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.tgwv-checkout-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.tgwv-checkout-field--full {
    grid-column: 1 / -1;
}

.tgwv-checkout-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.tgwv-checkout-required {
    color: #dc2626;
}

.tgwv-checkout-input {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background-color: var(--tgwv-color-light);
    color: #111827;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tgwv-checkout-input::placeholder {
    color: #9ca3af;
}

.tgwv-checkout-input:focus {
    outline: none;
    border-color: var(--tgwv-brand, #000000);
    box-shadow: 0 0 0 3px rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.14);
}

.tgwv-checkout-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--tgwv-color-light, #fff);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 12px 8px;
    padding-right: 2.25rem;
    cursor: pointer;
}

.tgwv-checkout-select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.85;
}

.tgwv-checkout-textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.tgwv-checkout-payment {
    display: grid;
    gap: 0.75rem;
}

.tgwv-checkout-payment__option {
    display: block;
    margin: 0;
    cursor: pointer;
}

.tgwv-checkout-payment__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tgwv-checkout-payment__card {
    display: block;
    padding: 1rem 1.1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    background: #fafbfc;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tgwv-checkout-payment__name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.tgwv-checkout-payment__hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.45;
}

.tgwv-checkout-payment__input:checked + .tgwv-checkout-payment__card {
    border-color: var(--tgwv-brand, #000000);
    background: rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.06);
    box-shadow: 0 0 0 3px rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.1);
}

.tgwv-checkout-payment__option:hover .tgwv-checkout-payment__card {
    border-color: color-mix(in srgb, var(--tgwv-brand, #000000) 55%, #ffffff);
}

.tgwv-checkout-payment__option.is-disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.tgwv-checkout-payment__option.is-disabled:hover .tgwv-checkout-payment__card {
    border-color: #e5e7eb;
}

.tgwv-checkout-payment__option.is-disabled .tgwv-checkout-payment__card {
    background: #f3f4f6;
}

.tgwv-checkout-payment__hint--warn {
    color: #b45309;
    font-weight: 600;
}

.tgwv-checkout-form__submit-mobile {
    margin-top: 1.25rem;
}

.tgwv-checkout-form__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.75rem 0 0;
    font-size: 13px;
    color: #6b7280;
}

.tgwv-checkout-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    margin: 0;
    padding: 0.75rem 1.25rem;
    border: 0;
    border-radius: 12px;
    /* Theme settings → Primary → --tgwv-brand */
    background: linear-gradient(
        135deg,
        var(--tgwv-brand, #000000) 0%,
        color-mix(in srgb, var(--tgwv-brand, #000000) 82%, #000000) 100%
    );
    color: var(--tgwv-color-light);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.tgwv-checkout-submit:hover {
    transform: translateY(-1px);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--tgwv-brand, #000000) 88%, #000000) 0%,
        color-mix(in srgb, var(--tgwv-brand, #000000) 72%, #000000) 100%
    );
    box-shadow: 0 8px 22px rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.34);
}

.tgwv-checkout-submit:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.tgwv-checkout-submit--sidebar {
    margin-bottom: 0.75rem;
}

.tgwv-checkout-summary {
    padding: 1.35rem;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    background: linear-gradient(180deg, #fafbfc 0%, #f4f6f9 100%);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.tgwv-checkout-summary__title {
    margin: 0 0 1rem;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.tgwv-checkout-summary__items {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    max-height: 16rem;
    overflow-y: auto;
}

.tgwv-checkout-summary__item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px dashed #e2e6ed;
}

.tgwv-checkout-summary__item:last-child {
    border-bottom: 0;
}

.tgwv-checkout-summary__thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e8ecf1;
    background: #f3f4f6;
}

.tgwv-checkout-summary__thumb--placeholder {
    display: block;
    background: linear-gradient(135deg, #e8ecf1 0%, #f3f4f6 100%);
}

.tgwv-checkout-summary__item-body {
    min-width: 0;
}

.tgwv-checkout-summary__item-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    overflow-wrap: break-word;
}

.tgwv-checkout-summary__item-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 13px;
    color: #6b7280;
}

.tgwv-checkout-summary__item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--tgwv-brand, #000000);
    white-space: nowrap;
}

.tgwv-checkout-voucher {
    margin: 0 0 0.85rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid #e2e6ed;
}

.tgwv-checkout-voucher__title {
    margin: 0 0 0.5rem;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.tgwv-checkout-voucher__row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.tgwv-checkout-voucher__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #111827;
}

.tgwv-checkout-voucher__input:focus {
    outline: none;
    border-color: var(--tgwv-brand, #166534);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tgwv-brand, #166534) 18%, transparent);
}

.tgwv-checkout-voucher__input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.tgwv-checkout-voucher__input[readonly] {
    background: #f9fafb;
}

.tgwv-checkout-voucher__btn {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 1rem;
    border: 0;
    border-radius: 10px;
    background: var(--tgwv-brand, #166534);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.tgwv-checkout-voucher__btn:hover:not(:disabled) {
    filter: brightness(0.92);
}

.tgwv-checkout-voucher__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.tgwv-checkout-voucher__btn--remove {
    background: #6b7280;
}

.tgwv-checkout-voucher__login-hint,
.tgwv-checkout-voucher__msg {
    margin: 0.45rem 0 0;
    font-size: 13px;
    line-height: 1.4;
}

.tgwv-checkout-voucher__login-hint,
.tgwv-checkout-voucher__login-hint a {
    color: #dc2626;
    text-decoration: none;
}

.tgwv-checkout-voucher__login-hint a:hover {
    text-decoration: underline;
}

.tgwv-checkout-voucher__msg {
    color: var(--tgwv-brand, #166534);
}

.tgwv-checkout-voucher__msg.is-error {
    color: #dc2626;
}

.tgwv-checkout-summary__sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.35rem;
    font-size: 14px;
}

.tgwv-checkout-summary__sub-row dt,
.tgwv-checkout-summary__sub-row dd {
    margin: 0;
}

.tgwv-checkout-summary__sub-row dt {
    font-weight: 600;
    color: #4b5563;
}

.tgwv-checkout-summary__sub-row dd {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.tgwv-checkout-summary__sub-row--discount dd {
    color: #dc2626;
}

.tgwv-checkout-summary__total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.1rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid #e2e6ed;
    font-size: 17px;
}

.tgwv-checkout-summary__total-row dt,
.tgwv-checkout-summary__total-row dd {
    margin: 0;
}

.tgwv-checkout-summary__total-row dt {
    font-weight: 700;
    color: #111827;
}

.tgwv-checkout-summary__total-row dd {
    font-size: 19px;
    font-weight: 700;
    color: var(--tgwv-brand, #000000);
}

.tgwv-checkout-summary__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
    font-size: 13px;
    color: #6b7280;
}

.tgwv-checkout-summary__edit {
    display: block;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--tgwv-brand, #000000);
    text-decoration: none;
}

.tgwv-checkout-summary__edit:hover {
    color: color-mix(in srgb, var(--tgwv-brand, #000000) 78%, #000000);
    text-decoration: underline;
}

.tgwv-checkout-success-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.tgwv-checkout-success {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon body"
        "icon pdf";
    gap: 0.35rem 1.25rem;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
    text-align: left;
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 48%, #fff 100%);
    box-shadow: 0 8px 30px rgba(15, 118, 110, 0.08);
    position: relative;
    overflow: hidden;
}

.tgwv-checkout-success::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #059669 0%, #10b981 100%);
}

.tgwv-checkout-success__icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0;
    border-radius: 999px;
    background: var(--tgwv-color-light);
    color: #059669;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.18);
    flex-shrink: 0;
}

.tgwv-checkout-success__body {
    grid-area: body;
    min-width: 0;
}

.tgwv-checkout-success__title {
    margin: 0 0 0.35rem;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    color: #064e3b;
    letter-spacing: -0.02em;
}

.tgwv-checkout-success__text {
    margin: 0 0 0.65rem;
    color: #047857;
    line-height: 1.55;
    font-size: 16px;
}

.tgwv-checkout-success__code {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin: 0;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #bbf7d0;
    font-size: 15px;
    color: #374151;
}

.tgwv-checkout-success__code strong {
    color: #0f172a;
    font-size: 17px;
    letter-spacing: 0.03em;
}

.tgwv-checkout-success__pdf-btn {
    grid-area: pdf;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border: none;
    border-radius: 12px;
    background: #0f5132;
    color: var(--tgwv-color-light);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(15, 81, 50, 0.22);
}

.tgwv-checkout-success__pdf-btn:hover {
    background: #0a3d26;
    color: var(--tgwv-color-light);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 81, 50, 0.28);
}

.tgwv-checkout-empty {
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .tgwv-checkout-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .tgwv-checkout-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
        gap: 1.75rem;
    }

    .tgwv-checkout-page__back-link {
        display: inline-flex;
    }

    .tgwv-checkout-summary {
        position: sticky;
        top: 1.25rem;
    }

    .tgwv-checkout-form__submit-mobile {
        display: none;
    }

    .tgwv-checkout-submit--sidebar {
        display: flex;
    }
}

@media (max-width: 1099.98px) {
    .tgwv-checkout-layout__summary {
        order: -1;
    }

    .tgwv-checkout-submit--sidebar {
        display: none;
    }
}

.tgwv-header-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 0.35rem;
    color: var(--tgwv-color-dark, #000000);
    text-decoration: none;
    line-height: 1;
}

.tgwv-header-cart-link i {
    font-size: 18px;
}

.tgwv-header-cart-link:hover {
    color: var(--tgwv-brand);
    text-decoration: none;
}

.tgwv-header-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--tgwv-brand);
    color: var(--tgwv-color-light);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.tgwv-header-cart-count.is-empty {
    display: none;
}

.tgwv-product-cart-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1090;
    max-width: min(92vw, 360px);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #111827;
    color: var(--tgwv-color-light);
    font-size: 15px;
    line-height: 1.45;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.tgwv-product-cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tgwv-product-cart-toast--success {
    background: #14532d;
}

.tgwv-product-cart-toast--error {
    background: #7f1d1d;
}

.tgwv-product-cart-toast a {
    color: #bbf7d0;
    font-weight: 600;
}

.tgwv-cart-page__continue-link {
    display: none;
}

@media (min-width: 768px) {
    .tgwv-cart-layout {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
        gap: 1.35rem;
    }

    .tgwv-cart-summary__box {
        position: sticky;
        top: 1.25rem;
    }
}

@media (min-width: 1100px) {
    .tgwv-cart-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
        gap: 1.75rem;
    }

    .tgwv-cart-page__continue-link {
        display: inline-flex;
    }

    .tgwv-cart-list__head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 7.5rem 9rem 7.5rem 2.75rem;
        gap: 1rem;
        padding: 0.9rem 1.35rem;
        background: #f8fafc;
        border-bottom: 1px solid #e8ecf1;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #94a3b8;
    }

    .tgwv-cart-list__col--price,
    .tgwv-cart-list__col--qty,
    .tgwv-cart-list__col--total {
        text-align: center;
    }

    .tgwv-cart-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 7.5rem 9rem 7.5rem 2.75rem;
        gap: 1rem;
        align-items: center;
        padding: 1.15rem 1.35rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .tgwv-cart-item:hover {
        background: #fafbfc;
    }

    .tgwv-cart-item__product {
        align-items: center;
    }

    .tgwv-cart-item__thumb {
        width: 80px;
        height: 80px;
    }

    .tgwv-cart-item__title {
        font-size: 16px;
    }

    .tgwv-cart-item__price-mobile {
        display: none;
    }

    .tgwv-cart-item__price {
        display: flex;
        padding-top: 0;
        margin-top: 0;
        border-top: 0;
        justify-content: center;
        color: #475569;
        font-weight: 600;
    }

    .tgwv-cart-item__price::before {
        content: none;
    }

    .tgwv-cart-item__qty,
    .tgwv-cart-item__line-total {
        padding-top: 0;
        margin-top: 0;
        border-top: 0;
        justify-content: center;
    }

    .tgwv-cart-item__qty::before,
    .tgwv-cart-item__line-total::before {
        content: none;
    }

    .tgwv-cart-item__qty .tgwv-cart-qty-stepper {
        margin: 0 auto;
    }

    .tgwv-cart-item__line-total .tgwv-cart-line-total {
        font-size: 16px;
    }

    .tgwv-cart-item__action {
        justify-content: center;
        padding-top: 0;
    }

    .tgwv-cart-item__remove {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        border-color: #e2e8f0;
        border-radius: 10px;
        background: var(--tgwv-color-light);
        color: #94a3b8;
    }

    .tgwv-cart-item__remove:hover {
        color: #dc2626;
        background: #fef2f2;
        border-color: #fecaca;
    }

    .tgwv-cart-item__remove-text {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .tgwv-cart-page {
        padding-top: 1.25rem;
    }

    .tgwv-cart-page__header {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }

    .tgwv-cart-list {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .tgwv-cart-item {
        margin-bottom: 0.85rem;
        padding: 1.15rem;
        border: 1px solid #e8ecf1;
        border-radius: 14px;
        background: var(--tgwv-color-light);
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    }

    .tgwv-cart-item:last-child {
        margin-bottom: 0;
    }

    .tgwv-cart-summary__box {
        margin-top: 0.25rem;
    }

    .tgwv-cart-summary__checkout {
        min-height: 3.25rem;
        font-size: 17px;
    }
}

@media (max-width: 575.98px) {
    .product-detail__buy-actions {
        gap: 0.65rem;
    }

    .product-detail__order-btns {
        gap: 0.4rem;
    }

    .product-detail__buy-now-btn,
    .product-detail__add-btn {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 12px;
    }
}

.tgwv-bank-transfer {
    max-width: none;
    margin: 0;
    padding: 1.35rem;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.tgwv-checkout-bank-panel {
    margin-top: 1rem;
}

.tgwv-checkout-bank-panel .tgwv-bank-transfer--preview {
    margin: 0;
}

.tgwv-checkout-success + .tgwv-order-receipt,
.tgwv-checkout-success + .tgwv-bank-transfer {
    margin-top: 0;
}

.tgwv-order-receipt {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tgwv-order-receipt__actions {
    display: none;
}

.tgwv-order-receipt__pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border: none;
    border-radius: 12px;
    background: #0f5132;
    color: var(--tgwv-color-light);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.tgwv-order-receipt__pdf-btn:hover {
    background: #0a3d26;
    color: var(--tgwv-color-light);
    text-decoration: none;
}

.tgwv-order-receipt__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.tgwv-order-receipt__card {
    padding: 1.35rem clamp(1.15rem, 2.5vw, 1.5rem);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: var(--tgwv-color-light);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.tgwv-order-receipt__card-title {
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a365d;
}

.tgwv-order-receipt__meta-row {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    gap: 0.75rem 1.25rem;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}

.tgwv-order-receipt__meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tgwv-order-receipt__meta-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.tgwv-order-receipt__meta-value {
    text-align: right;
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

.tgwv-order-receipt__meta-row--highlight {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
}

.tgwv-order-receipt__meta-row--highlight .tgwv-order-receipt__meta-label {
    color: #0f5132;
    font-weight: 700;
    font-size: 15px;
}

.tgwv-order-receipt__meta-row--highlight .tgwv-order-receipt__meta-value {
    color: #0f5132;
    font-size: 18px;
    font-weight: 700;
}

.tgwv-order-receipt__items {
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: var(--tgwv-color-light);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.tgwv-order-receipt__items > .tgwv-order-receipt__card-title {
    margin: 0;
    padding: 1.1rem clamp(1.15rem, 2.5vw, 1.5rem);
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tgwv-order-receipt__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tgwv-order-receipt__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.tgwv-order-receipt__table thead th {
    padding: 0.85rem 1rem;
    background: #1a365d;
    color: var(--tgwv-color-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.tgwv-order-receipt__th--qty {
    width: 72px;
    text-align: center !important;
}

.tgwv-order-receipt__th--money {
    width: 130px;
    text-align: right !important;
}

.tgwv-order-receipt__table tbody td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

.tgwv-order-receipt__table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.tgwv-order-receipt__table tbody tr:last-child td {
    border-bottom: none;
}

.tgwv-order-receipt__td-product {
    color: #1e293b;
    font-weight: 600;
    line-height: 1.45;
}

.tgwv-order-receipt__product-link {
    color: #1a365d;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.tgwv-order-receipt__product-link:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

.tgwv-order-receipt__td-qty {
    text-align: center;
    color: #475569;
    font-weight: 700;
}

.tgwv-order-receipt__td-money {
    text-align: right;
    color: #475569;
    white-space: nowrap;
}

.tgwv-order-receipt__td-money--strong {
    color: #1a365d;
    font-weight: 700;
}

.tgwv-order-receipt__item-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tgwv-order-receipt__item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #eef2f7;
}

.tgwv-order-receipt__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tgwv-order-receipt__item-title {
    font-weight: 600;
    color: #0f172a;
}

.tgwv-order-receipt__item-meta {
    grid-column: 1;
    font-size: 14px;
    color: #64748b;
}

.tgwv-order-receipt__item-price {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.tgwv-checkout-success-layout__bank {
    width: 100%;
}

.tgwv-checkout-success-layout__bank .tgwv-bank-transfer {
    margin: 0;
}

.tgwv-bank-transfer__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1.25rem 2rem;
    padding: 1.15rem 1.25rem;
    margin-bottom: 0.85rem;
    background: var(--tgwv-color-light);
    border: 1px solid #d1fae5;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.tgwv-bank-transfer__item-body {
    flex: 1 1 220px;
    min-width: 0;
}

@media (min-width: 768px) {
    .tgwv-order-receipt__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tgwv-checkout-success {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "icon body pdf";
        gap: 0 1.5rem;
        align-items: center;
    }

    .tgwv-checkout-success__pdf-btn {
        justify-self: end;
        grid-area: pdf;
    }
}

@media (min-width: 1100px) {
    .page-checkout--success .tgwv-checkout-success-layout {
        gap: 1.5rem;
    }
}

.tgwv-bank-transfer--standalone {
    width: 100%;
    margin: 0;
}

.tgwv-bank-transfer__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #14532d;
    margin: 0 0 0.75rem;
}

.tgwv-bank-transfer__note {
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #bbf7d0;
    color: #166534;
    line-height: 1.55;
    font-size: 15px;
}

.tgwv-bank-transfer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tgwv-bank-transfer__item:last-child {
    margin-bottom: 0;
}

.tgwv-bank-transfer__item p {
    margin: 0 0 0.45rem;
    font-size: 15px;
    line-height: 1.5;
    color: #334155;
}

.tgwv-bank-transfer__item p strong {
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tgwv-bank-transfer__bank {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.tgwv-bank-transfer__qr {
    margin: 0;
    text-align: center;
}

.tgwv-bank-transfer__qr img {
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.tgwv-bank-transfer__empty {
    margin-top: 1rem;
    color: #64748b;
}

@media (max-width: 639.98px) {
    .tgwv-order-receipt__meta-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .tgwv-order-receipt__meta-value {
        text-align: left;
    }

    .tgwv-order-receipt__table thead {
        display: none;
    }

    .tgwv-order-receipt__table tbody tr {
        display: block;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid #eef2f7;
    }

    .tgwv-order-receipt__table tbody tr:nth-child(even) {
        background: #f8fafc;
    }

    .tgwv-order-receipt__table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.25rem 0;
        border: none;
        background: transparent !important;
    }

    .tgwv-order-receipt__table tbody td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 13px;
        font-weight: 600;
        flex-shrink: 0;
    }

    .tgwv-order-receipt__td-product {
        display: block;
        padding-bottom: 0.5rem;
        margin-bottom: 0.35rem;
        border-bottom: 1px dashed #e2e8f0;
    }

    .tgwv-order-receipt__td-product::before {
        display: none;
    }

    .tgwv-bank-transfer__item {
        grid-template-columns: 1fr;
    }
}

/* Customer account pages */
body.page-customer-account .site-main.site-main--layout-default,
body.page-customer-orders .site-main.site-main--layout-default,
body.page-customer-change-password .site-main.site-main--layout-default,
body.page-customer-topup .site-main.site-main--layout-default,
body.page-customer-wishlist .site-main.site-main--layout-default {
    background-color: #f3f4f6;
}

.tgwv-customer-page {
    padding: 2rem 0 3rem;
}

.tgwv-customer-page__inner {
    max-width: 640px;
    margin: 0 auto;
}

.tgwv-customer-page__inner--wide {
    max-width: 760px;
}

/* Account layout: align with site header edges (1200px) */
.tgwv-account-layout {
    --tgwv-account-brand: #8b0000;
    --tgwv-account-brand-soft: rgba(139, 0, 0, 0.08);
    --tgwv-account-ink: #1f2937;
    --tgwv-account-muted: #6b7280;
    --tgwv-account-line: #e5e7eb;
    --tgwv-account-surface: #ffffff;
    padding: 1.75rem 0 3.5rem;
    background: linear-gradient(180deg, #f7f7f8 0%, #f3f4f6 100%);
}

.tgwv-account-layout > .container,
.tgwv-account-layout > .site-container,
.tgwv-account-layout .tgwv-customer-page__inner,
.tgwv-account-layout .tgwv-customer-page__inner--wide,
body.page-customer-account .tgwv-customer-page__inner,
body.page-customer-orders .tgwv-customer-page__inner,
body.page-customer-change-password .tgwv-customer-page__inner,
body.page-customer-topup .tgwv-customer-page__inner,
body.page-customer-wishlist .tgwv-customer-page__inner,
body.page-customer-notifications .tgwv-customer-page__inner {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    body.page-customer-account .tgwv-customer-nav {
        flex-wrap: nowrap;
    }

    body.page-customer-account .tgwv-customer-nav__btn {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        font-size: 14px;
        white-space: nowrap;
    }
}

.tgwv-customer-page__title {
    margin: 0 0 1.5rem;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.tgwv-customer-page__back {
    margin: 0 0 1rem;
}

.tgwv-customer-form {
    display: grid;
    gap: 1rem;
}

.tgwv-customer-form__alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.tgwv-customer-form__alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.tgwv-customer-form__alert--success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.tgwv-customer-form .invalid-feedback {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #b91c1c;
}

.tgwv-customer-form .tgwv-checkout-input.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.tgwv-customer-form__submit-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tgwv-customer-form__hint {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

.tgwv-customer-form--profile {
    margin-top: 0.5rem;
}

.tgwv-customer-form__points {
    margin: 0.25rem 0 0.5rem;
}

.tgwv-customer-form .tgwv-checkout-input:disabled {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.tgwv-checkout-submit:disabled {
    opacity: 0.85;
    cursor: wait;
}

.tgwv-customer-card {
    background: var(--tgwv-color-light);
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.tgwv-customer-card--profile {
    overflow: hidden;
    padding: 0;
}

.tgwv-customer-profile {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 1.75rem clamp(1.25rem, 3vw, 2rem);
    background: linear-gradient(
        135deg,
        rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.1) 0%,
        rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.03) 55%,
        var(--tgwv-color-light) 100%
    );
    border-bottom: 1px solid #e8ecf1;
}

.tgwv-customer-profile__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        var(--tgwv-brand, #000000) 0%,
        color-mix(in srgb, var(--tgwv-brand, #000000) 78%, #000000) 100%
    );
    color: var(--tgwv-color-light);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow: 0 6px 20px rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.28);
}

.tgwv-customer-profile__meta {
    min-width: 0;
}

.tgwv-customer-profile__name {
    margin: 0 0 0.25rem;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.tgwv-customer-profile__email {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.tgwv-customer-info {
    display: grid;
    gap: 0;
    padding: 0.35rem 0;
}

.tgwv-customer-info__row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem clamp(1.25rem, 3vw, 2rem);
    border-bottom: 1px solid #f1f5f9;
}

.tgwv-customer-info__row:last-child {
    border-bottom: 0;
}

.tgwv-customer-info__row--highlight {
    background: linear-gradient(90deg, rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.05) 0%, transparent 100%);
}

.tgwv-customer-info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.08);
    color: var(--tgwv-brand, #000000);
    font-size: 15px;
    flex-shrink: 0;
}

.tgwv-customer-info__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.tgwv-customer-info__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tgwv-customer-info__value {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.tgwv-customer-info__points {
    font-size: 20px;
    font-weight: 800;
    color: var(--tgwv-brand, #000000);
    letter-spacing: -0.02em;
}

.tgwv-customer-info__points-vnd {
    display: block;
    margin-top: 0.15rem;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.tgwv-customer-dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem 1rem;
    margin: 0 0 1.25rem;
}

.tgwv-customer-dl dt {
    color: #64748b;
    font-weight: 600;
}

.tgwv-customer-dl dd {
    margin: 0;
}

.tgwv-customer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 1.25rem clamp(1.25rem, 3vw, 2rem) 1.5rem;
    border-top: 1px solid #e8ecf1;
    background: #fafbfc;
}

.tgwv-customer-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tgwv-customer-nav__btn i {
    font-size: 14px;
    opacity: 0.92;
}

.tgwv-customer-nav__btn--primary {
    background: linear-gradient(
        135deg,
        var(--tgwv-brand, #000000) 0%,
        color-mix(in srgb, var(--tgwv-brand, #000000) 82%, #000000) 100%
    );
    color: var(--tgwv-color-light) !important;
    box-shadow: 0 4px 16px rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.22);
}

.tgwv-customer-nav__btn--primary:hover {
    color: var(--tgwv-color-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.28);
}

.tgwv-customer-nav__btn--secondary {
    border: 1px solid #e2e8f0;
    background: var(--tgwv-color-light);
    color: #334155 !important;
}

.tgwv-customer-nav__btn--secondary:hover {
    color: var(--tgwv-brand, #000000) !important;
    border-color: color-mix(in srgb, var(--tgwv-brand, #000000) 35%, #e2e8f0);
    background: rgba(var(--tgwv-brand-rgb, 0, 0, 0), 0.04);
}

.tgwv-customer-nav__btn--ghost {
    border: 1px solid transparent;
    background: transparent;
    color: #64748b !important;
}

.tgwv-customer-nav__btn--ghost:hover {
    color: #dc2626 !important;
    background: #fef2f2;
    border-color: #fecaca;
}

.tgwv-customer-table-wrap {
    overflow-x: auto;
}

.tgwv-customer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.tgwv-customer-table th,
.tgwv-customer-table td {
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.tgwv-customer-table th {
    background: #f8fafc;
    font-weight: 600;
}

.tgwv-customer-empty {
    color: #64748b;
}

@media (max-width: 767.98px) {
    .tgwv-customer-page {
        padding: 1.25rem 0 2rem;
    }

    .tgwv-customer-page__title {
        font-size: 1.5rem;
        margin-bottom: 1.15rem;
    }

    .tgwv-customer-profile {
        padding: 1.35rem 1.15rem 1.25rem;
    }

    .tgwv-customer-profile__avatar {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }

    .tgwv-customer-info__row {
        padding: 0.9rem 1.15rem;
    }

    .tgwv-customer-nav {
        flex-direction: column;
        padding: 1rem 1.15rem 1.25rem;
    }

    body.page-customer-account .tgwv-customer-nav {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .tgwv-customer-nav__btn {
        width: 100%;
    }

    .tgwv-customer-table-wrap {
        overflow-x: visible;
    }

    .tgwv-customer-table {
        border: 0;
    }

    .tgwv-customer-table thead {
        display: none;
    }

    .tgwv-customer-table tbody tr {
        display: block;
        margin-bottom: 0.85rem;
        padding: 1rem 1.1rem;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    }

    .tgwv-customer-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .tgwv-customer-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem 1rem;
        padding: 0.4rem 0;
        border: none;
        text-align: right;
    }

    .tgwv-customer-table tbody td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 13px;
        font-weight: 600;
        text-align: left;
        flex-shrink: 0;
    }

    .tgwv-customer-table tbody td:first-child {
        display: block;
        padding-bottom: 0.65rem;
        margin-bottom: 0.35rem;
        border-bottom: 1px dashed #e2e8f0;
        text-align: left;
        font-weight: 700;
    }

    .tgwv-customer-table tbody td:first-child::before {
        display: none;
    }

    .tgwv-customer-table tbody td:first-child a {
        font-size: 1rem;
        word-break: break-all;
    }
}

/* Customer top-up page */
.tgwv-topup-bank {
    margin-bottom: 1.25rem;
}

.tgwv-topup-section__title {
    margin: 0 0 1rem;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.tgwv-topup-pending__message {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 15px;
}

.tgwv-topup-dl {
    display: grid;
    gap: 0.65rem 1rem;
    margin: 0;
}

.tgwv-topup-dl dt {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tgwv-topup-dl dd {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.tgwv-topup-proof-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--tgwv-brand, #000000);
    text-decoration: underline;
    cursor: pointer;
}

.tgwv-topup-proof-link:hover {
    color: color-mix(in srgb, var(--tgwv-brand, #000000) 78%, #000000);
}

html.tgwv-topup-proof-open,
html.tgwv-topup-proof-open body {
    overflow: hidden;
}

.tgwv-topup-proof-modal {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.tgwv-topup-proof-modal[hidden] {
    display: none !important;
}

.tgwv-topup-proof-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(2px);
}

.tgwv-topup-proof-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 52rem);
    max-height: calc(100vh - 2.5rem);
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    background: var(--tgwv-color-light, #ffffff);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    animation: tgwv-topup-proof-in 0.22s ease;
}

@keyframes tgwv-topup-proof-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tgwv-topup-proof-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8ecf1;
}

.tgwv-topup-proof-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.tgwv-topup-proof-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tgwv-topup-proof-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tgwv-topup-proof-modal__body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: auto;
    background: #f8fafc;
}

.tgwv-topup-proof-modal__img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.tgwv-topup-points-preview {
    margin: 0.45rem 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--tgwv-brand, #000000);
}

.tgwv-topup-file {
    padding: 0.5rem 0.25rem;
}

.tgwv-topup-history {
    margin-top: 1.25rem;
}

.tgwv-topup-pending + .tgwv-topup-history,
.tgwv-customer-form + .tgwv-topup-history {
    margin-top: 1.25rem;
}

/* Account layout (profile / addresses / wishlist / orders / password / topup) */
.tgwv-account-layout__grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.tgwv-account-sidebar {
    position: sticky;
    top: 1rem;
    border: 1px solid var(--tgwv-account-line, #e5e7eb);
    border-radius: 16px;
    padding: 1.15rem 0.85rem 1rem;
    background: var(--tgwv-account-surface, #fff);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.tgwv-account-sidebar__title {
    margin: 0 0 0.85rem;
    padding: 0 0.75rem;
    color: var(--tgwv-account-brand, #8b0000);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tgwv-account-sidebar__nav {
    display: grid;
    gap: 0.2rem;
}

.tgwv-account-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.72rem 0.8rem;
    border-radius: 10px;
    border-left: 3px solid transparent;
    color: var(--tgwv-account-ink, #1f2937);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tgwv-account-sidebar__link i {
    color: var(--tgwv-account-brand, #8b0000);
    width: 1.15rem;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.9;
}

.tgwv-account-sidebar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    margin-left: 0.35rem;
    border-radius: 999px;
    background: var(--tgwv-account-brand, #8b0000);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.tgwv-account-sidebar__badge[hidden] {
    display: none !important;
}

.tgwv-notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.tgwv-notif-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tgwv-notif-item.is-unread {
    border-color: #fecaca;
    background: #fffafa;
    box-shadow: inset 3px 0 0 var(--tgwv-account-brand, #8b0000);
}

.tgwv-notif-item:hover {
    border-color: #d1d5db;
}

.tgwv-notif-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.45rem;
}

.tgwv-notif-item__code-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.tgwv-notif-item__code {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--tgwv-account-brand, #8b0000);
}

.tgwv-notif-item__badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: #9f1239;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tgwv-notif-item__status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.tgwv-notif-item__status--expired {
    color: #b91c1c;
}

.tgwv-notif-item__discount {
    font-weight: 700;
    color: #0f172a;
}

.tgwv-notif-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.tgwv-notif-item__message {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #334155;
}

.tgwv-notif-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

html.tgwv-notif-copy-open,
html.tgwv-notif-copy-open body {
    overflow: hidden;
}

.tgwv-notif-copy-modal {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.tgwv-notif-copy-modal[hidden] {
    display: none !important;
}

.tgwv-notif-copy-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
}

.tgwv-notif-copy-modal__dialog {
    position: relative;
    width: min(100%, 24rem);
    padding: 1.5rem 1.35rem 1.35rem;
    border-radius: 18px;
    border: 1px solid #e8ecf1;
    background: #fff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    text-align: center;
    animation: tgwv-cart-confirm-in 0.22s ease;
}

.tgwv-notif-copy-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tgwv-notif-copy-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tgwv-notif-copy-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    background: #fef2f2;
    color: var(--tgwv-account-brand, #8b0000);
    font-size: 1.25rem;
}

.tgwv-notif-copy-modal__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.tgwv-notif-copy-modal__hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.45;
}

.tgwv-notif-copy-modal__code-wrap {
    margin: 0 0 0.75rem;
}

.tgwv-notif-copy-modal__code {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    border: 1px dashed #fecaca;
    border-radius: 12px;
    background: #fffafa;
    color: var(--tgwv-account-brand, #8b0000);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
}

.tgwv-notif-copy-modal__code:focus {
    outline: 2px solid rgba(139, 0, 0, 0.25);
    outline-offset: 1px;
}

.tgwv-notif-copy-modal__status {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.tgwv-notif-copy-modal__status.is-success {
    color: #166534;
}

.tgwv-notif-copy-modal__status.is-error {
    color: #b91c1c;
}

.tgwv-notif-copy-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tgwv-account-sidebar__link:hover {
    background: #f9fafb;
    color: var(--tgwv-account-brand, #8b0000);
}

.tgwv-account-sidebar__link.is-active {
    background: var(--tgwv-account-brand-soft, rgba(139, 0, 0, 0.08));
    border-left-color: var(--tgwv-account-brand, #8b0000);
    color: var(--tgwv-account-brand, #8b0000);
}

.tgwv-account-sidebar__link--logout {
    margin-top: 0.35rem;
    color: var(--tgwv-account-muted, #6b7280);
    border-top: 1px solid var(--tgwv-account-line, #e5e7eb);
    border-radius: 0 0 10px 10px;
    padding-top: 0.9rem;
}

.tgwv-account-sidebar__link--logout i {
    color: var(--tgwv-account-muted, #6b7280);
}

.tgwv-account-sidebar__link--logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.tgwv-account-sidebar__link--logout:hover i {
    color: #b91c1c;
}

.tgwv-account-main {
    min-width: 0;
}

.tgwv-account-main__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    flex-wrap: wrap;
}

.tgwv-account-main__title {
    margin: 0;
}

.tgwv-account-layout .tgwv-customer-page__title {
    margin-bottom: 0;
    font-size: 20px;
}

.tgwv-account-layout .tgwv-account-main > .tgwv-customer-page__title {
    margin-bottom: 1.15rem;
}

.tgwv-account-main__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--tgwv-account-brand, #8b0000);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: var(--tgwv-account-brand-soft, rgba(139, 0, 0, 0.08));
    transition: background 0.15s ease;
}

.tgwv-account-main__link:hover {
    background: rgba(139, 0, 0, 0.14);
    color: var(--tgwv-account-brand, #8b0000);
}

.tgwv-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tgwv-account-btn--primary {
    background: var(--tgwv-account-brand, #8b0000);
    color: #fff;
}

.tgwv-account-btn--primary:hover {
    background: #6b0000;
    color: #fff;
}

.tgwv-account-btn--ghost {
    background: #fff;
    border-color: var(--tgwv-account-line, #e5e7eb);
    color: var(--tgwv-account-ink, #1f2937);
}

.tgwv-account-btn--ghost:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.tgwv-account-btn--danger {
    background: #fff;
    border-color: #fecaca;
    color: #b91c1c;
}

.tgwv-account-btn--danger:hover {
    background: #fef2f2;
}

.tgwv-account-profile-card {
    border: 1px solid var(--tgwv-account-line, #e5e7eb);
    border-radius: 16px;
    background: var(--tgwv-account-surface, #fff);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
    padding: 1.5rem 1.6rem 1.35rem;
    font-size: 14px;
}

.tgwv-account-profile-card .tgwv-checkout-label,
.tgwv-account-profile-card .tgwv-checkout-input,
.tgwv-account-profile-card .tgwv-checkout-select,
.tgwv-account-profile-card .tgwv-customer-form__hint,
.tgwv-account-profile-card .tgwv-customer-info__label,
.tgwv-account-profile-card .tgwv-customer-info__value,
.tgwv-account-profile-card .tgwv-customer-info__points,
.tgwv-account-profile-card .tgwv-customer-info__points-vnd,
.tgwv-account-profile-card .tgwv-checkout-submit,
.tgwv-account-profile-card .tgwv-customer-form__submit-label,
.tgwv-account-profile-card .tgwv-customer-form__submit-loading,
.tgwv-account-profile-card .tgwv-account-avatar__edit {
    font-size: 14px;
}

.tgwv-account-profile-form {
    gap: 1.25rem;
}

.tgwv-account-profile-form__top {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.tgwv-account-avatar {
    position: relative;
    width: 124px;
    height: 124px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(145deg, #fde8e8, #f8f1f1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e8d5d5, 0 8px 20px rgba(139, 0, 0, 0.12);
}

.tgwv-account-avatar__initial {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--tgwv-account-brand, #8b0000);
}

.tgwv-account-avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tgwv-account-avatar__edit {
    position: absolute;
    inset: auto 0 0;
    background: rgba(17, 24, 39, 0.62);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    padding: 0.4rem 0.25rem;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.tgwv-account-avatar__edit:hover {
    background: rgba(17, 24, 39, 0.75);
}

.tgwv-account-profile-form__fields {
    display: grid;
    gap: 0.95rem;
}

.tgwv-account-profile-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
    gap: 1rem;
}

.tgwv-account-layout .tgwv-checkout-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    font-size: 14px;
}

.tgwv-account-layout .tgwv-checkout-input {
    border-radius: 10px;
    border-color: #d1d5db;
    min-height: 44px;
    background-color: #fff;
    font-size: 14px;
}

.tgwv-account-layout .tgwv-checkout-input:focus {
    border-color: var(--tgwv-account-brand, #8b0000);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.12);
    outline: none;
}

.tgwv-account-layout .tgwv-checkout-input:disabled,
.tgwv-account-layout .tgwv-checkout-input[readonly] {
    background-color: #f3f4f6;
    color: #6b7280;
}

.tgwv-account-layout .tgwv-checkout-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 12px 8px;
    padding-right: 2.25rem;
    cursor: pointer;
}

.tgwv-account-layout .tgwv-checkout-select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.85;
}

.tgwv-account-layout .tgwv-customer-form__hint {
    margin: 0.35rem 0 0;
    font-size: 14px;
    color: var(--tgwv-account-muted, #6b7280);
}

.tgwv-account-layout .tgwv-customer-form__points,
.tgwv-account-layout .tgwv-customer-info__row--highlight {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0.25rem 0 0;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    border: 1px solid #dcfce7;
    background: linear-gradient(90deg, #f0fdf4 0%, #ecfdf5 100%);
}

.tgwv-account-layout .tgwv-customer-info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    flex-shrink: 0;
}

.tgwv-account-layout .tgwv-customer-info__label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #166534;
    margin-bottom: 0.15rem;
}

.tgwv-account-layout .tgwv-customer-info__points {
    color: #14532d;
    font-size: 14px;
}

.tgwv-account-layout .tgwv-customer-info__points-vnd {
    color: #3f6212;
    font-weight: 600;
    font-size: 14px;
}

.tgwv-account-profile-form__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.25rem;
    border-top: 1px solid var(--tgwv-account-line, #e5e7eb);
    margin-top: 0.15rem;
}

.tgwv-account-profile-form__actions .tgwv-checkout-submit {
    width: auto;
    min-width: 220px;
    border-radius: 999px;
    background: var(--tgwv-account-brand, #8b0000);
    min-height: 46px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(139, 0, 0, 0.22);
}

.tgwv-account-profile-form__actions .tgwv-checkout-submit:hover {
    background: #6b0000;
}

.tgwv-account-main .tgwv-customer-form:not(.tgwv-account-profile-form),
.tgwv-account-main .tgwv-customer-card:not(.tgwv-account-profile-card),
.tgwv-account-main .tgwv-customer-table-wrap,
.tgwv-account-main .tgwv-address-list,
.tgwv-account-main .tgwv-wishlist-grid {
    background: var(--tgwv-account-surface, #fff);
    border: 1px solid var(--tgwv-account-line, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.tgwv-account-main .tgwv-customer-form:not(.tgwv-account-profile-form),
.tgwv-account-main .tgwv-customer-card:not(.tgwv-account-profile-card) {
    padding: 1.35rem 1.5rem;
}

.tgwv-account-main .tgwv-customer-table-wrap {
    padding: 0.35rem;
    overflow: hidden;
}

.tgwv-account-main .tgwv-address-list {
    padding: 1rem;
    gap: 0.85rem;
    display: grid;
}

.tgwv-account-main .tgwv-wishlist-grid {
    padding: 1rem;
    gap: 1rem;
}

.tgwv-account-main .tgwv-customer-empty,
.tgwv-account-main > .tgwv-address-list__empty,
.tgwv-account-main .tgwv-address-list__empty {
    margin: 0;
    padding: 1.5rem;
    color: var(--tgwv-account-muted, #6b7280);
    text-align: center;
}

.tgwv-account-main > .tgwv-customer-empty,
.tgwv-account-main > .tgwv-address-list__empty {
    background: var(--tgwv-account-surface, #fff);
    border: 1px dashed #d1d5db;
    border-radius: 16px;
}

.tgwv-account-main .tgwv-address-list:has(> .tgwv-address-list__empty) {
    background: var(--tgwv-account-surface, #fff);
    border-style: dashed;
    box-shadow: none;
}

.tgwv-account-main .tgwv-address-list:has(> .tgwv-address-list__empty) .tgwv-address-list__empty {
    padding: 0.75rem;
}

.tgwv-address-list {
    display: grid;
    gap: 0.85rem;
}

.tgwv-address-list__empty {
    margin: 0;
    color: #64748b;
}

.tgwv-address-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--tgwv-account-line, #e5e7eb);
    border-radius: 12px;
    background: #fafafa;
    flex-wrap: wrap;
}

.tgwv-address-card__name {
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.tgwv-address-card__badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--tgwv-account-brand-soft, rgba(139, 0, 0, 0.1));
    color: var(--tgwv-account-brand, #8b0000);
    font-size: 0.75rem;
}

.tgwv-address-card__meta {
    margin: 0.15rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.tgwv-address-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: flex-start;
}

.tgwv-address-default-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
    font-weight: 600;
    color: #3d312a;
    cursor: pointer;
}

.tgwv-address-default-check input {
    accent-color: var(--tgwv-account-brand, #8b0000);
    width: 1rem;
    height: 1rem;
}

.tgwv-address-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.tgwv-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.tgwv-wishlist-card {
    border: 1px solid var(--tgwv-account-line, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tgwv-wishlist-card:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.tgwv-wishlist-card__media {
    display: block;
    aspect-ratio: 1;
    background: #f8fafc;
}

.tgwv-wishlist-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tgwv-wishlist-card__body {
    padding: 0.85rem 1rem 1rem;
}

.tgwv-wishlist-card__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.tgwv-wishlist-card__title a {
    color: inherit;
    text-decoration: none;
}

.tgwv-wishlist-card__price {
    margin: 0 0 0.75rem;
    color: var(--tgwv-account-brand, #8b0000);
    font-weight: 700;
}

.tgwv-wishlist-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

@media (max-width: 991px) {
    .tgwv-account-layout__grid {
        grid-template-columns: 1fr;
    }

    .tgwv-account-sidebar {
        position: static;
    }

    .tgwv-account-sidebar__nav {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.35rem;
    }

    .tgwv-account-sidebar__link--logout {
        border-top: 0;
        margin-top: 0;
        padding-top: 0.72rem;
    }

    .tgwv-account-profile-form__top,
    .tgwv-account-profile-form__row {
        grid-template-columns: 1fr;
    }

    .tgwv-account-profile-form__actions {
        justify-content: stretch;
    }

    .tgwv-account-profile-form__actions .tgwv-checkout-submit {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .tgwv-account-layout {
        padding-top: 1.25rem;
    }

    .tgwv-account-profile-card {
        padding: 1.15rem;
    }

    .tgwv-account-avatar {
        width: 104px;
        height: 104px;
        margin: 0 auto;
    }

    .tgwv-account-profile-form__top {
        justify-items: center;
        text-align: left;
    }

    .tgwv-account-profile-form__fields {
        width: 100%;
    }
}

/* Address modal (outside .tgwv-account-layout) */
#tgwvAddressModal .tgwv-checkout-label,
#tgwvAddressModal .tgwv-checkout-input,
#tgwvAddressModal .tgwv-checkout-select,
#tgwvAddressModal .tgwv-address-default-check,
#tgwvAddressModal .tgwv-account-btn,
#tgwvAddressModal .tgwv-customer-form__alert,
#tgwvAddressModal .tgwv-checkout-error {
    font-size: 14px;
}

#tgwvAddressModal .tgwv-checkout-select,
#tgwvAddressModal .tgwv-checkout-select.tgwv-checkout-input--error,
#tgwvAddressModal .tgwv-checkout-field--error .tgwv-checkout-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 12px 8px;
    padding-right: 2.25rem;
}

#tgwvAddressModal .tgwv-checkout-field--error .tgwv-checkout-select,
#tgwvAddressModal .tgwv-checkout-select.tgwv-checkout-input--error {
    background-color: #fffbfb;
}

#tgwvAddressModal .tgwv-checkout-select:disabled {
    background-color: #f3f4f6;
}

.tgwv-address-delete-modal__text {
    margin: 0 0 1.25rem;
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
}

#tgwvAddressDeleteModal .tgwv-account-btn--danger {
    background: #8b0000;
    border-color: #8b0000;
    color: #fff;
    min-width: 110px;
}

#tgwvAddressDeleteModal .tgwv-account-btn--danger:hover {
    background: #6b0000;
    color: #fff;
}

#tgwvAddressDeleteModal .tgwv-account-btn {
    font-size: 14px;
}
