/* Samart Marine Account UI */
.samart-account-ui-page,
.samart-account-ui-page .site-content,
.samart-account-ui-page .main-page-wrapper {
    --samart-primary: #062f63;
    --samart-accent: #0b6ce1;
    --samart-text: #0d2344;
    --samart-muted: #6b778b;
    --samart-border: #dbe2ea;
    --samart-soft: #f6f9fc;
    --samart-shadow: 0 10px 35px rgba(15, 35, 65, 0.08);
}

.samart-account-ui-page .woocommerce {
    width: 100%;
}

.samart-account-ui-page .woocommerce-notices-wrapper,
.samart-account-ui-page .woocommerce-error,
.samart-account-ui-page .woocommerce-message,
.samart-account-ui-page .woocommerce-info {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
}

.samart-account-ui-page .woocommerce-error,
.samart-account-ui-page .woocommerce-message,
.samart-account-ui-page .woocommerce-info {
    border-radius: 10px;
}

.samart-auth-page {
    width: 100%;
    padding: 48px 18px 64px;
    background:
        radial-gradient(circle at top left, rgba(11,108,225,.055), transparent 36%),
        linear-gradient(180deg, #fbfdff 0%, #f7f9fc 100%);
}

.samart-auth-card {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 36px 46px 38px;
    border: 1px solid #d9e0e8;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--samart-shadow);
}

.samart-auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.samart-auth-logo {
    display: block;
    width: auto;
    max-width: 260px;
    max-height: 96px;
    margin: 0 auto 22px;
    object-fit: contain;
}

.samart-auth-site-name {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--samart-primary);
}

.samart-auth-brand h1 {
    margin: 0;
    color: var(--samart-text);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.02em;
}

.samart-auth-brand p {
    max-width: 680px;
    margin: 12px auto 0;
    color: var(--samart-muted);
    font-size: 19px;
    line-height: 1.55;
}

.samart-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin-bottom: 34px;
    border: 1px solid #ccd5df;
    border-radius: 12px;
    background: #fff;
}

.samart-auth-tab {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: #fff;
    color: #3a4658;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.samart-auth-tab:first-child {
    border-right: 1px solid #ccd5df;
}

.samart-auth-tab svg {
    width: 31px;
    height: 31px;
}

.samart-auth-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--samart-primary), #024b99);
}

.samart-auth-panel {
    display: none;
}

.samart-auth-panel.is-active {
    display: block;
}

.samart-auth-form {
    margin: 0;
}

.samart-field {
    margin-bottom: 24px;
}

.samart-field > label {
    display: block;
    margin: 0 0 10px;
    color: var(--samart-text);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
}

.samart-input-wrap {
    position: relative;
}

.samart-input-wrap .samart-input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 28px;
    height: 28px;
    color: #929cab;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.samart-auth-card .samart-input-wrap input[type="text"],
.samart-auth-card .samart-input-wrap input[type="email"],
.samart-auth-card .samart-input-wrap input[type="password"] {
    width: 100%;
    min-height: 76px;
    margin: 0;
    padding: 0 64px 0 68px;
    border: 1px solid #cfd7e0;
    border-radius: 12px;
    background: #fff;
    color: var(--samart-text);
    box-shadow: none;
    font-size: 18px;
    line-height: 1.3;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.samart-auth-card .samart-input-wrap input:focus {
    border-color: var(--samart-accent);
    box-shadow: 0 0 0 3px rgba(11,108,225,.12);
    outline: 0;
}

.samart-auth-card .samart-input-wrap input::placeholder {
    color: #9ba4b2;
    opacity: 1;
}

.samart-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #3f4a5d;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 0;
}

.samart-password-toggle svg {
    width: 28px;
    height: 28px;
}

.samart-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 26px;
}

.samart-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    color: var(--samart-text);
    font-size: 17px;
    cursor: pointer;
}

.samart-checkbox input[type="checkbox"] {
    appearance: none;
    width: 29px;
    height: 29px;
    margin: 0;
    border: 1px solid #bdc7d2;
    border-radius: 6px;
    background: #fff;
    position: relative;
}

.samart-checkbox input[type="checkbox"]:checked {
    border-color: var(--samart-accent);
    background: var(--samart-accent);
}

.samart-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.samart-forgot-link {
    color: var(--samart-accent);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.samart-forgot-link:hover {
    color: var(--samart-primary);
}

.samart-primary-button,
.samart-auth-card .button.samart-primary-button,
.samart-account-ui-page .woocommerce .button.samart-primary-button {
    width: 100%;
    min-height: 76px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
    padding: 14px 24px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--samart-primary), #034a94) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-transform: none !important;
    cursor: pointer;
}

.samart-primary-button:hover {
    filter: brightness(1.07);
}

.samart-primary-button svg {
    width: 30px;
    height: 30px;
}

.samart-auth-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    color: #8a95a5;
    font-size: 18px;
}

.samart-auth-divider::before,
.samart-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dce2e9;
}

.samart-line-button {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 2px solid #06c755;
    border-radius: 12px;
    color: #06b94e;
    background: #fff;
    font-size: 21px;
    font-weight: 700;
    text-decoration: none;
}

.samart-line-button:hover {
    color: #fff;
    background: #06c755;
}

.samart-line-button svg {
    width: 34px;
    height: 34px;
}

.samart-register-callout {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    padding: 26px 28px;
    border: 1px solid #c8dcfb;
    border-radius: 12px;
    background: #f4f8ff;
}

.samart-register-callout-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e5efff;
    color: var(--samart-accent);
}

.samart-register-callout-icon svg {
    width: 40px;
    height: 40px;
}

.samart-register-callout-copy {
    min-width: 0;
}

.samart-register-callout-copy strong,
.samart-register-callout-copy span {
    display: block;
}

.samart-register-callout-copy strong {
    color: var(--samart-text);
    font-size: 20px;
    margin-bottom: 5px;
}

.samart-register-callout-copy span {
    color: var(--samart-muted);
    font-size: 16px;
    line-height: 1.5;
}

.samart-secondary-button,
.samart-account-ui-page .woocommerce .button.samart-secondary-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid var(--samart-accent);
    border-radius: 10px;
    background: #fff;
    color: var(--samart-accent);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.samart-secondary-button:hover {
    color: #fff;
    background: var(--samart-accent);
}

.samart-secondary-button svg {
    width: 25px;
    height: 25px;
}

.samart-form-note,
.samart-auth-card .woocommerce-privacy-policy-text {
    color: var(--samart-muted);
    font-size: 15px;
    line-height: 1.6;
}

.samart-auth-card .woocommerce-privacy-policy-text {
    margin-bottom: 18px;
}

/* Reset password */
.samart-reset-card {
    width: min(760px, 100%);
}

.samart-reset-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #edf4ff;
    color: var(--samart-accent);
}

.samart-reset-icon svg {
    width: 38px;
    height: 38px;
}

.samart-reset-back {
    margin-top: 24px;
    text-align: center;
}

.samart-reset-back a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--samart-primary);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.samart-reset-back svg {
    width: 22px;
    height: 22px;
    transform: rotate(180deg);
}

/* My Account */

/* My Account sidebar must scroll normally with the page (never sticky). */
.samart-account-shell .samart-account-sidebar,
.woocommerce-account .samart-account-sidebar {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}
.samart-account-shell {
    width: min(1400px, calc(100% - 36px));
    margin: 34px auto 54px;
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    color: var(--samart-text);
}

.samart-account-sidebar {
    position: static !important;
    top: auto !important;
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--samart-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(15, 35, 65, .05);
}

.samart-account-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 20px 22px;
}

.samart-account-avatar img {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px #eef4fb;
}

.samart-account-user-copy {
    min-width: 0;
}

.samart-account-user-copy span,
.samart-account-user-copy strong,
.samart-account-user-copy small {
    display: block;
}

.samart-account-user-copy > span {
    color: var(--samart-text);
    font-size: 14px;
}

.samart-account-user-copy strong {
    overflow: hidden;
    margin: 1px 0 4px;
    color: var(--samart-accent);
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.samart-account-user-copy small {
    color: var(--samart-muted);
    font-size: 11px;
    line-height: 1.45;
}

.samart-account-nav {
    padding: 0 12px 16px;
}

.samart-account-nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 3px 0;
    padding: 9px 14px;
    border-radius: 7px;
    color: #15315b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: .18s ease;
}

.samart-account-nav-link:hover {
    color: var(--samart-primary);
    background: #f3f7fb;
}

.samart-account-nav-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--samart-primary), #034c99);
}

.samart-account-nav-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
}

.samart-account-nav-icon svg {
    width: 100%;
    height: 100%;
}

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

.samart-account-content-card {
    min-width: 0;
    border: 1px solid var(--samart-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(15, 35, 65, .05);
}

.samart-dashboard {
    padding: 22px;
}

.samart-dashboard-header {
    margin-bottom: 16px;
}

.samart-dashboard-header h2 {
    margin: 0;
    color: var(--samart-text);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.samart-dashboard-header p {
    margin: 5px 0 0;
    color: var(--samart-muted);
    font-size: 14px;
    line-height: 1.55;
}

.samart-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.samart-stat-card {
    min-width: 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e1e6ec;
    border-radius: 9px;
    background: #fff;
    color: var(--samart-text);
    box-shadow: 0 3px 12px rgba(18, 39, 68, .04);
    text-decoration: none;
}

.samart-stat-card:hover {
    border-color: #cbd7e6;
    transform: translateY(-1px);
}

.samart-stat-icon,
.samart-quick-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
}

.samart-stat-icon {
    width: 52px;
    height: 52px;
}

.samart-stat-icon svg {
    width: 29px;
    height: 29px;
}

.samart-stat-icon.is-blue,
.samart-quick-icon.is-blue { background: #eaf2ff; color: #0b6ce1; }
.samart-stat-icon.is-orange { background: #fff1df; color: #f39b24; }
.samart-stat-icon.is-green,
.samart-quick-icon.is-green { background: #eaf9ee; color: #11a94a; }
.samart-stat-icon.is-teal,
.samart-quick-icon.is-teal { background: #e8f8f7; color: #12aeb0; }
.samart-quick-icon.is-indigo { background: #edf1ff; color: #315dce; }

.samart-stat-copy {
    min-width: 0;
}

.samart-stat-copy small,
.samart-stat-copy strong {
    display: block;
}

.samart-stat-copy small {
    margin-bottom: 2px;
    color: #31425b;
    font-size: 13px;
    line-height: 1.35;
}

.samart-stat-copy strong {
    color: var(--samart-text);
    font-size: 25px;
    line-height: 1.1;
    font-weight: 800;
}

.samart-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.samart-quick-card {
    min-width: 0;
    min-height: 94px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e1e6ec;
    border-radius: 9px;
    background: #fff;
    color: var(--samart-text);
    text-decoration: none;
}

.samart-quick-card:hover {
    border-color: #c9d5e5;
    box-shadow: 0 5px 16px rgba(15, 35, 65, .06);
}

.samart-quick-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
}

.samart-quick-icon svg {
    width: 28px;
    height: 28px;
}

.samart-quick-copy {
    min-width: 0;
}

.samart-quick-copy strong,
.samart-quick-copy small {
    display: block;
}

.samart-quick-copy strong {
    margin-bottom: 2px;
    color: var(--samart-text);
    font-size: 14px;
    font-weight: 800;
}

.samart-quick-copy small {
    color: var(--samart-muted);
    font-size: 11px;
    line-height: 1.45;
}

.samart-quick-arrow {
    color: var(--samart-primary);
}

.samart-quick-arrow svg {
    width: 22px;
    height: 22px;
}

.samart-latest-orders {
    overflow: hidden;
    border: 1px solid #e1e6ec;
    border-radius: 9px;
}

.samart-section-heading {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px 8px;
}

.samart-section-heading h3 {
    margin: 0;
    color: var(--samart-text);
    font-size: 17px;
    font-weight: 800;
}

.samart-section-heading a {
    color: var(--samart-accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.samart-orders-table-wrap {
    overflow-x: auto;
    padding: 0 12px 12px;
}

.samart-orders-table {
    width: 100%;
    margin: 0;
    border: 1px solid #d7dee7;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 7px;
    overflow: hidden;
    font-size: 12px;
}

.samart-orders-table thead th {
    padding: 8px 12px;
    border: 0;
    background: #f1f3f6;
    color: #25344a;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
}

.samart-orders-table td {
    padding: 9px 12px;
    border: 0;
    border-top: 1px solid #e2e7ed;
    color: #17345f;
    vertical-align: middle;
}

.samart-orders-table strong {
    font-weight: 800;
}

.samart-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 2px 10px;
    border: 1px solid #f2b44f;
    border-radius: 999px;
    background: #fff9ed;
    color: #e38b0a;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
}

.samart-status-badge.is-success { border-color: #86d898; background: #f1fff4; color: #16a33c; }
.samart-status-badge.is-info { border-color: #83b7ed; background: #f1f7ff; color: #176fc2; }
.samart-status-badge.is-danger { border-color: #f3a4a4; background: #fff4f4; color: #c93f3f; }

.samart-order-button {
    min-width: 86px;
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 5px;
    background: var(--samart-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.samart-order-button:hover {
    color: #fff;
    background: #084785;
}

.samart-empty-orders {
    padding: 28px 18px 32px;
    text-align: center;
}

.samart-empty-orders > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #eef4fc;
    color: var(--samart-accent);
}

.samart-empty-orders > span svg {
    width: 31px;
    height: 31px;
}

.samart-empty-orders strong {
    display: block;
    margin-bottom: 4px;
    color: var(--samart-text);
    font-size: 16px;
}

.samart-empty-orders p {
    margin: 0 0 14px;
    color: var(--samart-muted);
    font-size: 13px;
}

.samart-help-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 12px;
    padding: 15px 22px;
    border: 1px solid var(--samart-border);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(15, 35, 65, .04);
}

.samart-help-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

.samart-help-life-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf3ff;
    color: var(--samart-accent);
}

.samart-help-life-icon svg {
    width: 29px;
    height: 29px;
}

.samart-help-title strong,
.samart-help-title span {
    display: block;
}

.samart-help-title strong {
    color: var(--samart-text);
    font-size: 14px;
}

.samart-help-title span {
    color: var(--samart-muted);
    font-size: 11px;
}

.samart-help-items {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    min-width: 0;
}

.samart-help-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--samart-primary);
    text-decoration: none;
}

.samart-help-item > svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.samart-help-line > svg {
    color: #06c755;
}

.samart-help-item span {
    min-width: 0;
}

.samart-help-item small,
.samart-help-item strong {
    display: block;
}

.samart-help-item small {
    color: #2b405e;
    font-size: 10px;
}

.samart-help-item strong {
    overflow: hidden;
    max-width: 240px;
    color: var(--samart-primary);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.samart-help-line strong {
    color: #05aa49;
}

/* Other native WooCommerce account endpoints */
.samart-account-content-card > .woocommerce-MyAccount-content,
.samart-account-content-card .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}

.samart-account-content-card > :not(.samart-dashboard) {
    padding: 24px;
}

.samart-account-content-card .woocommerce-orders-table,
.samart-account-content-card .woocommerce-table,
.samart-account-content-card .shop_table {
    width: 100%;
    margin: 0;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.samart-account-content-card table th,
.samart-account-content-card table td {
    padding: 12px 14px;
    border-color: #e6eaf0;
}

.samart-account-content-card table thead th {
    background: #f5f7f9;
    color: var(--samart-text);
}

.samart-account-content-card input[type="text"],
.samart-account-content-card input[type="email"],
.samart-account-content-card input[type="tel"],
.samart-account-content-card input[type="password"],
.samart-account-content-card select,
.samart-account-content-card textarea {
    border: 1px solid #ccd5df;
    border-radius: 8px;
    box-shadow: none;
}

.samart-account-content-card .button,
.samart-account-content-card button.button,
.samart-account-content-card input.button {
    border-radius: 7px !important;
    background: var(--samart-primary) !important;
    color: #fff !important;
    text-transform: none !important;
}

.samart-account-content-card .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.samart-account-content-card .woocommerce-Address {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 18px;
    border: 1px solid #dfe5ec;
    border-radius: 9px;
}

.samart-account-content-card .woocommerce-Address-title h2 {
    font-size: 18px;
}

/* Tablet */
@media (max-width: 1100px) {
    .samart-account-shell {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 18px;
    }

    .samart-account-user-card {
        padding: 20px 16px;
    }

    .samart-account-avatar img {
        width: 56px;
        height: 56px;
    }

    .samart-stat-grid,
    .samart-quick-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .samart-help-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .samart-help-items {
        width: 100%;
        justify-content: space-between;
        gap: 20px;
    }
}

@media (max-width: 820px) {
    .samart-auth-page {
        padding: 28px 14px 40px;
    }

    .samart-auth-card {
        padding: 28px 24px 30px;
        border-radius: 16px;
    }

    .samart-auth-logo {
        max-width: 210px;
        max-height: 82px;
        margin-bottom: 18px;
    }

    .samart-auth-brand h1 {
        font-size: 40px;
    }

    .samart-auth-brand p {
        font-size: 17px;
    }

    .samart-auth-tab {
        min-height: 64px;
        font-size: 19px;
    }

    .samart-auth-tab svg {
        width: 27px;
        height: 27px;
    }

    .samart-field > label {
        font-size: 17px;
    }

    .samart-auth-card .samart-input-wrap input[type="text"],
    .samart-auth-card .samart-input-wrap input[type="email"],
    .samart-auth-card .samart-input-wrap input[type="password"] {
        min-height: 66px;
        font-size: 16px;
    }

    .samart-primary-button,
    .samart-auth-card .button.samart-primary-button,
    .samart-account-ui-page .woocommerce .button.samart-primary-button,
    .samart-line-button {
        min-height: 66px;
        font-size: 18px !important;
    }

    .samart-register-callout {
        grid-template-columns: 58px 1fr;
    }

    .samart-register-callout .samart-secondary-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .samart-account-shell {
        width: min(100% - 24px, 960px);
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

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

    .samart-account-user-card {
        border-bottom: 1px solid #e6ebf0;
    }

    .samart-account-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .samart-account-nav-link {
        flex: 0 0 auto;
        min-height: 44px;
        margin: 0;
        white-space: nowrap;
    }

    .samart-account-user-copy small {
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .samart-auth-page {
        padding: 16px 10px 30px;
        background: #f7f9fc;
    }

    .samart-auth-card {
        padding: 24px 16px 22px;
        border-radius: 14px;
    }

    .samart-auth-brand {
        margin-bottom: 24px;
    }

    .samart-auth-logo {
        max-width: 175px;
        max-height: 70px;
        margin-bottom: 15px;
    }

    .samart-auth-brand h1 {
        font-size: 32px;
    }

    .samart-auth-brand p {
        margin-top: 8px;
        font-size: 14px;
    }

    .samart-auth-tabs {
        margin-bottom: 26px;
        border-radius: 9px;
    }

    .samart-auth-tab {
        min-height: 54px;
        gap: 8px;
        padding: 6px;
        font-size: 15px;
    }

    .samart-auth-tab svg {
        width: 22px;
        height: 22px;
    }

    .samart-field {
        margin-bottom: 18px;
    }

    .samart-field > label {
        margin-bottom: 7px;
        font-size: 15px;
    }

    .samart-input-wrap .samart-input-icon {
        left: 15px;
        width: 23px;
        height: 23px;
    }

    .samart-auth-card .samart-input-wrap input[type="text"],
    .samart-auth-card .samart-input-wrap input[type="email"],
    .samart-auth-card .samart-input-wrap input[type="password"] {
        min-height: 56px;
        padding-left: 50px;
        padding-right: 50px;
        border-radius: 9px;
        font-size: 15px;
    }

    .samart-password-toggle {
        right: 7px;
        width: 40px;
        height: 40px;
    }

    .samart-password-toggle svg {
        width: 23px;
        height: 23px;
    }

    .samart-auth-row {
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .samart-checkbox {
        gap: 7px;
        font-size: 14px;
    }

    .samart-checkbox input[type="checkbox"] {
        width: 23px;
        height: 23px;
    }

    .samart-checkbox input[type="checkbox"]:checked::after {
        left: 6px;
        top: 3px;
        width: 7px;
        height: 12px;
    }

    .samart-forgot-link {
        font-size: 14px;
        text-align: right;
    }

    .samart-primary-button,
    .samart-auth-card .button.samart-primary-button,
    .samart-account-ui-page .woocommerce .button.samart-primary-button,
    .samart-line-button {
        min-height: 56px;
        gap: 9px;
        border-radius: 9px !important;
        font-size: 16px !important;
    }

    .samart-primary-button svg,
    .samart-line-button svg {
        width: 24px;
        height: 24px;
    }

    .samart-auth-divider {
        margin: 22px 0;
        font-size: 15px;
    }

    .samart-register-callout {
        grid-template-columns: 48px 1fr;
        gap: 12px;
        margin-top: 22px;
        padding: 18px 14px;
    }

    .samart-register-callout-icon {
        width: 46px;
        height: 46px;
    }

    .samart-register-callout-icon svg {
        width: 29px;
        height: 29px;
    }

    .samart-register-callout-copy strong {
        font-size: 16px;
    }

    .samart-register-callout-copy span {
        font-size: 13px;
    }

    .samart-reset-icon {
        width: 64px;
        height: 64px;
    }

    .samart-account-shell {
        width: calc(100% - 16px);
        margin: 12px auto 30px;
        gap: 12px;
    }

    .samart-account-sidebar,
    .samart-account-content-card,
    .samart-help-bar {
        border-radius: 9px;
    }

    .samart-account-user-card {
        gap: 12px;
        padding: 16px 14px;
    }

    .samart-account-avatar img {
        width: 50px;
        height: 50px;
    }

    .samart-account-user-copy strong {
        font-size: 15px;
    }

    .samart-account-nav-link {
        min-height: 42px;
        padding: 8px 11px;
        font-size: 13px;
    }

    .samart-account-nav-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .samart-dashboard {
        padding: 14px;
    }

    .samart-dashboard-header h2 {
        font-size: 21px;
    }

    .samart-dashboard-header p {
        font-size: 12px;
    }

    .samart-stat-grid,
    .samart-quick-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .samart-stat-card {
        min-height: 80px;
        gap: 10px;
        padding: 12px;
    }

    .samart-stat-icon {
        width: 42px;
        height: 42px;
    }

    .samart-stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .samart-stat-copy small {
        font-size: 11px;
    }

    .samart-stat-copy strong {
        font-size: 21px;
    }

    .samart-quick-card {
        grid-template-columns: 40px minmax(0,1fr);
        min-height: 88px;
        gap: 9px;
        padding: 12px;
    }

    .samart-quick-icon {
        width: 40px;
        height: 40px;
    }

    .samart-quick-icon svg {
        width: 24px;
        height: 24px;
    }

    .samart-quick-copy strong {
        font-size: 12px;
    }

    .samart-quick-copy small {
        display: none;
    }

    .samart-quick-arrow {
        display: none;
    }

    .samart-orders-table-wrap {
        padding: 0 10px 10px;
        overflow: visible;
    }

    .samart-orders-table,
    .samart-orders-table tbody,
    .samart-orders-table tr,
    .samart-orders-table td {
        display: block;
        width: 100%;
    }

    .samart-orders-table {
        border: 0;
        overflow: visible;
    }

    .samart-orders-table thead {
        display: none;
    }

    .samart-orders-table tr {
        margin-bottom: 10px;
        padding: 8px 10px;
        border: 1px solid #dfe5ec;
        border-radius: 8px;
        background: #fff;
    }

    .samart-orders-table td {
        display: grid;
        grid-template-columns: 42% 58%;
        align-items: center;
        gap: 8px;
        padding: 7px 0;
        border-top: 1px dashed #e7ebef;
        text-align: right;
        font-size: 11px;
    }

    .samart-orders-table td:first-child {
        border-top: 0;
    }

    .samart-orders-table td::before {
        content: attr(data-label);
        color: #6f7b8c;
        text-align: left;
        font-weight: 600;
    }

    .samart-orders-table td > * {
        justify-self: end;
    }

    .samart-help-bar {
        padding: 15px;
    }

    .samart-help-items {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .samart-help-item strong {
        max-width: none;
        white-space: normal;
        word-break: break-word;
    }

    .samart-account-content-card > :not(.samart-dashboard) {
        padding: 16px;
    }

    .samart-account-content-card .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }

    .samart-account-content-card .woocommerce-orders-table,
    .samart-account-content-card .shop_table {
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .samart-stat-grid,
    .samart-quick-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
 * v1.1.0 refinements
 * ========================================================== */

/* Auth: compact card + no section background */
.samart-account-ui-page .samart-auth-page {
    padding: 28px 16px 40px;
    background: transparent !important;
}

.samart-account-ui-page .samart-auth-card {
    width: min(680px, 100%);
    padding: 28px 32px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 35, 65, .07);
}

.samart-account-ui-page .samart-reset-card {
    width: min(620px, 100%);
}

.samart-account-ui-page .samart-auth-brand {
    margin-bottom: 22px;
}

.samart-account-ui-page .samart-auth-logo {
    max-width: 190px;
    max-height: 64px;
    margin-bottom: 16px;
}

.samart-account-ui-page .samart-auth-site-name {
    display: none !important;
}

.samart-account-ui-page .samart-auth-brand h1 {
    font-size: clamp(30px, 3vw, 38px);
}

.samart-account-ui-page .samart-auth-brand p {
    max-width: 540px;
    margin-top: 8px;
    font-size: 15px;
}

.samart-account-ui-page .samart-auth-tabs {
    margin-bottom: 24px;
    border-radius: 10px;
}

.samart-account-ui-page .samart-auth-tab {
    min-height: 52px;
    gap: 9px;
    font-size: 16px;
}

.samart-account-ui-page .samart-auth-tab svg {
    width: 23px;
    height: 23px;
}

.samart-account-ui-page .samart-field {
    margin-bottom: 17px;
}

.samart-account-ui-page .samart-field > label {
    margin-bottom: 7px;
    font-size: 15px;
}

.samart-account-ui-page .samart-input-wrap .samart-input-icon {
    left: 16px;
    width: 22px;
    height: 22px;
}

.samart-account-ui-page .samart-auth-card .samart-input-wrap input[type="text"],
.samart-account-ui-page .samart-auth-card .samart-input-wrap input[type="email"],
.samart-account-ui-page .samart-auth-card .samart-input-wrap input[type="password"] {
    min-height: 54px;
    padding: 0 50px 0 50px;
    border-radius: 9px;
    font-size: 15px;
}

.samart-account-ui-page .samart-password-toggle {
    right: 7px;
    width: 40px;
    height: 40px;
}

.samart-account-ui-page .samart-password-toggle svg {
    width: 22px;
    height: 22px;
}

.samart-account-ui-page .samart-auth-row {
    margin: 0 0 18px;
}

.samart-account-ui-page .samart-checkbox,
.samart-account-ui-page .samart-forgot-link {
    font-size: 14px;
}

.samart-account-ui-page .samart-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
}

.samart-account-ui-page .samart-checkbox input[type="checkbox"]:checked::after {
    left: 6px;
    top: 3px;
    width: 6px;
    height: 11px;
}

.samart-account-ui-page .samart-primary-button,
.samart-account-ui-page .samart-auth-card .button.samart-primary-button,
.samart-account-ui-page .woocommerce .button.samart-primary-button,
.samart-account-ui-page .samart-line-button {
    min-height: 54px;
    gap: 9px;
    border-radius: 9px !important;
    font-size: 16px !important;
}

.samart-account-ui-page .samart-primary-button svg,
.samart-account-ui-page .samart-line-button svg {
    width: 23px;
    height: 23px;
}

.samart-account-ui-page .samart-auth-divider {
    margin: 20px 0;
    font-size: 14px;
}

.samart-account-ui-page .samart-register-callout {
    grid-template-columns: 48px 1fr auto;
    gap: 13px;
    margin-top: 22px;
    padding: 16px 18px;
}

.samart-account-ui-page .samart-register-callout-icon {
    width: 46px;
    height: 46px;
}

.samart-account-ui-page .samart-register-callout-icon svg {
    width: 28px;
    height: 28px;
}

.samart-account-ui-page .samart-register-callout-copy strong {
    font-size: 15px;
}

.samart-account-ui-page .samart-register-callout-copy span,
.samart-account-ui-page .samart-form-note,
.samart-account-ui-page .samart-auth-card .woocommerce-privacy-policy-text {
    font-size: 13px;
}

.samart-account-ui-page .samart-secondary-button,
.samart-account-ui-page .woocommerce .button.samart-secondary-button {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 14px;
}

.samart-account-ui-page .samart-reset-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
}

.samart-account-ui-page .samart-reset-icon svg {
    width: 28px;
    height: 28px;
}

.samart-account-ui-page .samart-reset-back {
    margin-top: 18px;
}

.samart-account-ui-page .samart-reset-back a {
    font-size: 14px;
}

/* Dashboard quick actions: give each item enough horizontal room */
.samart-account-ui-page .samart-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.samart-account-ui-page .samart-quick-card {
    min-height: 82px;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 14px 16px;
}

.samart-account-ui-page .samart-quick-icon {
    width: 42px;
    height: 42px;
}

.samart-account-ui-page .samart-quick-icon svg {
    width: 24px;
    height: 24px;
}

.samart-account-ui-page .samart-quick-copy strong {
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.3;
}

.samart-account-ui-page .samart-quick-copy small {
    display: block;
    font-size: 11.5px;
    line-height: 1.45;
}

/* Old help bar is intentionally removed in v1.1 */
.samart-account-ui-page .samart-help-bar {
    display: none !important;
}

/* Shared endpoint heading */
.samart-endpoint-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.samart-endpoint-heading h2 {
    margin: 0;
    color: var(--samart-text);
    font-size: 23px;
    line-height: 1.25;
    font-weight: 800;
}

.samart-endpoint-heading p {
    max-width: 680px;
    margin: 5px 0 0;
    color: var(--samart-muted);
    font-size: 13px;
    line-height: 1.55;
}

.samart-endpoint-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #dce4ed;
    border-radius: 999px;
    background: #f7f9fc;
    color: #52647d;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Orders endpoint */
.samart-orders-page {
    padding: 24px;
}

.samart-order-list {
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #fff;
}

.samart-order-list-head,
.samart-order-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.05fr) minmax(115px, .8fr) minmax(120px, .9fr) minmax(130px, .9fr) minmax(190px, 1.15fr);
    align-items: center;
    column-gap: 16px;
}

.samart-order-list-head {
    min-height: 48px;
    padding: 0 18px;
    background: #f4f6f9;
    color: #526078;
    font-size: 11px;
    font-weight: 700;
}

.samart-order-row {
    min-height: 76px;
    padding: 12px 18px;
    border-top: 1px solid #e7ebf0;
    transition: background-color .18s ease;
}

.samart-order-row:hover {
    background: #fbfdff;
}

.samart-order-cell {
    min-width: 0;
    color: #17345f;
    font-size: 13px;
    line-height: 1.4;
}

.samart-order-number {
    display: flex;
    align-items: center;
    gap: 11px;
}

.samart-order-mini-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 9px;
    background: #edf4ff;
    color: var(--samart-accent);
}

.samart-order-mini-icon svg {
    width: 21px;
    height: 21px;
}

.samart-order-number strong,
.samart-order-number small {
    display: block;
}

.samart-order-number strong {
    color: var(--samart-primary);
    font-size: 14px;
    font-weight: 800;
}

.samart-order-number small {
    margin-top: 2px;
    color: var(--samart-muted);
    font-size: 10px;
}

.samart-order-total strong {
    color: var(--samart-text);
    font-size: 14px;
    font-weight: 800;
}

.samart-order-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.samart-order-action {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid var(--samart-primary);
    border-radius: 7px;
    background: var(--samart-primary);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
}

.samart-order-action:hover {
    background: #084785;
    color: #fff !important;
}

.samart-order-action.is-cancel {
    border-color: #dfe5ec;
    background: #fff;
    color: #66758a !important;
}

.samart-order-action.is-cancel:hover {
    border-color: #e8b5b5;
    background: #fff6f6;
    color: #bd4141 !important;
}

.samart-orders-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    color: var(--samart-muted);
    font-size: 12px;
}

.samart-page-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border: 1px solid #d9e1ea;
    border-radius: 7px;
    background: #fff;
    color: var(--samart-primary) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.samart-page-button:hover {
    border-color: var(--samart-primary);
}

.samart-empty-endpoint {
    padding: 50px 20px;
    border: 1px dashed #d9e1e9;
    border-radius: 10px;
    background: #fbfcfe;
    text-align: center;
}

.samart-empty-endpoint-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #edf4ff;
    color: var(--samart-accent);
}

.samart-empty-endpoint-icon svg {
    width: 30px;
    height: 30px;
}

.samart-empty-endpoint h3 {
    margin: 0 0 5px;
    color: var(--samart-text);
    font-size: 18px;
}

.samart-empty-endpoint p {
    margin: 0 0 16px;
    color: var(--samart-muted);
    font-size: 13px;
}

/* Address endpoint */
.samart-address-page {
    padding: 24px;
}

.samart-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.samart-address-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.samart-address-card {
    min-width: 0;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #fff;
}

.samart-address-card-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e8edf2;
    background: #fbfcfe;
}

.samart-address-card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.samart-address-card-icon.is-blue {
    background: #eaf2ff;
    color: #0b6ce1;
}

.samart-address-card-icon.is-green {
    background: #eaf9ee;
    color: #11a94a;
}

.samart-address-card-icon svg {
    width: 24px;
    height: 24px;
}

.samart-address-card-title {
    min-width: 0;
}

.samart-address-card-title h3 {
    margin: 0;
    color: var(--samart-text);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}

.samart-address-card-title p {
    margin: 3px 0 0;
    color: var(--samart-muted);
    font-size: 11px;
    line-height: 1.45;
}

.samart-address-edit {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #ccd8e6;
    border-radius: 7px;
    background: #fff;
    color: var(--samart-primary) !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.samart-address-edit:hover {
    border-color: var(--samart-accent);
    color: var(--samart-accent) !important;
}

.samart-address-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 22px 20px 24px;
}

.samart-address-body address {
    width: 100%;
    margin: 0;
    color: #1d385e;
    font-size: 14px;
    font-style: normal;
    line-height: 1.8;
}

.samart-address-empty strong,
.samart-address-empty span {
    display: block;
}

.samart-address-empty strong {
    margin-bottom: 4px;
    color: var(--samart-text);
    font-size: 14px;
}

.samart-address-empty span {
    color: var(--samart-muted);
    font-size: 12px;
    line-height: 1.55;
}

/* Edit-address form: keep fields balanced when user enters an address */
.samart-account-content-card .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.samart-account-content-card .woocommerce-address-fields__field-wrapper .form-row {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.samart-account-content-card .woocommerce-address-fields__field-wrapper .form-row-wide,
.samart-account-content-card .woocommerce-address-fields__field-wrapper #billing_address_1_field,
.samart-account-content-card .woocommerce-address-fields__field-wrapper #billing_address_2_field,
.samart-account-content-card .woocommerce-address-fields__field-wrapper #shipping_address_1_field,
.samart-account-content-card .woocommerce-address-fields__field-wrapper #shipping_address_2_field {
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .samart-order-list-head,
    .samart-order-row {
        grid-template-columns: minmax(140px, 1fr) minmax(100px, .8fr) minmax(110px, .85fr) minmax(115px, .85fr) minmax(150px, 1fr);
        column-gap: 10px;
    }

    .samart-order-row {
        padding-left: 14px;
        padding-right: 14px;
    }

    .samart-order-list-head {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 820px) {
    .samart-account-ui-page .samart-auth-card,
    .samart-account-ui-page .samart-reset-card {
        width: min(620px, 100%);
        padding: 26px 24px 28px;
    }

    .samart-account-ui-page .samart-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .samart-order-list {
        border: 0;
        background: transparent;
    }

    .samart-order-list-head {
        display: none;
    }

    .samart-order-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
        min-height: 0;
        margin-bottom: 12px;
        padding: 16px;
        border: 1px solid #dfe5ec;
        border-radius: 10px;
        background: #fff;
    }

    .samart-order-row:first-of-type {
        border-top: 1px solid #dfe5ec;
    }

    .samart-order-cell {
        min-height: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 7px 0;
        border-bottom: 1px dashed #e7ebf0;
    }

    .samart-order-cell::before {
        content: attr(data-label);
        margin-bottom: 4px;
        color: var(--samart-muted);
        font-size: 10px;
        font-weight: 700;
    }

    .samart-order-number {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
    }

    .samart-order-number::before {
        display: none;
    }

    .samart-order-actions {
        grid-column: 1 / -1;
        min-height: 0;
        flex-direction: row;
        justify-content: flex-start;
        border-bottom: 0;
    }

    .samart-order-actions::before {
        width: 100%;
    }

    .samart-address-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .samart-account-ui-page .samart-auth-page {
        padding: 12px 8px 28px;
        background: transparent !important;
    }

    .samart-account-ui-page .samart-auth-card,
    .samart-account-ui-page .samart-reset-card {
        padding: 22px 15px 22px;
        border-radius: 12px;
    }

    .samart-account-ui-page .samart-auth-logo {
        max-width: 155px;
        max-height: 54px;
        margin-bottom: 12px;
    }

    .samart-account-ui-page .samart-auth-brand h1 {
        font-size: 28px;
    }

    .samart-account-ui-page .samart-auth-brand p {
        font-size: 13px;
    }

    .samart-account-ui-page .samart-auth-tab {
        min-height: 48px;
        font-size: 14px;
    }

    .samart-account-ui-page .samart-auth-card .samart-input-wrap input[type="text"],
    .samart-account-ui-page .samart-auth-card .samart-input-wrap input[type="email"],
    .samart-account-ui-page .samart-auth-card .samart-input-wrap input[type="password"],
    .samart-account-ui-page .samart-primary-button,
    .samart-account-ui-page .samart-auth-card .button.samart-primary-button,
    .samart-account-ui-page .woocommerce .button.samart-primary-button,
    .samart-account-ui-page .samart-line-button {
        min-height: 50px;
    }

    .samart-account-ui-page .samart-register-callout {
        grid-template-columns: 42px 1fr;
        padding: 14px;
    }

    .samart-account-ui-page .samart-register-callout .samart-secondary-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .samart-account-ui-page .samart-quick-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .samart-account-ui-page .samart-quick-card {
        min-height: 72px;
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        padding: 12px 13px;
    }

    .samart-account-ui-page .samart-quick-copy small {
        display: block;
        font-size: 10.5px;
    }

    .samart-account-ui-page .samart-quick-arrow {
        display: block;
    }

    .samart-orders-page,
    .samart-address-page {
        padding: 15px;
    }

    .samart-endpoint-heading {
        display: block;
        margin-bottom: 15px;
    }

    .samart-endpoint-heading h2 {
        font-size: 20px;
    }

    .samart-endpoint-heading p {
        font-size: 12px;
    }

    .samart-endpoint-count {
        margin-top: 10px;
    }

    .samart-order-row {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 14px;
    }

    .samart-order-number,
    .samart-order-actions {
        grid-column: auto;
    }

    .samart-order-cell {
        min-height: 0;
        display: grid;
        grid-template-columns: 95px minmax(0, 1fr);
        align-items: center;
        padding: 9px 0;
    }

    .samart-order-cell::before {
        margin: 0;
    }

    .samart-order-number {
        display: flex;
        padding-top: 0;
    }

    .samart-order-actions {
        display: flex;
        padding-bottom: 0;
    }

    .samart-order-actions::before {
        display: none;
    }

    .samart-order-action {
        flex: 1 1 auto;
    }

    .samart-orders-pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .samart-address-card {
        min-height: 0;
    }

    .samart-address-card-head {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 14px;
    }

    .samart-address-card-icon {
        width: 38px;
        height: 38px;
    }

    .samart-address-edit {
        grid-column: 1 / -1;
        width: 100%;
    }

    .samart-address-body {
        padding: 18px 16px 20px;
    }

    .samart-account-content-card .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .samart-account-content-card .woocommerce-address-fields__field-wrapper .form-row {
        grid-column: 1 / -1;
    }
}

/* ==========================================================
 * v1.2.0 — Order details, Cart, Checkout, /en UI
 * ========================================================== */
.samart-commerce-ui-page {
    --samart-primary: #062f63;
    --samart-accent: #0b6ce1;
    --samart-text: #0d2344;
    --samart-muted: #6b778b;
    --samart-border: #dbe2ea;
    --samart-soft: #f6f9fc;
    --samart-shadow: 0 10px 35px rgba(15, 35, 65, 0.08);
}

.samart-commerce-ui-page .woocommerce-notices-wrapper,
.samart-commerce-ui-page .woocommerce-error,
.samart-commerce-ui-page .woocommerce-message,
.samart-commerce-ui-page .woocommerce-info {
    width: min(1320px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.samart-commerce-ui-page .woocommerce-error,
.samart-commerce-ui-page .woocommerce-message,
.samart-commerce-ui-page .woocommerce-info {
    border-radius: 10px;
}

/* ---------- View order ---------- */
.samart-order-view {
    padding: 24px;
}

.samart-order-view-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid #dfe6ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
}

.samart-order-view-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.samart-order-view-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e9f2ff;
    color: var(--samart-accent);
}

.samart-order-view-icon svg {
    width: 28px;
    height: 28px;
}

.samart-order-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #677790;
    font-size: 11px;
    font-weight: 700;
}

.samart-order-view-heading h2 {
    margin: 0;
    color: var(--samart-text);
    font-size: 25px;
    line-height: 1.15;
    font-weight: 800;
}

.samart-order-view-heading p {
    margin: 5px 0 0;
    color: var(--samart-muted);
    font-size: 12px;
    line-height: 1.5;
}

.samart-order-view-status {
    min-height: 30px;
    padding: 4px 12px;
    font-size: 11px;
}

.samart-third-party-order-area:empty {
    display: none;
}

.samart-third-party-order-area:not(:empty) {
    margin-bottom: 18px;
}

.samart-third-party-order-area > h2,
.samart-third-party-order-area > h3 {
    margin: 0 0 10px !important;
    color: var(--samart-text) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.samart-third-party-order-area > table,
.samart-third-party-order-area > div,
.samart-third-party-order-area .shipment-tracking,
.samart-third-party-order-area .tracking-information {
    border-radius: 10px !important;
}

.samart-third-party-order-area table {
    width: 100%;
    margin: 0 !important;
    border: 1px solid #e0e6ed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
}

.samart-third-party-order-area table td,
.samart-third-party-order-area table th {
    padding: 12px 14px !important;
    border-color: #e7ebf0 !important;
    vertical-align: middle;
}

.samart-third-party-order-area .button,
.samart-third-party-order-area a.button {
    min-height: 36px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 14px !important;
    border-radius: 7px !important;
    background: var(--samart-primary) !important;
    color: #fff !important;
    font-size: 12px !important;
    text-transform: none !important;
}

.samart-order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
    gap: 16px;
    align-items: start;
}

.samart-order-products-card,
.samart-order-summary-card,
.samart-order-address-card {
    min-width: 0;
    border: 1px solid #dfe6ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 35, 65, .035);
}

.samart-order-block-title {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    border-bottom: 1px solid #e9edf2;
}

.samart-order-block-title h3 {
    margin: 0;
    color: var(--samart-text);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}

.samart-order-block-title p {
    margin: 3px 0 0;
    color: var(--samart-muted);
    font-size: 11px;
    line-height: 1.45;
}

.samart-order-product-list {
    padding: 0 18px;
}

.samart-order-product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0f4;
}

.samart-order-product:last-child {
    border-bottom: 0;
}

.samart-order-product-image {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid #e3e8ee;
    border-radius: 9px;
    background: #f7f9fb;
}

.samart-order-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.samart-order-product-main {
    min-width: 0;
}

.samart-order-product-name {
    display: block;
    color: var(--samart-text) !important;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
    text-decoration: none !important;
}

.samart-order-product-qty {
    display: block;
    margin-top: 4px;
    color: var(--samart-muted);
    font-size: 11px;
}

.samart-order-product-main .wc-item-meta {
    margin: 5px 0 0;
    padding: 0;
    color: #718097;
    font-size: 10.5px;
    line-height: 1.5;
    list-style: none;
}

.samart-order-product-total {
    color: var(--samart-primary);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.samart-order-summary-card {
    overflow: hidden;
}

.samart-order-total-lines {
    padding: 5px 18px 10px;
}

.samart-order-total-line {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f4;
    color: #4d5f78;
    font-size: 12px;
}

.samart-order-total-line strong {
    color: var(--samart-text);
    text-align: right;
    font-weight: 700;
}

.samart-order-total-line.is-grand-total {
    min-height: 58px;
    border-bottom: 0;
    color: var(--samart-text);
    font-size: 14px;
    font-weight: 800;
}

.samart-order-total-line.is-grand-total strong {
    color: var(--samart-primary);
    font-size: 20px;
    font-weight: 800;
}

.samart-order-again {
    padding: 0 18px 18px;
}

.samart-order-again .button {
    width: 100%;
    min-height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    background: var(--samart-primary) !important;
    color: #fff !important;
    text-transform: none !important;
}

.samart-order-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.samart-order-address-card {
    padding: 18px;
}

.samart-order-address-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f4;
}

.samart-order-address-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.samart-order-address-icon.is-blue { background: #eaf2ff; color: #0b6ce1; }
.samart-order-address-icon.is-green { background: #eaf9ee; color: #11a94a; }
.samart-order-address-icon svg { width: 23px; height: 23px; }

.samart-order-address-head h3 {
    margin: 0;
    color: var(--samart-text);
    font-size: 15px;
    font-weight: 800;
}

.samart-order-address-head p {
    margin: 3px 0 0;
    color: var(--samart-muted);
    font-size: 10.5px;
    line-height: 1.45;
}

.samart-order-address-card address {
    margin: 0;
    color: #263e61;
    font-size: 12.5px;
    font-style: normal;
    line-height: 1.75;
}

.samart-order-contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #425a7b;
    font-size: 11.5px;
}

.samart-order-contact-line svg {
    width: 17px;
    height: 17px;
    color: var(--samart-accent);
}

/* ---------- Shared Cart / Checkout heading ---------- */
.samart-cart-page,
.samart-checkout-page {
    width: min(1320px, calc(100% - 32px));
    margin: 34px auto 60px;
    color: var(--samart-text);
}

.samart-commerce-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.samart-commerce-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--samart-accent);
    font-size: 12px;
    font-weight: 800;
}

.samart-commerce-heading h1 {
    margin: 0;
    color: var(--samart-text);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 800;
}

.samart-commerce-heading p {
    margin: 7px 0 0;
    color: var(--samart-muted);
    font-size: 13px;
    line-height: 1.55;
}

.samart-cart-count,
.samart-checkout-security {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid #dce4ed;
    border-radius: 999px;
    background: #f8fafc;
    color: #53657e;
    font-size: 12px;
    font-weight: 700;
}

.samart-checkout-security svg {
    width: 17px;
    height: 17px;
    color: #18a64b;
}

/* ---------- Cart ---------- */
.samart-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
    align-items: start;
}

.samart-cart-items-card,
.samart-cart-totals {
    border: 1px solid #dde5ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 35, 65, .045);
}

.samart-cart-card-head,
.samart-cart-total-head {
    padding: 18px 20px;
    border-bottom: 1px solid #e8edf2;
}

.samart-cart-card-head h2,
.samart-cart-total-head h2 {
    margin: 0;
    color: var(--samart-text);
    font-size: 18px;
    font-weight: 800;
}

.samart-cart-card-head span,
.samart-cart-total-head p {
    display: block;
    margin: 4px 0 0;
    color: var(--samart-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.samart-cart-items {
    padding: 0 20px;
}

.samart-cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 120px 130px 34px;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #edf0f4;
}

.samart-cart-product-image {
    width: 92px;
    height: 92px;
    overflow: hidden;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    background: #f8fafc;
}

.samart-cart-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.samart-cart-product-info {
    min-width: 0;
}

.samart-cart-product-name {
    display: block;
    color: var(--samart-text) !important;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
    text-decoration: none !important;
}

.samart-cart-meta,
.samart-cart-meta .variation {
    margin: 5px 0 0 !important;
    color: var(--samart-muted);
    font-size: 10.5px;
    line-height: 1.5;
}

.samart-cart-unit-price {
    margin-top: 7px;
    color: #536a88;
    font-size: 12px;
    font-weight: 700;
}

.samart-cart-quantity .quantity {
    width: 100%;
    max-width: 110px;
    margin: 0 auto;
}

.samart-cart-quantity input.qty {
    min-height: 38px;
    border: 1px solid #d4dde7;
    border-radius: 7px;
    background: #fff;
    color: var(--samart-text);
    text-align: center;
}

.samart-cart-subtotal {
    text-align: right;
}

.samart-cart-subtotal strong {
    color: var(--samart-primary);
    font-size: 14px;
    font-weight: 800;
}

.samart-cart-mobile-label {
    display: none;
    margin-bottom: 3px;
    color: var(--samart-muted);
    font-size: 10px;
    font-weight: 700;
}

.samart-remove-item,
.samart-cart-page a.remove.samart-remove-item {
    width: 30px !important;
    height: 30px !important;
    display: grid !important;
    place-items: center;
    border: 1px solid #e0e6ed !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #8290a2 !important;
    font-size: 21px !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.samart-remove-item:hover,
.samart-cart-page a.remove.samart-remove-item:hover {
    border-color: #f1b7b7 !important;
    background: #fff6f6 !important;
    color: #c84b4b !important;
}

.samart-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px 18px;
}

.samart-cart-coupon {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.samart-cart-coupon input.input-text {
    width: 180px !important;
    min-height: 40px;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #d4dde7 !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

.samart-cart-outline-button,
.samart-cart-update,
.samart-cart-page .button.samart-cart-outline-button,
.samart-cart-page .button.samart-cart-update {
    min-height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 14px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-transform: none !important;
}

.samart-cart-outline-button,
.samart-cart-page .button.samart-cart-outline-button {
    border: 1px solid #cdd8e5 !important;
    background: #fff !important;
    color: var(--samart-primary) !important;
}

.samart-cart-update,
.samart-cart-page .button.samart-cart-update {
    border: 1px solid var(--samart-primary) !important;
    background: var(--samart-primary) !important;
    color: #fff !important;
}

.samart-cart-summary-wrap {
    position: sticky;
    top: 110px;
}

.samart-cart-totals {
    overflow: hidden;
}

.samart-cart-total-body {
    padding: 6px 20px 8px;
}

.samart-cart-total-row,
.samart-cart-shipping-row {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f4;
    color: #53657d;
    font-size: 12px;
}

.samart-cart-total-row strong,
.samart-cart-shipping-row strong {
    color: var(--samart-text);
    text-align: right;
}

.samart-cart-shipping-row {
    align-items: flex-start;
}

.samart-cart-shipping-title {
    padding-top: 4px;
    font-weight: 700;
}

.samart-cart-shipping-row > div {
    min-width: 0;
    text-align: right;
}

.samart-cart-shipping-row ul#shipping_method,
.samart-review-shipping ul#shipping_method {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.samart-cart-shipping-row ul#shipping_method li,
.samart-review-shipping ul#shipping_method li {
    margin: 0 0 5px !important;
    padding: 0 !important;
    font-size: 11.5px;
}

.samart-cart-grand-total {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0 8px;
    color: var(--samart-text);
    font-size: 15px;
    font-weight: 800;
}

.samart-cart-grand-total strong {
    color: var(--samart-primary);
    font-size: 21px;
    font-weight: 800;
}

.samart-proceed-to-checkout {
    padding: 10px 20px 0 !important;
}

.samart-proceed-to-checkout .checkout-button,
.samart-cart-page .wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    min-height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, var(--samart-primary), #084c95) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

.samart-cart-trust-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 18px 18px;
    color: #78869a;
    font-size: 10.5px;
    text-align: center;
}

.samart-cart-trust-note svg {
    width: 15px;
    height: 15px;
    color: #18a64b;
}

/* ---------- Checkout ---------- */
.samart-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 22px;
    align-items: start;
}

.samart-checkout-fields-column {
    display: grid;
    gap: 16px;
}

.samart-checkout-section,
.samart-checkout-review-sticky {
    border: 1px solid #dde5ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 35, 65, .04);
}

.samart-checkout-section {
    padding: 20px;
}

.samart-checkout-section-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf0f4;
}

.samart-checkout-section-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf2ff;
    color: var(--samart-accent);
}

.samart-checkout-section-icon.is-green {
    background: #eaf9ee;
    color: #11a94a;
}

.samart-checkout-section-icon svg {
    width: 23px;
    height: 23px;
}

.samart-checkout-section-head h2,
.samart-checkout-section-head h3 {
    margin: 0 !important;
    color: var(--samart-text) !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}

.samart-checkout-section-head p {
    margin: 3px 0 0;
    color: var(--samart-muted);
    font-size: 11px;
    line-height: 1.5;
}

.samart-shipping-toggle-head label {
    margin: 0;
    font-weight: 800;
}

.samart-checkout-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.samart-checkout-page .form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 0 14px !important;
}

.samart-checkout-page .form-row-wide,
.samart-checkout-page #billing_address_1_field,
.samart-checkout-page #billing_address_2_field,
.samart-checkout-page #shipping_address_1_field,
.samart-checkout-page #shipping_address_2_field,
.samart-checkout-page #billing_company_field,
.samart-checkout-page #shipping_company_field {
    grid-column: 1 / -1;
}

.samart-checkout-page .form-row label {
    display: block;
    margin: 0 0 6px;
    color: var(--samart-text);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.samart-checkout-page .form-row label .required {
    color: #e45454;
}

.samart-checkout-page input.input-text,
.samart-checkout-page select,
.samart-checkout-page textarea,
.samart-checkout-page .select2-container .select2-selection--single {
    min-height: 46px !important;
    border: 1px solid #d3dce6 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--samart-text) !important;
    box-shadow: none !important;
    font-size: 12.5px !important;
}

.samart-checkout-page input.input-text,
.samart-checkout-page textarea {
    padding: 9px 12px !important;
}

.samart-checkout-page textarea {
    min-height: 96px !important;
    resize: vertical;
}

.samart-checkout-page .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    padding-left: 12px !important;
}

.samart-checkout-page .select2-container .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
}

.samart-checkout-page input.input-text:focus,
.samart-checkout-page textarea:focus,
.samart-checkout-page .select2-container--focus .select2-selection--single {
    border-color: var(--samart-accent) !important;
    box-shadow: 0 0 0 3px rgba(11,108,225,.09) !important;
    outline: 0 !important;
}

.samart-checkout-account-fields .create-account {
    margin: 0 !important;
}

.samart-checkout-review-column {
    min-width: 0;
}

.samart-checkout-review-sticky {
    position: sticky;
    top: 110px;
    overflow: hidden;
}

.samart-checkout-review-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #e8edf2;
}

.samart-checkout-review-title h2 {
    margin: 0;
    color: var(--samart-text);
    font-size: 18px;
    font-weight: 800;
}

.samart-checkout-review-title > span {
    color: var(--samart-muted);
    font-size: 11.5px;
    font-weight: 700;
}

.samart-review-products {
    padding: 0 20px;
}

.samart-review-product {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
}

.samart-review-thumb {
    position: relative;
    width: 54px;
    height: 54px;
    border: 1px solid #e2e7ed;
    border-radius: 8px;
    background: #f8fafc;
}

.samart-review-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: inherit;
}

.samart-review-thumb > span {
    position: absolute;
    right: -6px;
    top: -7px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--samart-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.samart-review-product-copy {
    min-width: 0;
}

.samart-review-product-copy strong {
    display: block;
    color: var(--samart-text);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
}

.samart-review-meta,
.samart-review-meta .variation {
    margin: 3px 0 0 !important;
    color: var(--samart-muted);
    font-size: 10px;
    line-height: 1.45;
}

.samart-review-product-total {
    color: var(--samart-primary);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.samart-review-totals {
    padding: 5px 20px 12px;
}

.samart-review-total-row,
.samart-review-shipping {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #edf0f4;
    color: #53657d;
    font-size: 11.5px;
}

.samart-review-total-row strong {
    color: var(--samart-text);
    text-align: right;
}

.samart-review-shipping {
    align-items: flex-start;
}

.samart-review-shipping > div {
    text-align: right;
}

.samart-review-grand-total {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 12px;
    color: var(--samart-text);
    font-size: 14px;
    font-weight: 800;
}

.samart-review-grand-total strong {
    color: var(--samart-primary);
    font-size: 20px;
}

.samart-checkout-payment {
    margin: 0 !important;
    padding: 0 20px 20px !important;
    border: 0 !important;
    background: #fff !important;
}

.samart-payment-title {
    padding: 16px 0 12px;
    border-top: 1px solid #e7ebf0;
}

.samart-payment-title h3 {
    margin: 0;
    color: var(--samart-text);
    font-size: 15px;
    font-weight: 800;
}

.samart-payment-title p {
    margin: 3px 0 0;
    color: var(--samart-muted);
    font-size: 10.5px;
}

.samart-checkout-payment ul.payment_methods {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
}

.samart-checkout-payment ul.payment_methods > li {
    margin: 0 0 8px !important;
    padding: 12px !important;
    border: 1px solid #dfe6ee !important;
    border-radius: 8px !important;
    background: #fbfcfe !important;
}

.samart-checkout-payment ul.payment_methods > li > label {
    color: var(--samart-text) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.samart-checkout-payment .payment_box {
    margin: 10px 0 0 !important;
    padding: 10px 12px !important;
    border-radius: 7px !important;
    background: #f2f6fb !important;
    color: #596b83 !important;
    font-size: 10.5px !important;
    line-height: 1.55 !important;
}

.samart-checkout-payment .payment_box::before {
    display: none !important;
}

.samart-checkout-payment .place-order {
    margin: 0 !important;
    padding: 0 !important;
}

.samart-place-order,
.samart-checkout-page #place_order {
    width: 100% !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 12px 0 0 !important;
    padding: 12px 18px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, var(--samart-primary), #084c95) !important;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-transform: none !important;
}

.samart-checkout-payment .woocommerce-privacy-policy-text,
.samart-checkout-payment .woocommerce-terms-and-conditions-wrapper {
    color: var(--samart-muted);
    font-size: 10.5px;
    line-height: 1.55;
}

/* WooCommerce Cart / Checkout Blocks: visual compatibility when Blocks are used. */
.samart-cart-ui-page .wc-block-cart,
.samart-checkout-ui-page .wc-block-checkout {
    width: min(1320px, calc(100% - 32px));
    margin: 34px auto 60px;
}

.samart-cart-ui-page .wc-block-cart-items,
.samart-cart-ui-page .wc-block-cart__sidebar,
.samart-checkout-ui-page .wc-block-checkout__main,
.samart-checkout-ui-page .wc-block-checkout__sidebar {
    border-color: #dde5ed !important;
}

.samart-cart-ui-page .wc-block-components-sidebar-layout .wc-block-components-main,
.samart-checkout-ui-page .wc-block-components-sidebar-layout .wc-block-components-main {
    padding-right: 24px;
}

.samart-cart-ui-page .wc-block-components-totals-wrapper,
.samart-checkout-ui-page .wc-block-components-totals-wrapper,
.samart-checkout-ui-page .wc-block-checkout__payment-method .wc-block-components-radio-control {
    border-color: #e5eaf0 !important;
}

.samart-cart-ui-page .wc-block-components-button,
.samart-checkout-ui-page .wc-block-components-button {
    border-radius: 8px !important;
    background: var(--samart-primary) !important;
    color: #fff !important;
    text-transform: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .samart-cart-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .samart-cart-item {
        grid-template-columns: 78px minmax(0, 1fr) 100px 115px 32px;
        gap: 12px;
    }

    .samart-cart-product-image {
        width: 78px;
        height: 78px;
    }

    .samart-checkout-layout {
        grid-template-columns: minmax(0, 1fr) 390px;
    }
}

@media (max-width: 980px) {
    .samart-order-detail-layout,
    .samart-cart-layout,
    .samart-checkout-layout {
        grid-template-columns: 1fr;
    }

    .samart-cart-summary-wrap,
    .samart-checkout-review-sticky {
        position: static;
    }

    .samart-cart-summary-wrap {
        width: 100%;
    }

    .samart-checkout-review-column {
        order: 2;
    }
}

@media (max-width: 760px) {
    .samart-order-view {
        padding: 16px;
    }

    .samart-order-view-hero,
    .samart-commerce-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .samart-order-address-grid {
        grid-template-columns: 1fr;
    }

    .samart-cart-page,
    .samart-checkout-page {
        width: min(100% - 20px, 1320px);
        margin-top: 22px;
        margin-bottom: 40px;
    }

    .samart-cart-item {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .samart-cart-product-image {
        width: 72px;
        height: 72px;
    }

    .samart-cart-quantity {
        grid-column: 2;
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .samart-cart-quantity .quantity {
        max-width: 95px;
        margin: 0;
    }

    .samart-cart-subtotal {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
    }

    .samart-cart-remove {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
    }

    .samart-cart-mobile-label {
        display: block;
    }

    .samart-cart-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .samart-cart-coupon {
        width: 100%;
    }

    .samart-cart-coupon input.input-text {
        width: auto !important;
        flex: 1;
    }

    .samart-cart-update {
        width: 100%;
    }

    .samart-checkout-fields-grid {
        grid-template-columns: 1fr;
    }

    .samart-checkout-page .form-row {
        grid-column: 1 / -1;
    }

    .samart-checkout-section {
        padding: 16px;
    }

    .samart-review-product {
        grid-template-columns: 48px minmax(0, 1fr) auto;
    }

    .samart-review-thumb {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 520px) {
    .samart-order-view {
        padding: 12px;
    }

    .samart-order-view-hero {
        padding: 14px;
    }

    .samart-order-view-heading {
        align-items: flex-start;
    }

    .samart-order-view-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .samart-order-view-heading h2 {
        font-size: 21px;
    }

    .samart-order-view-status {
        align-self: stretch;
    }

    .samart-order-product-list {
        padding: 0 14px;
    }

    .samart-order-product {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 11px;
        padding: 14px 0;
    }

    .samart-order-product-image {
        width: 54px;
        height: 54px;
    }

    .samart-order-product-total {
        grid-column: 2;
        margin-top: -5px;
    }

    .samart-order-total-lines,
    .samart-order-again {
        padding-left: 14px;
        padding-right: 14px;
    }

    .samart-order-address-card {
        padding: 14px;
    }

    .samart-commerce-heading h1 {
        font-size: 26px;
    }

    .samart-cart-items {
        padding: 0 14px;
    }

    .samart-cart-card-head,
    .samart-cart-total-head,
    .samart-checkout-review-title {
        padding: 15px 14px;
    }

    .samart-cart-item {
        grid-template-columns: 62px minmax(0, 1fr) 30px;
        gap: 10px;
        padding: 15px 0;
    }

    .samart-cart-product-image {
        width: 62px;
        height: 62px;
    }

    .samart-cart-quantity {
        grid-column: 2 / 4;
    }

    .samart-cart-subtotal {
        grid-column: 2 / 4;
        grid-row: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .samart-cart-remove {
        grid-column: 3;
    }

    .samart-cart-actions {
        padding: 14px;
    }

    .samart-cart-coupon {
        align-items: stretch;
        flex-direction: column;
    }

    .samart-cart-coupon input.input-text,
    .samart-cart-outline-button {
        width: 100% !important;
    }

    .samart-cart-total-body,
    .samart-review-products,
    .samart-review-totals,
    .samart-checkout-payment {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .samart-checkout-section-head {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }

    .samart-checkout-section-icon {
        width: 38px;
        height: 38px;
    }

    .samart-review-product {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .samart-review-thumb {
        width: 44px;
        height: 44px;
    }

    .samart-review-product-total {
        grid-column: 2;
    }
}

/* Shipping helper table used inside the custom card layouts. */
.samart-shipping-table-wrap,
.samart-shipping-table {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
}

.samart-shipping-table {
    border-collapse: collapse !important;
}

.samart-shipping-table tr,
.samart-shipping-table th,
.samart-shipping-table td {
    border: 0 !important;
    background: transparent !important;
}

.samart-shipping-table th {
    display: none !important;
}

.samart-shipping-table td {
    padding: 0 !important;
    text-align: right !important;
    font-size: 11.5px !important;
}

.samart-shipping-table .woocommerce-shipping-destination,
.samart-shipping-table .woocommerce-shipping-calculator {
    margin: 6px 0 0 !important;
    color: var(--samart-muted);
    font-size: 10.5px;
}

/* Checkout login / coupon notices above the form. */
.samart-checkout-ui-page .woocommerce-form-login-toggle,
.samart-checkout-ui-page .woocommerce-form-coupon-toggle,
.samart-checkout-ui-page form.checkout_coupon,
.samart-checkout-ui-page form.woocommerce-form-login {
    width: min(1320px, calc(100% - 32px));
    margin-left: auto !important;
    margin-right: auto !important;
}

.samart-checkout-ui-page form.checkout_coupon,
.samart-checkout-ui-page form.woocommerce-form-login {
    padding: 16px !important;
    border: 1px solid #dde5ed !important;
    border-radius: 10px !important;
    background: #fff !important;
}

.samart-checkout-ui-page form.checkout_coupon .form-row {
    margin-bottom: 0 !important;
}

.samart-checkout-ui-page form.checkout_coupon input.input-text {
    min-height: 42px !important;
    border: 1px solid #d3dce6 !important;
    border-radius: 7px !important;
}

.samart-checkout-ui-page form.checkout_coupon .button {
    min-height: 42px !important;
    border-radius: 7px !important;
    background: var(--samart-primary) !important;
    color: #fff !important;
    text-transform: none !important;
}

/* Empty cart / Thank-you */
.samart-cart-empty,
.samart-thankyou-page {
    width: min(760px, calc(100% - 32px));
    margin: 42px auto 64px;
    text-align: center;
}

.samart-cart-empty,
.samart-thankyou-card {
    padding: 38px 32px;
    border: 1px solid #dde5ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(15,35,65,.055);
}

.samart-cart-empty-icon,
.samart-thankyou-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #edf4ff;
    color: var(--samart-accent);
}

.samart-cart-empty-icon svg,
.samart-thankyou-icon svg {
    width: 32px;
    height: 32px;
}

.samart-thankyou-icon.is-success {
    background: #eaf9ee;
    color: #16a34a;
    font-size: 30px;
    font-weight: 800;
}

.samart-cart-empty h1,
.samart-thankyou-card h1 {
    margin: 0;
    color: var(--samart-text);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
}

.samart-cart-empty p,
.samart-thankyou-card > p {
    max-width: 560px;
    margin: 9px auto 20px;
    color: var(--samart-muted);
    font-size: 13px;
    line-height: 1.6;
}

.samart-empty-shop-button,
.samart-thankyou-primary,
.samart-thankyou-secondary {
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.samart-empty-shop-button,
.samart-thankyou-primary {
    background: var(--samart-primary) !important;
    color: #fff !important;
}

.samart-thankyou-secondary {
    border: 1px solid #d8e0e9 !important;
    background: #fff !important;
    color: var(--samart-primary) !important;
}

.samart-thankyou-actions {
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
}

.samart-thankyou-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0;
    text-align: left;
}

.samart-thankyou-summary > div {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #e3e8ee;
    border-radius: 9px;
    background: #fafcff;
}

.samart-thankyou-summary span,
.samart-thankyou-summary strong {
    display: block;
}

.samart-thankyou-summary span {
    margin-bottom: 4px;
    color: var(--samart-muted);
    font-size: 10.5px;
}

.samart-thankyou-summary strong {
    overflow-wrap: anywhere;
    color: var(--samart-text);
    font-size: 12.5px;
    font-weight: 800;
}

@media (max-width: 560px) {
    .samart-cart-empty,
    .samart-thankyou-card {
        padding: 28px 18px;
    }
    .samart-thankyou-summary {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 * v1.3.0 refinements
 * ============================================================ */

/* Every order state gets its own badge palette. */
.samart-status-badge.is-pending {
    border-color: #f2c66d;
    background: #fff9e9;
    color: #a86a00;
}
.samart-status-badge.is-processing {
    border-color: #88b9f2;
    background: #eef6ff;
    color: #1468bd;
}
.samart-status-badge.is-on-hold {
    border-color: #baa4ee;
    background: #f6f1ff;
    color: #6d45be;
}
.samart-status-badge.is-awaiting-payment {
    border-color: #ffb96f;
    background: #fff5e9;
    color: #d76b00;
}
.samart-status-badge.is-shipped {
    border-color: #7fd8c3;
    background: #edfcf8;
    color: #07866d;
}
.samart-status-badge.is-completed {
    border-color: #87daa0;
    background: #effcf3;
    color: #16863a;
}
.samart-status-badge.is-claim-sent {
    border-color: #97a8f4;
    background: #f1f3ff;
    color: #4259c7;
}
.samart-status-badge.is-claim-success {
    border-color: #6fd5ae;
    background: #ecfbf5;
    color: #087a55;
}
.samart-status-badge.is-returning {
    border-color: #d5ad83;
    background: #fff7ef;
    color: #9a5a23;
}
.samart-status-badge.is-return-completed {
    border-color: #75c9dc;
    background: #edfafd;
    color: #147a91;
}
.samart-status-badge.is-cancelled {
    border-color: #f0a1a1;
    background: #fff2f2;
    color: #c83b3b;
}
.samart-status-badge.is-refunded {
    border-color: #cc9ee8;
    background: #fbf2ff;
    color: #8b43af;
}
.samart-status-badge.is-failed {
    border-color: #e58d97;
    background: #fff0f2;
    color: #a92738;
}
.samart-status-badge.is-draft {
    border-color: #c9d0d9;
    background: #f5f7f9;
    color: #697586;
}

/* Cart summary: larger and easier to scan. */
.samart-cart-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
}
.samart-cart-total-head h2 {
    font-size: 20px;
}
.samart-cart-total-head p {
    font-size: 13px;
}
.samart-cart-total-row,
.samart-cart-shipping-row {
    min-height: 52px;
    font-size: 14px;
    line-height: 1.55;
}
.samart-cart-total-row strong,
.samart-cart-shipping-row strong,
.samart-cart-shipping-row ul#shipping_method li {
    font-size: 14px;
    line-height: 1.55;
}
.samart-cart-shipping-row > div {
    max-width: 72%;
}
.samart-cart-grand-total {
    min-height: 72px;
    font-size: 17px;
}
.samart-cart-grand-total strong {
    font-size: 25px;
}
.samart-cart-trust-note {
    font-size: 12px;
}

/* Checkout: balanced 50/50 columns on desktop. */
.samart-checkout-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.samart-checkout-review-title h2 {
    font-size: 20px;
}
.samart-checkout-review-title > span {
    font-size: 13px;
}
.samart-review-product-copy strong {
    font-size: 14px;
}
.samart-review-meta,
.samart-review-meta .variation {
    font-size: 11.5px;
}
.samart-review-product-total {
    font-size: 14px;
}
.samart-review-total-row,
.samart-review-shipping {
    min-height: 50px;
    font-size: 14px;
    line-height: 1.55;
}
.samart-review-total-row strong,
.samart-review-shipping > div,
.samart-review-shipping ul#shipping_method li {
    font-size: 14px;
    line-height: 1.55;
}
.samart-review-shipping > div {
    max-width: 72%;
}
.samart-review-grand-total {
    min-height: 70px;
    font-size: 17px;
}
.samart-review-grand-total strong {
    font-size: 25px;
}
.samart-payment-title h3 {
    font-size: 17px;
}
.samart-payment-title p {
    font-size: 12px;
}
.samart-checkout-payment ul.payment_methods > li > label {
    font-size: 14px !important;
}
.samart-checkout-payment .payment_box {
    font-size: 12.5px !important;
}
.samart-checkout-payment .woocommerce-privacy-policy-text,
.samart-checkout-payment .woocommerce-terms-and-conditions-wrapper {
    font-size: 12px;
}

/* Avoid theme/plugin overlays making checkout fragments appear permanently faded. */
.samart-checkout-review-order > .blockUI.blockOverlay,
.samart-checkout-review-sticky > .blockUI.blockOverlay {
    border-radius: 12px;
}

@media (max-width: 1180px) and (min-width: 981px) {
    .samart-cart-layout {
        grid-template-columns: minmax(0, 1fr) 380px;
    }
    .samart-checkout-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .samart-checkout-layout,
    .samart-cart-layout {
        grid-template-columns: 1fr;
    }
    .samart-cart-shipping-row > div,
    .samart-review-shipping > div {
        max-width: 76%;
    }
}

@media (max-width: 520px) {
    .samart-cart-total-row,
    .samart-cart-shipping-row,
    .samart-review-total-row,
    .samart-review-shipping {
        font-size: 13px;
    }
    .samart-cart-total-row strong,
    .samart-cart-shipping-row strong,
    .samart-review-total-row strong,
    .samart-review-shipping > div,
    .samart-cart-shipping-row ul#shipping_method li,
    .samart-review-shipping ul#shipping_method li {
        font-size: 13px;
    }
    .samart-cart-shipping-row > div,
    .samart-review-shipping > div {
        max-width: 68%;
    }
}

/* ============================================================
   v1.4.0 refinements
   ============================================================ */

/* Login / Register / Reset password: keep only one reliable eye toggle.
   WooCommerce/Woodmart can inject its own password reveal control, so hide
   that duplicate and let the Samart control own the interaction. */
.samart-account-ui-page .samart-password-wrap,
.samart-account-ui-page .samart-password-wrap .password-input {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.samart-account-ui-page .samart-password-wrap .show-password-input,
.samart-account-ui-page .samart-password-wrap .password-input > .show-password-input,
.samart-account-ui-page .samart-password-wrap .password-input::after {
    display: none !important;
}

.samart-account-ui-page .samart-password-wrap input[type="password"],
.samart-account-ui-page .samart-password-wrap input[type="text"] {
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 54px !important;
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle {
    right: 7px !important;
    top: 50% !important;
    z-index: 8 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle:hover,
.samart-account-ui-page .samart-password-wrap .samart-password-toggle.is-visible {
    background: #f0f5fb !important;
    color: var(--samart-accent) !important;
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle.is-visible::after {
    content: '';
    position: absolute;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-45deg);
}

/* Cleaner register CTA at the bottom of the login panel. */
.samart-account-ui-page .samart-register-callout {
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    border-color: #d3e2f7 !important;
    background: linear-gradient(135deg, #f7faff 0%, #eef5ff 100%) !important;
}

.samart-account-ui-page .samart-register-callout .samart-secondary-button,
.samart-account-ui-page .woocommerce .samart-register-callout .button.samart-secondary-button {
    min-width: 126px !important;
    min-height: 44px !important;
    padding: 9px 16px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--samart-primary), #0b5caf) !important;
    color: #fff !important;
    box-shadow: 0 7px 18px rgba(6, 47, 99, .14) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.samart-account-ui-page .samart-register-callout .samart-secondary-button:hover {
    background: linear-gradient(135deg, #052955, #084b8e) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.samart-account-ui-page .samart-register-callout .samart-secondary-button svg {
    width: 21px !important;
    height: 21px !important;
}

/* Checkout is intentionally Thai on every route. Remove styling/spacing from
   Woo's old coupon toggle because the custom coupon form is always visible. */
.samart-checkout-ui-page .woocommerce-form-coupon-toggle {
    display: none !important;
}

.samart-checkout-coupon-wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 34px auto 0;
}

.samart-checkout-coupon {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 20px;
    margin: 0 !important;
    padding: 16px 18px !important;
    border: 1px solid #dbe4ee !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 6px 22px rgba(15, 35, 65, .04) !important;
}

.samart-checkout-coupon-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.samart-checkout-coupon-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf4ff;
    color: var(--samart-accent);
}

.samart-checkout-coupon-icon svg {
    width: 23px;
    height: 23px;
}

.samart-checkout-coupon-copy strong,
.samart-checkout-coupon-copy span {
    display: block;
}

.samart-checkout-coupon-copy strong {
    margin-bottom: 2px;
    color: var(--samart-text);
    font-size: 14px;
    font-weight: 800;
}

.samart-checkout-coupon-copy span {
    color: var(--samart-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.samart-checkout-coupon-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.samart-checkout-ui-page .samart-checkout-coupon input.input-text {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 9px 13px !important;
    border: 1px solid #d3dce6 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--samart-text) !important;
    box-shadow: none !important;
    font-size: 13px !important;
}

.samart-checkout-ui-page .samart-checkout-coupon input.input-text:focus {
    border-color: var(--samart-accent) !important;
    box-shadow: 0 0 0 3px rgba(11, 108, 225, .09) !important;
    outline: 0 !important;
}

.samart-checkout-ui-page .samart-checkout-coupon .samart-apply-coupon {
    min-height: 44px !important;
    margin: 0 !important;
    padding: 9px 18px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--samart-primary) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

.samart-checkout-coupon-wrap + .samart-checkout-page {
    margin-top: 20px;
}

/* Make Billing details and Order summary start on exactly the same line and
   use the same border treatment, regardless of Woodmart/Woo theme margins. */
.samart-checkout-page .samart-checkout-layout {
    align-items: start !important;
}

.samart-checkout-page .samart-checkout-fields-column,
.samart-checkout-page .samart-checkout-review-column {
    margin: 0 !important;
    padding: 0 !important;
    align-self: start !important;
}

.samart-checkout-page .samart-checkout-fields-column > .samart-checkout-section:first-child,
.samart-checkout-page .woocommerce-billing-fields.samart-checkout-section,
.samart-checkout-page .samart-checkout-review-sticky {
    margin-top: 0 !important;
    border: 1px solid #dde5ed !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

.samart-checkout-page .woocommerce-billing-fields,
.samart-checkout-page .woocommerce-billing-fields__field-wrapper {
    margin-top: 0 !important;
}

/* Pay-for-order / failed-payment page. */
.samart-pay-page {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 64px;
    color: var(--samart-text);
}

.samart-pay-heading {
    align-items: center;
}

.samart-pay-heading .samart-pay-status {
    flex: 0 0 auto;
}

.samart-pay-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #ffd0d0;
    border-radius: 10px;
    background: #fff7f7;
}

.samart-pay-alert-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffe0e0;
    color: #d93434;
    font-size: 18px;
    font-weight: 900;
}

.samart-pay-alert strong {
    display: block;
    color: #9f2525;
    font-size: 14px;
    font-weight: 800;
}

.samart-pay-alert p {
    margin: 3px 0 0;
    color: #805b5b;
    font-size: 12px;
    line-height: 1.5;
}

.samart-pay-form {
    margin: 0 !important;
}

.samart-pay-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
    gap: 20px;
    align-items: start;
}

.samart-pay-order-card,
.samart-pay-payment-card {
    overflow: hidden;
    border: 1px solid #dde5ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 35, 65, .04);
}

.samart-pay-payment-card {
    position: sticky;
    top: 110px;
}

.samart-pay-card-head {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e8edf2;
}

.samart-pay-card-head h2 {
    margin: 0 !important;
    color: var(--samart-text) !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
}

.samart-pay-card-head p {
    margin: 3px 0 0;
    color: var(--samart-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.samart-pay-card-head > span:not(.samart-pay-lock) {
    flex: 0 0 auto;
    color: var(--samart-muted);
    font-size: 11px;
    font-weight: 700;
}

.samart-pay-lock {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eaf8ef;
    color: #12a94a;
}

.samart-pay-lock svg {
    width: 20px;
    height: 20px;
}

.samart-pay-products {
    padding: 0 18px;
}

.samart-pay-product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0f4;
}

.samart-pay-product-thumb {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e1e7ee;
    border-radius: 9px;
    background: #f8fafc;
}

.samart-pay-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.samart-pay-product-copy {
    min-width: 0;
}

.samart-pay-product-copy strong,
.samart-pay-product-copy > span {
    display: block;
}

.samart-pay-product-copy strong {
    color: var(--samart-text);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
}

.samart-pay-product-copy > span,
.samart-pay-product-copy .wc-item-meta {
    margin: 3px 0 0 !important;
    color: var(--samart-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.samart-pay-product-total {
    color: var(--samart-primary);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.samart-pay-totals {
    padding: 4px 18px 14px;
}

.samart-pay-total-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    border-bottom: 1px solid #edf0f4;
    color: #53657d;
    font-size: 13px;
}

.samart-pay-total-row strong {
    color: var(--samart-text);
    font-size: 13px;
    text-align: right;
}

.samart-pay-total-row.is-grand-total {
    min-height: 62px;
    border-bottom: 0;
    color: var(--samart-text);
    font-size: 16px;
    font-weight: 800;
}

.samart-pay-total-row.is-grand-total strong {
    color: var(--samart-primary);
    font-size: 22px;
}

.samart-order-pay-payment {
    margin: 0 !important;
    padding: 16px 18px 18px !important;
    border: 0 !important;
    background: #fff !important;
}

.samart-order-pay-payment ul.payment_methods {
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none !important;
}

.samart-order-pay-payment ul.payment_methods > li {
    margin: 0 0 8px !important;
    padding: 12px !important;
    border: 1px solid #dfe6ee !important;
    border-radius: 8px !important;
    background: #fbfcfe !important;
}

.samart-order-pay-payment ul.payment_methods > li > label {
    color: var(--samart-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.samart-order-pay-payment .payment_box {
    margin: 10px 0 0 !important;
    padding: 10px 12px !important;
    border-radius: 7px !important;
    background: #f2f6fb !important;
    color: #596b83 !important;
    font-size: 11.5px !important;
    line-height: 1.55 !important;
}

.samart-order-pay-payment .payment_box::before {
    display: none !important;
}

.samart-order-pay-payment .place-order {
    margin: 0 !important;
    padding: 0 !important;
}

.samart-order-pay-payment .samart-pay-submit,
.samart-order-pay-payment #place_order {
    width: 100% !important;
    min-height: 50px !important;
    margin: 12px 0 0 !important;
    padding: 12px 16px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, var(--samart-primary), #084c95) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

@media (max-width: 980px) {
    .samart-checkout-coupon {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .samart-checkout-coupon-fields {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .samart-pay-layout {
        grid-template-columns: 1fr;
    }

    .samart-pay-payment-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .samart-account-ui-page .samart-register-callout {
        grid-template-columns: 42px minmax(0, 1fr) !important;
    }

    .samart-account-ui-page .samart-register-callout .samart-secondary-button,
    .samart-account-ui-page .woocommerce .samart-register-callout .button.samart-secondary-button {
        grid-column: 1 / -1;
        width: 100% !important;
    }

    .samart-checkout-coupon-wrap {
        width: min(100% - 20px, 1320px);
        margin-top: 20px;
    }

    .samart-checkout-coupon {
        padding: 14px !important;
    }

    .samart-checkout-coupon-fields {
        grid-template-columns: 1fr;
    }

    .samart-checkout-ui-page .samart-checkout-coupon .samart-apply-coupon {
        width: 100% !important;
    }

    .samart-pay-page {
        width: min(100% - 20px, 1180px);
        margin-top: 24px;
    }

    .samart-pay-heading {
        align-items: flex-start;
    }

    .samart-pay-product {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 10px;
    }

    .samart-pay-product-thumb {
        width: 54px;
        height: 54px;
    }

    .samart-pay-product-total {
        grid-column: 2;
        justify-self: start;
    }
}


/* ==========================================================
   v1.5.0 — Pay for Order + compact Checkout Coupon refinements
   ========================================================== */

/* Woodmart applies receipt-like sizing/background decorations to #order_review
   on order-pay pages. Reset those rules so the custom layout can use the full
   content width and sit directly on the site background. */
body.samart-checkout-ui-page.woocommerce-order-pay #order_review.samart-pay-form,
body.samart-checkout-ui-page.woocommerce-order-pay form#order_review.samart-pay-form,
.samart-checkout-ui-page #order_review.samart-pay-form {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.samart-checkout-ui-page.woocommerce-order-pay #order_review.samart-pay-form::before,
body.samart-checkout-ui-page.woocommerce-order-pay #order_review.samart-pay-form::after,
.samart-checkout-ui-page #order_review.samart-pay-form::before,
.samart-checkout-ui-page #order_review.samart-pay-form::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* Some Woodmart versions decorate an outer order-pay wrapper instead. */
body.samart-checkout-ui-page.woocommerce-order-pay .woocommerce-order-pay,
body.samart-checkout-ui-page.woocommerce-order-pay .woocommerce-order-pay > form,
body.samart-checkout-ui-page.woocommerce-order-pay .samart-pay-page,
body.samart-checkout-ui-page.woocommerce-order-pay .samart-pay-layout {
    background: transparent !important;
    background-image: none !important;
}

body.samart-checkout-ui-page.woocommerce-order-pay .woocommerce-order-pay::before,
body.samart-checkout-ui-page.woocommerce-order-pay .woocommerce-order-pay::after,
body.samart-checkout-ui-page.woocommerce-order-pay .samart-pay-layout::before,
body.samart-checkout-ui-page.woocommerce-order-pay .samart-pay-layout::after {
    content: none !important;
    display: none !important;
}

/* Balanced desktop proportions for order details and payment choice. */
.samart-pay-page {
    width: min(1120px, calc(100% - 32px));
    margin: 30px auto 56px;
}

.samart-pay-layout {
    width: 100%;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
    gap: 18px;
}

.samart-pay-order-card,
.samart-pay-payment-card {
    min-width: 0;
}

.samart-pay-card-head {
    min-height: 70px;
    padding: 15px 17px;
}

.samart-pay-products {
    padding: 0 17px;
}

.samart-pay-product {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 0;
}

.samart-pay-product-thumb {
    width: 58px;
    height: 58px;
}

.samart-pay-totals {
    padding: 4px 17px 13px;
}

.samart-order-pay-payment {
    padding: 15px 17px 17px !important;
}

/* Compact checkout coupon. Keep it as a small utility card instead of a large
   section competing visually with Billing details / Order summary. */
.samart-checkout-coupon-wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 22px auto 0;
}

.samart-checkout-coupon {
    width: min(100%, 650px) !important;
    max-width: 650px !important;
    grid-template-columns: 175px minmax(0, 1fr) !important;
    gap: 12px !important;
    margin: 0 auto !important;
    padding: 11px 12px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(15, 35, 65, .035) !important;
}

.samart-checkout-coupon-copy {
    gap: 9px;
}

.samart-checkout-coupon-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.samart-checkout-coupon-icon svg {
    width: 18px;
    height: 18px;
}

.samart-checkout-coupon-copy strong {
    margin-bottom: 0;
    font-size: 12.5px;
    line-height: 1.35;
}

.samart-checkout-coupon-copy span {
    margin-top: 1px;
    font-size: 9.5px;
    line-height: 1.35;
}

.samart-checkout-coupon-fields {
    gap: 7px;
}

.samart-checkout-ui-page .samart-checkout-coupon input.input-text {
    min-height: 40px !important;
    height: 40px !important;
    padding: 8px 11px !important;
    font-size: 12px !important;
}

.samart-checkout-ui-page .samart-checkout-coupon .samart-apply-coupon {
    min-height: 40px !important;
    height: 40px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
}

.samart-checkout-coupon-wrap + .samart-checkout-page {
    margin-top: 16px;
}

@media (max-width: 980px) {
    .samart-pay-page {
        width: min(100% - 28px, 920px);
    }

    .samart-pay-layout {
        grid-template-columns: 1fr;
    }

    .samart-checkout-coupon {
        width: min(100%, 620px) !important;
        max-width: 620px !important;
        grid-template-columns: 160px minmax(0, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .samart-pay-page {
        width: min(100% - 20px, 1120px);
        margin-top: 22px;
    }

    .samart-checkout-coupon-wrap {
        width: min(100% - 20px, 650px);
        margin-top: 16px;
    }

    .samart-checkout-coupon {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        padding: 11px !important;
    }

    .samart-checkout-coupon-copy span {
        display: none;
    }

    .samart-checkout-coupon-fields {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .samart-checkout-ui-page .samart-checkout-coupon .samart-apply-coupon {
        width: auto !important;
        min-width: 88px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (max-width: 420px) {
    .samart-checkout-coupon-fields {
        grid-template-columns: 1fr;
    }

    .samart-checkout-ui-page .samart-checkout-coupon .samart-apply-coupon {
        width: 100% !important;
    }
}


/* ============================================================
   v1.5.2 login/register password visuals
   ============================================================ */
.samart-account-ui-page .samart-password-wrap .samart-password-toggle,
.samart-auth-card .samart-password-wrap .samart-password-toggle {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    color: #66758a !important;
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle__icon,
.samart-auth-card .samart-password-wrap .samart-password-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle__icon--hide,
.samart-auth-card .samart-password-wrap .samart-password-toggle__icon--hide {
    display: none;
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle.is-visible .samart-password-toggle__icon--show,
.samart-auth-card .samart-password-wrap .samart-password-toggle.is-visible .samart-password-toggle__icon--show {
    display: none;
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle.is-visible .samart-password-toggle__icon--hide,
.samart-auth-card .samart-password-wrap .samart-password-toggle.is-visible .samart-password-toggle__icon--hide {
    display: inline-flex;
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle svg,
.samart-auth-card .samart-password-wrap .samart-password-toggle svg {
    width: 23px !important;
    height: 23px !important;
    display: block !important;
    stroke: currentColor !important;
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle.is-visible::after,
.samart-auth-card .samart-password-wrap .samart-password-toggle.is-visible::after {
    display: none !important;
}

.samart-auth-card .woocommerce-password-strength,
.samart-auth-card .woocommerce-password-hint {
    margin: 10px 0 0 !important;
    border-radius: 12px !important;
}

.samart-auth-card .woocommerce-password-strength {
    padding: 12px 14px !important;
    border: 1px solid #e5ebf2 !important;
    background: #f8fafc !important;
    color: #304255 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 700 !important;
}

.samart-auth-card .woocommerce-password-strength.short,
.samart-auth-card .woocommerce-password-strength.bad {
    border-color: #f4c7c3 !important;
    background: #fff4f2 !important;
    color: #bb453b !important;
}

.samart-auth-card .woocommerce-password-strength.good {
    border-color: #f3ddb3 !important;
    background: #fff8ea !important;
    color: #a46d15 !important;
}

.samart-auth-card .woocommerce-password-strength.strong {
    border-color: #bfe3cd !important;
    background: #eefaf2 !important;
    color: #22824c !important;
}

.samart-auth-card .woocommerce-password-hint {
    display: block !important;
    padding: 14px 16px !important;
    border: 1px dashed #d5dfeb !important;
    background: #f7faff !important;
    color: #5c6c7f !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

.samart-auth-card .woocommerce-password-hint::before {
    content: 'Tip';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    margin-right: 10px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(11, 108, 225, .10);
    color: var(--samart-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    vertical-align: middle;
}

.samart-ui-th .samart-auth-card .woocommerce-password-hint::before {
    content: 'คำแนะนำ';
}

.samart-ui-en .samart-auth-card .woocommerce-password-hint::before {
    content: 'Tip';
}

.samart-auth-card .woocommerce-password-strength + .woocommerce-password-hint {
    margin-top: 8px !important;
}


/* ============================================================
   v1.5.4 login/register password eye + better register strength UI
   ============================================================ */
.samart-account-ui-page .samart-password-wrap .samart-password-toggle,
.samart-auth-card .samart-password-wrap .samart-password-toggle {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    z-index: 20 !important;
    width: 42px !important;
    height: 42px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
    color: #6b778c !important;
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle__icon,
.samart-auth-card .samart-password-wrap .samart-password-toggle__icon {
    opacity: 0 !important;
    pointer-events: none !important;
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle::before,
.samart-auth-card .samart-password-wrap .samart-password-toggle::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b778c' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle.is-visible::before,
.samart-auth-card .samart-password-wrap .samart-password-toggle.is-visible::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6ce1' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 10.6A2 2 0 0 0 12 14a2 2 0 0 0 1.4-.6'/%3E%3Cpath d='M9.9 5.1A10.9 10.9 0 0 1 12 5c6.5 0 10 7 10 7a18.8 18.8 0 0 1-3.1 3.9'/%3E%3Cpath d='M6.6 6.6A18.6 18.6 0 0 0 2 12s3.5 7 10 7a10.7 10.7 0 0 0 5.4-1.4'/%3E%3C/svg%3E");
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle:hover,
.samart-auth-card .samart-password-wrap .samart-password-toggle:hover,
.samart-account-ui-page .samart-password-wrap .samart-password-toggle.is-visible,
.samart-auth-card .samart-password-wrap .samart-password-toggle.is-visible {
    background: #eef5ff !important;
    color: #0b6ce1 !important;
}

.samart-auth-card .woocommerce-password-strength,
.samart-auth-card div.woocommerce-password-strength,
.samart-auth-card p.woocommerce-password-strength {
    display: block !important;
    margin: 12px 0 8px !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    border: 1px solid #e3eaf4 !important;
    background: #f8fbff !important;
    color: #20324b !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 24px rgba(11,108,225,.05) !important;
}

.samart-auth-card .woocommerce-password-strength.short,
.samart-auth-card .woocommerce-password-strength.bad {
    border-color: #f4cbc5 !important;
    background: linear-gradient(180deg, #fff7f5 0%, #fff2ef 100%) !important;
    color: #bd493d !important;
}

.samart-auth-card .woocommerce-password-strength.good {
    border-color: #f1dda9 !important;
    background: linear-gradient(180deg, #fffaf0 0%, #fff5de 100%) !important;
    color: #9b6a12 !important;
}

.samart-auth-card .woocommerce-password-strength.strong {
    border-color: #bfe3cc !important;
    background: linear-gradient(180deg, #f4fcf7 0%, #edf9f1 100%) !important;
    color: #1f834d !important;
}

.samart-auth-card .woocommerce-password-hint,
.samart-auth-card small.woocommerce-password-hint,
.samart-auth-card div.woocommerce-password-hint,
.samart-auth-card p.woocommerce-password-hint {
    display: block !important;
    margin: 0 !important;
    padding: 14px 16px 14px 48px !important;
    border-radius: 14px !important;
    border: 1px solid #dce7f5 !important;
    background: #f6faff !important;
    color: #53657c !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
    position: relative !important;
}

.samart-auth-card .woocommerce-password-hint::before {
    content: '' !important;
    position: absolute !important;
    left: 16px !important;
    top: 16px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(11,108,225,.12) 0%, rgba(11,108,225,.08) 100%) !important;
    box-shadow: inset 0 0 0 5px #0b6ce1 !important;
}

.samart-auth-card .woocommerce-password-strength + .woocommerce-password-hint {
    margin-top: 8px !important;
}

/* ============================================================
   v1.5.5 password toggle cleanup
   ============================================================ */
/* Remove the WooCommerce/Woodmart password reveal control completely.
   The Samart control is the only reveal button used in account auth forms. */
.samart-account-ui-page .samart-auth-card .show-password-input,
.samart-account-ui-page .samart-auth-card button.show-password-input,
.samart-account-ui-page .samart-auth-card .password-input > .show-password-input,
.samart-account-ui-page [data-samart-auth] .show-password-input,
.samart-auth-card .samart-password-wrap .show-password-input {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* Samart eye: icon only, never a filled/background button. */
.samart-account-ui-page .samart-password-wrap .samart-password-toggle,
.samart-auth-card .samart-password-wrap .samart-password-toggle,
.samart-account-ui-page .samart-password-wrap .samart-password-toggle:hover,
.samart-auth-card .samart-password-wrap .samart-password-toggle:hover,
.samart-account-ui-page .samart-password-wrap .samart-password-toggle:focus,
.samart-auth-card .samart-password-wrap .samart-password-toggle:focus,
.samart-account-ui-page .samart-password-wrap .samart-password-toggle:active,
.samart-auth-card .samart-password-wrap .samart-password-toggle:active,
.samart-account-ui-page .samart-password-wrap .samart-password-toggle.is-visible,
.samart-auth-card .samart-password-wrap .samart-password-toggle.is-visible {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.samart-account-ui-page .samart-password-wrap .samart-password-toggle:hover,
.samart-auth-card .samart-password-wrap .samart-password-toggle:hover,
.samart-account-ui-page .samart-password-wrap .samart-password-toggle:focus-visible,
.samart-auth-card .samart-password-wrap .samart-password-toggle:focus-visible,
.samart-account-ui-page .samart-password-wrap .samart-password-toggle.is-visible,
.samart-auth-card .samart-password-wrap .samart-password-toggle.is-visible {
    color: #0b6ce1 !important;
}

/* Password recommendation: text-only card, no decorative icon/dot. */
.samart-auth-card .woocommerce-password-hint,
.samart-auth-card small.woocommerce-password-hint,
.samart-auth-card div.woocommerce-password-hint,
.samart-auth-card p.woocommerce-password-hint {
    padding: 14px 16px !important;
}

.samart-auth-card .woocommerce-password-hint::before,
.samart-auth-card small.woocommerce-password-hint::before,
.samart-auth-card div.woocommerce-password-hint::before,
.samart-auth-card p.woocommerce-password-hint::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
}


/* ============================================================
   v1.5.6 - keep Register password eye inside the input row
   ============================================================ */
.samart-auth-card .samart-password-wrap > .password-input,
.samart-account-ui-page .samart-password-wrap > .password-input {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.samart-auth-card .samart-password-wrap > .password-input > .samart-password-toggle,
.samart-account-ui-page .samart-password-wrap > .password-input > .samart-password-toggle {
    top: 50% !important;
    right: 7px !important;
    transform: translateY(-50%) !important;
    z-index: 12 !important;
}

/* ============================================================
   v1.5.8 - keep Samart custom eye only
   ============================================================ */
/* WooCommerce / Woodmart password reveal controls must never appear beside
   the Samart custom reveal button. */
.samart-account-ui-page .samart-auth-card .show-password-input,
.samart-account-ui-page [data-samart-auth] .show-password-input,
.samart-auth-card .samart-password-wrap .show-password-input,
.samart-account-ui-page .samart-auth-card .password-input > button:not(.samart-password-toggle),
.samart-account-ui-page [data-samart-auth] .password-input > button:not(.samart-password-toggle) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* Hide browser-native reveal/clear affordances where supported (notably Edge),
   so the field has exactly one password eye: the Samart custom button. */
.samart-auth-card .samart-password-wrap input::-ms-reveal,
.samart-auth-card .samart-password-wrap input::-ms-clear,
.samart-account-ui-page .samart-password-wrap input::-ms-reveal,
.samart-account-ui-page .samart-password-wrap input::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Keep the custom eye visible, icon-only, and anchored inside the field. */
.samart-account-ui-page .samart-password-wrap .samart-password-toggle,
.samart-auth-card .samart-password-wrap .samart-password-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 40 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ============================================================
   v1.5.9 - Empty-order shop button hover contrast
   ============================================================ */
.samart-account-ui-page .samart-empty-orders .samart-secondary-button:hover,
.samart-account-ui-page .samart-empty-endpoint .samart-secondary-button:hover,
.samart-account-ui-page .samart-empty-orders .samart-secondary-button:focus,
.samart-account-ui-page .samart-empty-endpoint .samart-secondary-button:focus {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* ============================================================
 * v1.6.0 — Thank-you / order received redesign
 * ============================================================ */
body.woocommerce-order-received .samart-thankyou-page {
    width: min(1120px, calc(100% - 36px));
    margin: 42px auto 72px;
    text-align: left;
}

body.woocommerce-order-received .samart-thankyou-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 46px 38px;
    border: 1px solid #dce5ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(15, 35, 65, .065);
    text-align: center;
}

body.woocommerce-order-received .samart-thankyou-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--samart-primary), var(--samart-accent));
}

body.woocommerce-order-received .samart-thankyou-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 10px;
    border: 0;
    box-shadow: 0 0 0 10px rgba(22, 163, 74, .055);
}

body.woocommerce-order-received .samart-thankyou-icon.is-failed-icon {
    background: #fff1f1;
    color: #dc3b3b;
    box-shadow: 0 0 0 10px rgba(220, 59, 59, .055);
}

body.woocommerce-order-received .samart-thankyou-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin: 8px auto 8px;
    padding: 4px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

body.woocommerce-order-received .samart-thankyou-state.is-success {
    border-color: #b7ebc5;
    background: #eefbf2;
    color: #16863d;
}

body.woocommerce-order-received .samart-thankyou-state.is-failed {
    border-color: #ffc8c8;
    background: #fff3f3;
    color: #c93434;
}

body.woocommerce-order-received .samart-thankyou-hero h1 {
    margin: 4px 0 7px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    letter-spacing: -.02em;
}

body.woocommerce-order-received .samart-thankyou-hero > p {
    max-width: 700px;
    margin: 0 auto 26px;
    font-size: 14px;
    line-height: 1.75;
}

body.woocommerce-order-received .samart-thankyou-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 22px;
}

body.woocommerce-order-received .samart-thankyou-summary-item {
    min-height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 16px;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
    background: #f8fbff;
    text-align: left;
}

body.woocommerce-order-received .samart-thankyou-summary-item span {
    margin: 0 0 6px;
    font-size: 11px;
}

body.woocommerce-order-received .samart-thankyou-summary-item strong {
    font-size: 13px;
    line-height: 1.45;
}

body.woocommerce-order-received .samart-thankyou-summary-item.is-total {
    border-color: #cfe0f5;
    background: #f2f7ff;
}

body.woocommerce-order-received .samart-thankyou-summary-item.is-total strong {
    color: var(--samart-primary);
    font-size: 17px;
}

body.woocommerce-order-received .samart-thankyou-actions {
    gap: 10px;
}

body.woocommerce-order-received .samart-thankyou-primary,
body.woocommerce-order-received .samart-thankyou-secondary {
    min-height: 46px;
    padding: 11px 21px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
}

body.woocommerce-order-received .samart-thankyou-secondary:hover,
body.woocommerce-order-received .samart-thankyou-secondary:focus {
    border-color: var(--samart-primary) !important;
    background: #f6f9fd !important;
    color: var(--samart-primary) !important;
}

/* Content inserted by WooCommerce/payment gateways below the success card. */
body.woocommerce-order-received .samart-thankyou-content {
    display: grid;
    gap: 20px;
    margin-top: 22px;
}

body.woocommerce-order-received .samart-thankyou-content > p,
body.woocommerce-order-received .samart-thankyou-content > section,
body.woocommerce-order-received .samart-thankyou-content > div,
body.woocommerce-order-received .samart-thankyou-content .woocommerce-order-details,
body.woocommerce-order-received .samart-thankyou-content .woocommerce-customer-details {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* BACS / bank transfer block. */
body.woocommerce-order-received .samart-thankyou-content .woocommerce-bacs-bank-details {
    padding: 26px 28px !important;
    border: 1px solid #dce5ee !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 28px rgba(15, 35, 65, .045);
}

body.woocommerce-order-received .samart-thankyou-content .wc-bacs-bank-details-heading,
body.woocommerce-order-received .samart-thankyou-content .woocommerce-order-details__title,
body.woocommerce-order-received .samart-thankyou-content .woocommerce-column__title {
    margin: 0 0 16px !important;
    color: var(--samart-text) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

body.woocommerce-order-received .samart-thankyou-content .wc-bacs-bank-details-account-name {
    margin: 2px 0 14px !important;
    color: var(--samart-muted) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body.woocommerce-order-received .samart-thankyou-content .wc-bacs-bank-details,
body.woocommerce-order-received .samart-thankyou-content ul.order_details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.woocommerce-order-received .samart-thankyou-content .wc-bacs-bank-details li,
body.woocommerce-order-received .samart-thankyou-content ul.order_details li {
    min-width: 0;
    margin: 0 !important;
    padding: 14px 15px !important;
    border: 1px solid #e4eaf1 !important;
    border-radius: 10px !important;
    background: #f9fbfd !important;
    color: var(--samart-muted) !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
    text-transform: none !important;
}

body.woocommerce-order-received .samart-thankyou-content .wc-bacs-bank-details li strong,
body.woocommerce-order-received .samart-thankyou-content ul.order_details li strong {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: var(--samart-text) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
}

/* Standard order-details table. */
body.woocommerce-order-received .samart-thankyou-content .woocommerce-order-details {
    padding: 26px 28px 24px !important;
    border: 1px solid #dce5ee !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 28px rgba(15, 35, 65, .045);
}

body.woocommerce-order-received .samart-thankyou-content table.woocommerce-table--order-details {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #e0e7ef !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    background: #fff !important;
}

body.woocommerce-order-received .samart-thankyou-content table.woocommerce-table--order-details th,
body.woocommerce-order-received .samart-thankyou-content table.woocommerce-table--order-details td {
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid #e8edf3 !important;
    color: var(--samart-text) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
}

body.woocommerce-order-received .samart-thankyou-content table.woocommerce-table--order-details thead th {
    background: #f5f8fb !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.woocommerce-order-received .samart-thankyou-content table.woocommerce-table--order-details tr:last-child th,
body.woocommerce-order-received .samart-thankyou-content table.woocommerce-table--order-details tr:last-child td {
    border-bottom: 0 !important;
}

body.woocommerce-order-received .samart-thankyou-content table.woocommerce-table--order-details td:last-child,
body.woocommerce-order-received .samart-thankyou-content table.woocommerce-table--order-details th:last-child {
    text-align: right !important;
}

body.woocommerce-order-received .samart-thankyou-content table.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-order-received .samart-thankyou-content table.woocommerce-table--order-details tfoot tr:last-child td {
    background: #f5f9ff !important;
    color: var(--samart-primary) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

/* Billing / shipping addresses. */
body.woocommerce-order-received .samart-thankyou-content .woocommerce-customer-details {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.woocommerce-order-received .samart-thankyou-content .woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px !important;
    margin: 0 !important;
}

body.woocommerce-order-received .samart-thankyou-content .woocommerce-column--billing-address,
body.woocommerce-order-received .samart-thankyou-content .woocommerce-column--shipping-address {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 24px 26px !important;
    border: 1px solid #dce5ee !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 28px rgba(15, 35, 65, .04);
}

body.woocommerce-order-received .samart-thankyou-content address {
    margin: 0 !important;
    color: #32475f !important;
    font-size: 13px !important;
    font-style: normal !important;
    line-height: 1.75 !important;
}

body.woocommerce-order-received .samart-thankyou-content .woocommerce-customer-details--phone,
body.woocommerce-order-received .samart-thankyou-content .woocommerce-customer-details--email {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    color: #32475f !important;
    font-size: 13px !important;
}

@media (max-width: 980px) {
    body.woocommerce-order-received .samart-thankyou-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.woocommerce-order-received .samart-thankyou-summary-item.is-total {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    body.woocommerce-order-received .samart-thankyou-page {
        width: min(100% - 24px, 1120px);
        margin-top: 24px;
        margin-bottom: 46px;
    }

    body.woocommerce-order-received .samart-thankyou-hero {
        padding: 32px 20px 26px;
        border-radius: 14px;
    }

    body.woocommerce-order-received .samart-thankyou-summary {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 22px;
    }

    body.woocommerce-order-received .samart-thankyou-summary-item,
    body.woocommerce-order-received .samart-thankyou-summary-item.is-total {
        min-height: 0;
        grid-column: auto;
        padding: 13px 14px;
    }

    body.woocommerce-order-received .samart-thankyou-actions {
        flex-direction: column;
    }

    body.woocommerce-order-received .samart-thankyou-actions .button {
        width: 100%;
    }

    body.woocommerce-order-received .samart-thankyou-content .woocommerce-bacs-bank-details,
    body.woocommerce-order-received .samart-thankyou-content .woocommerce-order-details {
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }

    body.woocommerce-order-received .samart-thankyou-content .wc-bacs-bank-details,
    body.woocommerce-order-received .samart-thankyou-content ul.order_details,
    body.woocommerce-order-received .samart-thankyou-content .woocommerce-columns--addresses {
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-order-received .samart-thankyou-content .woocommerce-column--billing-address,
    body.woocommerce-order-received .samart-thankyou-content .woocommerce-column--shipping-address {
        padding: 20px 18px !important;
        border-radius: 14px !important;
    }

    body.woocommerce-order-received .samart-thankyou-content table.woocommerce-table--order-details th,
    body.woocommerce-order-received .samart-thankyou-content table.woocommerce-table--order-details td {
        padding: 12px 11px !important;
        font-size: 12px !important;
    }
}

/* ============================================================
 * v1.6.1 — Thank-you page: balanced layout + custom order cards
 * ============================================================ */
body.woocommerce-order-received .samart-thankyou-page {
    width: min(1180px, calc(100% - 40px));
    margin: 38px auto 68px;
}

body.woocommerce-order-received .samart-thankyou-hero {
    padding: 30px 32px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(15, 35, 65, .055);
    text-align: left;
}

body.woocommerce-order-received .samart-thankyou-hero::before {
    height: 3px;
}

body.woocommerce-order-received .samart-thankyou-hero__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
    align-items: center;
}

body.woocommerce-order-received .samart-thankyou-hero__copy {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

body.woocommerce-order-received .samart-thankyou-hero__status-icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf9ef;
    color: #18a34a;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 0 0 8px rgba(24, 163, 74, .055);
}

body.woocommerce-order-received .samart-thankyou-hero__status-icon svg {
    width: 27px;
    height: 27px;
}

body.woocommerce-order-received .samart-thankyou-hero__status-icon.is-failed {
    margin: 0 auto 14px;
    background: #fff0f0;
    color: #d43c3c;
    box-shadow: 0 0 0 8px rgba(212, 60, 60, .055);
}

body.woocommerce-order-received .samart-thankyou-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--samart-accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

body.woocommerce-order-received .samart-thankyou-hero h1 {
    margin: 0 0 5px;
    color: var(--samart-text);
    font-size: clamp(27px, 2.6vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}

body.woocommerce-order-received .samart-thankyou-hero__copy p,
body.woocommerce-order-received .samart-thankyou-hero > p {
    max-width: 650px;
    margin: 0;
    color: var(--samart-muted);
    font-size: 13px;
    line-height: 1.65;
}

body.woocommerce-order-received .samart-thankyou-total-card {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 22px;
    border: 1px solid #d8e4f2;
    border-radius: 13px;
    background: linear-gradient(145deg, #f8fbff 0%, #eef5ff 100%);
}

body.woocommerce-order-received .samart-thankyou-total-card > span:first-child {
    margin-bottom: 4px;
    color: var(--samart-muted);
    font-size: 11px;
    font-weight: 700;
}

body.woocommerce-order-received .samart-thankyou-total-card > strong {
    margin-bottom: 11px;
    color: var(--samart-primary);
    font-size: 24px;
    font-weight: 850;
    line-height: 1.2;
}

body.woocommerce-order-received .samart-thankyou-total-card .samart-status-badge {
    margin: 0;
}

body.woocommerce-order-received .samart-thankyou-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 20px;
}

body.woocommerce-order-received .samart-thankyou-summary-item {
    min-height: 74px;
    padding: 13px 15px;
    border: 1px solid #e2e8ef;
    border-radius: 10px;
    background: #fafcff;
}

body.woocommerce-order-received .samart-thankyou-summary-item span {
    margin-bottom: 5px;
    color: var(--samart-muted);
    font-size: 10.5px;
    font-weight: 650;
}

body.woocommerce-order-received .samart-thankyou-summary-item strong {
    color: var(--samart-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

body.woocommerce-order-received .samart-thankyou-actions {
    justify-content: flex-start;
    gap: 10px;
}

body.woocommerce-order-received .samart-thankyou-primary,
body.woocommerce-order-received .samart-thankyou-secondary {
    min-height: 44px;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
}

body.woocommerce-order-received .samart-thankyou-content {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

body.woocommerce-order-received .samart-thankyou-gateway:empty,
body.woocommerce-order-received .samart-thankyou-extras:empty {
    display: none;
}

/* Gateway instructions / bank transfer. */
body.woocommerce-order-received .samart-thankyou-gateway > * {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.woocommerce-order-received .samart-thankyou-gateway .woocommerce-bacs-bank-details {
    position: relative;
    padding: 24px 26px !important;
    border: 1px solid #dbe4ee !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 7px 24px rgba(15, 35, 65, .04);
}

body.woocommerce-order-received .samart-thankyou-gateway .wc-bacs-bank-details-heading {
    margin: 0 0 4px !important;
    color: var(--samart-text) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

body.woocommerce-order-received .samart-thankyou-gateway .wc-bacs-bank-details-account-name {
    margin: 0 0 15px !important;
    color: var(--samart-muted) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}

body.woocommerce-order-received .samart-thankyou-gateway .wc-bacs-bank-details,
body.woocommerce-order-received .samart-thankyou-gateway ul.order_details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.woocommerce-order-received .samart-thankyou-gateway .wc-bacs-bank-details li,
body.woocommerce-order-received .samart-thankyou-gateway ul.order_details li {
    min-width: 0;
    margin: 0 !important;
    padding: 13px 14px !important;
    border: 1px solid #e4eaf1 !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    color: var(--samart-muted) !important;
    font-size: 10.5px !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

body.woocommerce-order-received .samart-thankyou-gateway .wc-bacs-bank-details li strong,
body.woocommerce-order-received .samart-thankyou-gateway ul.order_details li strong {
    display: block;
    margin-top: 4px;
    color: var(--samart-text) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    overflow-wrap: anywhere;
}

/* Product detail + order total balance. */
body.woocommerce-order-received .samart-thankyou-order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
    gap: 18px;
    align-items: start;
}

body.woocommerce-order-received .samart-thankyou-section {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(15, 35, 65, .04);
}

body.woocommerce-order-received .samart-thankyou-section__head {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    border-bottom: 1px solid #e7ecf2;
}

body.woocommerce-order-received .samart-thankyou-section__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--samart-accent);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
}

body.woocommerce-order-received .samart-thankyou-section h2,
body.woocommerce-order-received .samart-thankyou-address-card h2 {
    margin: 0;
    color: var(--samart-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

body.woocommerce-order-received .samart-thankyou-section__count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid #dce5ef;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--samart-muted);
    font-size: 10.5px;
    font-weight: 750;
}

body.woocommerce-order-received .samart-thankyou-product-list {
    padding: 0 20px;
}

body.woocommerce-order-received .samart-thankyou-product-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #edf1f5;
}

body.woocommerce-order-received .samart-thankyou-product-row:last-child {
    border-bottom: 0;
}

body.woocommerce-order-received .samart-thankyou-product-image {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e2e8ef;
    border-radius: 10px;
    background: #fbfcfe;
}

body.woocommerce-order-received .samart-thankyou-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 6px;
}

body.woocommerce-order-received .samart-thankyou-product-info {
    min-width: 0;
}

body.woocommerce-order-received .samart-thankyou-product-name {
    display: block;
    margin-bottom: 4px;
    color: var(--samart-text) !important;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.45;
    text-decoration: none !important;
}

body.woocommerce-order-received .samart-thankyou-product-name:hover {
    color: var(--samart-accent) !important;
}

body.woocommerce-order-received .samart-thankyou-product-qty,
body.woocommerce-order-received .samart-thankyou-product-info .wc-item-meta,
body.woocommerce-order-received .samart-thankyou-product-info .wc-item-meta * {
    color: var(--samart-muted) !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
}

body.woocommerce-order-received .samart-thankyou-product-info .wc-item-meta {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.woocommerce-order-received .samart-thankyou-product-price {
    padding-left: 12px;
    color: var(--samart-text);
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
}

body.woocommerce-order-received .samart-thankyou-totals .samart-thankyou-section__head {
    min-height: 74px;
}

body.woocommerce-order-received .samart-thankyou-total-list {
    padding: 6px 20px 14px;
}

body.woocommerce-order-received .samart-thankyou-total-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f5;
}

body.woocommerce-order-received .samart-thankyou-total-row:last-child {
    border-bottom: 0;
}

body.woocommerce-order-received .samart-thankyou-total-row span {
    color: var(--samart-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

body.woocommerce-order-received .samart-thankyou-total-row strong {
    color: var(--samart-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    text-align: right;
}

body.woocommerce-order-received .samart-thankyou-total-row.is-grand-total {
    margin-top: 2px;
    padding: 16px 0 7px;
}

body.woocommerce-order-received .samart-thankyou-total-row.is-grand-total span {
    color: var(--samart-text);
    font-size: 14px;
    font-weight: 800;
}

body.woocommerce-order-received .samart-thankyou-total-row.is-grand-total strong {
    color: var(--samart-primary);
    font-size: 20px;
    font-weight: 850;
}

/* Billing / shipping — equal cards. */
body.woocommerce-order-received .samart-thankyou-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body.woocommerce-order-received .samart-thankyou-address-card {
    min-width: 0;
    min-height: 238px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px 22px 21px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(15, 35, 65, .04);
}

body.woocommerce-order-received .samart-thankyou-address-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf4ff;
    color: var(--samart-accent);
}

body.woocommerce-order-received .samart-thankyou-address-icon.is-shipping {
    background: #ebf9ef;
    color: #17a34a;
}

body.woocommerce-order-received .samart-thankyou-address-icon svg {
    width: 21px;
    height: 21px;
}

body.woocommerce-order-received .samart-thankyou-address-copy {
    min-width: 0;
    flex: 1 1 auto;
}

body.woocommerce-order-received .samart-thankyou-address-card address {
    margin: 14px 0 0 !important;
    color: #33475d !important;
    font-size: 12.5px !important;
    font-style: normal !important;
    line-height: 1.72 !important;
}

body.woocommerce-order-received .samart-thankyou-contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0 !important;
    color: #435a73;
    font-size: 11.5px;
    line-height: 1.5;
}

body.woocommerce-order-received .samart-thankyou-contact-line svg {
    width: 15px;
    height: 15px;
    color: var(--samart-accent);
}

/* Third-party additions should not bring the old Woo order layout back. */
body.woocommerce-order-received .samart-thankyou-extras .woocommerce-order-details,
body.woocommerce-order-received .samart-thankyou-extras .woocommerce-customer-details,
body.woocommerce-order-received .samart-thankyou-extras ul.woocommerce-order-overview {
    display: none !important;
}

body.woocommerce-order-received .samart-thankyou-extras > * {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

@media (max-width: 1024px) {
    body.woocommerce-order-received .samart-thankyou-hero__top {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 20px;
    }

    body.woocommerce-order-received .samart-thankyou-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.woocommerce-order-received .samart-thankyou-order-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr);
    }
}

@media (max-width: 820px) {
    body.woocommerce-order-received .samart-thankyou-page {
        width: min(100% - 28px, 1180px);
        margin-top: 28px;
        margin-bottom: 52px;
    }

    body.woocommerce-order-received .samart-thankyou-hero__top,
    body.woocommerce-order-received .samart-thankyou-order-grid,
    body.woocommerce-order-received .samart-thankyou-address-grid {
        grid-template-columns: 1fr;
    }

    body.woocommerce-order-received .samart-thankyou-total-card {
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 4px 18px;
        align-items: center;
    }

    body.woocommerce-order-received .samart-thankyou-total-card .samart-status-badge {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 6px;
    }

    body.woocommerce-order-received .samart-thankyou-address-card {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    body.woocommerce-order-received .samart-thankyou-page {
        width: min(100% - 20px, 1180px);
        margin-top: 20px;
        margin-bottom: 42px;
    }

    body.woocommerce-order-received .samart-thankyou-hero {
        padding: 25px 18px 22px;
        border-radius: 13px;
    }

    body.woocommerce-order-received .samart-thankyou-hero__copy {
        align-items: flex-start;
        gap: 13px;
    }

    body.woocommerce-order-received .samart-thankyou-hero__status-icon {
        width: 48px;
        height: 48px;
        font-size: 23px;
        box-shadow: 0 0 0 6px rgba(24, 163, 74, .05);
    }

    body.woocommerce-order-received .samart-thankyou-hero h1 {
        font-size: 25px;
    }

    body.woocommerce-order-received .samart-thankyou-summary {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 20px;
    }

    body.woocommerce-order-received .samart-thankyou-summary-item {
        min-height: 0;
        padding: 12px 13px;
    }

    body.woocommerce-order-received .samart-thankyou-actions {
        flex-direction: column;
    }

    body.woocommerce-order-received .samart-thankyou-actions .button {
        width: 100%;
    }

    body.woocommerce-order-received .samart-thankyou-total-card {
        grid-template-columns: 1fr;
        padding: 17px 18px;
    }

    body.woocommerce-order-received .samart-thankyou-total-card > strong {
        margin-bottom: 6px;
        font-size: 22px;
    }

    body.woocommerce-order-received .samart-thankyou-gateway .woocommerce-bacs-bank-details,
    body.woocommerce-order-received .samart-thankyou-section,
    body.woocommerce-order-received .samart-thankyou-address-card {
        border-radius: 12px !important;
    }

    body.woocommerce-order-received .samart-thankyou-gateway .woocommerce-bacs-bank-details {
        padding: 20px 16px !important;
    }

    body.woocommerce-order-received .samart-thankyou-gateway .wc-bacs-bank-details,
    body.woocommerce-order-received .samart-thankyou-gateway ul.order_details {
        grid-template-columns: 1fr;
    }

    body.woocommerce-order-received .samart-thankyou-section__head {
        min-height: 68px;
        padding: 15px 16px;
    }

    body.woocommerce-order-received .samart-thankyou-product-list {
        padding: 0 16px;
    }

    body.woocommerce-order-received .samart-thankyou-product-row {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 11px;
        padding: 14px 0;
    }

    body.woocommerce-order-received .samart-thankyou-product-image {
        width: 54px;
        height: 54px;
    }

    body.woocommerce-order-received .samart-thankyou-product-price {
        grid-column: 2;
        padding-left: 0;
        font-size: 13px;
    }

    body.woocommerce-order-received .samart-thankyou-total-list {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.woocommerce-order-received .samart-thankyou-address-card {
        gap: 12px;
        padding: 18px 16px;
    }

    body.woocommerce-order-received .samart-thankyou-address-icon {
        width: 38px;
        height: 38px;
    }
}

/* ============================================================
   v1.6.3 - My Account > Account details / Change password
   ============================================================ */
.samart-edit-account-page {
    width: 100%;
}

.samart-edit-account-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 22px;
    padding: 0 2px;
}

.samart-edit-account-kicker {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--samart-accent);
    font-size: 12px;
    font-weight: 800;
}

.samart-edit-account-heading h2,
.samart-account-section-title h3,
.samart-password-change-head h3 {
    margin: 0;
    color: var(--samart-primary);
}

.samart-edit-account-heading h2 {
    font-size: 26px;
    line-height: 1.25;
}

.samart-edit-account-heading p,
.samart-account-section-title p,
.samart-password-change-head p {
    margin: 5px 0 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.65;
}

.samart-edit-account-heading-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #edf5ff;
    color: var(--samart-accent);
}

.samart-edit-account-heading-icon svg {
    width: 23px;
    height: 23px;
}

.samart-edit-account-form {
    margin: 0 !important;
}

.samart-account-profile-section {
    padding: 22px;
    border: 1px solid #dfe7f0;
    border-radius: 14px;
    background: #fff;
}

.samart-account-section-title {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf1f5;
}

.samart-account-section-title h3 {
    font-size: 17px;
}

.samart-account-form-grid--two,
.samart-password-new-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.samart-edit-account-form .form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
}

.samart-edit-account-form label {
    display: block;
    margin: 0 0 7px;
    color: #183253;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.samart-edit-account-form .required {
    color: #ef4444;
}

.samart-account-content-card .samart-edit-account-form input[type="text"],
.samart-account-content-card .samart-edit-account-form input[type="email"],
.samart-account-content-card .samart-edit-account-form input[type="password"] {
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid #d5dee8 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #102c50 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.samart-account-content-card .samart-edit-account-form input:focus {
    border-color: #72aef1 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(11, 108, 225, .08) !important;
    outline: 0 !important;
}

.samart-form-help {
    display: block;
    margin-top: 6px;
    color: #77869a;
    font-size: 11.5px;
    font-style: normal;
    line-height: 1.5;
}

.samart-password-change-card {
    position: relative;
    min-width: 0;
    margin: 22px 0 0 !important;
    padding: 22px !important;
    border: 1px solid #d8e4f1 !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%) !important;
    box-shadow: none !important;
}

.samart-password-change-card > legend.screen-reader-text {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.samart-password-change-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e2ebf4;
}

.samart-password-change-head h3 {
    font-size: 18px;
}

.samart-password-change-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #e7f1ff;
    color: var(--samart-accent);
}

.samart-password-change-icon svg {
    width: 22px;
    height: 22px;
}

.samart-password-security-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid #cfe9da;
    border-radius: 999px;
    background: #f0fbf5;
    color: #24834e;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.samart-password-security-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22b864;
    box-shadow: 0 0 0 4px rgba(34, 184, 100, .10);
}

.samart-password-current-row {
    margin-bottom: 4px;
}

.samart-password-new-grid {
    gap: 16px;
}

.samart-account-password-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.samart-account-content-card .samart-account-password-wrap input[type="password"],
.samart-account-content-card .samart-account-password-wrap input[type="text"] {
    padding-right: 52px !important;
}

/* Hide WooCommerce/Woodmart reveal buttons in this custom password section.
   The Samart custom eye is the only visible password control. */
.samart-account-password-wrap .show-password-input,
.samart-account-password-wrap button.show-password-input,
.samart-account-password-wrap .password-input > .show-password-input,
.samart-account-password-wrap input::-ms-reveal,
.samart-account-password-wrap input::-ms-clear {
    display: none !important;
}

.samart-account-password-wrap .samart-password-toggle,
.samart-account-password-wrap .samart-password-toggle:hover,
.samart-account-password-wrap .samart-password-toggle:focus,
.samart-account-password-wrap .samart-password-toggle:active,
.samart-account-password-wrap .samart-password-toggle.is-visible {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    z-index: 3 !important;
    display: inline-flex !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #718096 !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
}

.samart-account-password-wrap .samart-password-toggle:hover,
.samart-account-password-wrap .samart-password-toggle:focus-visible,
.samart-account-password-wrap .samart-password-toggle.is-visible {
    color: var(--samart-accent) !important;
}

.samart-account-password-wrap .samart-password-toggle svg {
    width: 20px !important;
    height: 20px !important;
}

.samart-account-password-wrap .samart-password-toggle__icon {
    display: inline-flex;
}

.samart-account-password-wrap .samart-password-toggle__icon--hide {
    display: none;
}

.samart-account-password-wrap .samart-password-toggle.is-visible .samart-password-toggle__icon--show {
    display: none;
}

.samart-account-password-wrap .samart-password-toggle.is-visible .samart-password-toggle__icon--hide {
    display: inline-flex;
}

.samart-password-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
    padding: 12px 14px;
    border: 1px solid #d9e8fa;
    border-radius: 10px;
    background: #fff;
    color: #5e7087;
}

.samart-password-tip-icon {
    display: grid !important;
    place-items: center !important;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-self: center;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: #e8f7ef;
    color: #1c9a58;
    line-height: 0 !important;
    text-align: center;
    overflow: hidden;
}

.samart-password-tip-icon svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

.samart-password-tip > div {
    min-width: 0;
    flex: 1 1 auto;
}

.samart-password-tip strong,
.samart-password-tip div > span {
    display: block;
}

.samart-password-tip strong {
    margin-bottom: 2px;
    color: #294563;
    font-size: 12px;
    line-height: 1.45;
}

.samart-password-tip div > span {
    font-size: 11.5px;
    line-height: 1.55;
}

.samart-password-change-card .woocommerce-password-strength,
.samart-password-change-card .woocommerce-password-hint {
    margin-top: 7px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
}

.samart-edit-account-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 18px;
}

.samart-account-content-card .samart-save-account-button {
    min-height: 46px !important;
    padding: 10px 22px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

@media (max-width: 900px) {
    .samart-account-form-grid--two,
    .samart-password-new-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .samart-password-change-head {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .samart-password-security-badge {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 2px;
    }
}

@media (max-width: 600px) {
    .samart-edit-account-heading {
        align-items: center;
    }

    .samart-edit-account-heading h2 {
        font-size: 22px;
    }

    .samart-edit-account-heading-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .samart-account-profile-section,
    .samart-password-change-card {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .samart-password-change-head {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 11px;
    }

    .samart-password-change-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .samart-password-change-head h3 {
        font-size: 16px;
    }

    .samart-password-change-head p {
        font-size: 11.5px;
    }

    .samart-password-tip {
        padding: 11px 12px;
    }

    .samart-edit-account-actions,
    .samart-account-content-card .samart-save-account-button {
        width: 100%;
    }
}

/* ============================================================
   Checkout guest login / register refresh
   ============================================================ */
.samart-checkout-auth-wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto 20px;
}

.samart-checkout-auth-card {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(360px, 1fr);
    gap: 22px;
    padding: 24px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(248,251,255,.96) 0%, #fff 100%),
        radial-gradient(circle at top left, rgba(11,108,225,.06), transparent 42%);
    box-shadow: 0 10px 28px rgba(15,35,65,.05);
}

.samart-checkout-auth-copy {
    min-width: 0;
}

.samart-checkout-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--samart-accent);
    font-size: 12px;
    font-weight: 800;
}

.samart-checkout-auth-copy h3 {
    margin: 0;
    color: var(--samart-text);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
}

.samart-checkout-auth-copy > p {
    margin: 10px 0 0;
    color: var(--samart-muted);
    font-size: 14px;
    line-height: 1.75;
}

.samart-checkout-auth-benefits {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.samart-checkout-auth-benefits li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e6edf5;
    border-radius: 12px;
    background: rgba(255,255,255,.8);
    color: #3a4b63;
    font-size: 13px;
    line-height: 1.6;
}

.samart-checkout-auth-benefits__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf4ff;
    color: var(--samart-accent);
}

.samart-checkout-auth-benefits__icon svg {
    width: 20px;
    height: 20px;
}

.samart-checkout-auth-note {
    margin-top: 16px;
    padding: 13px 14px;
    border: 1px solid #d7e7fb;
    border-radius: 12px;
    background: #f5f9ff;
}

.samart-checkout-auth-note strong,
.samart-checkout-auth-note span {
    display: block;
}

.samart-checkout-auth-note strong {
    margin-bottom: 3px;
    color: var(--samart-text);
    font-size: 13px;
    font-weight: 800;
}

.samart-checkout-auth-note span {
    color: var(--samart-muted);
    font-size: 12px;
    line-height: 1.65;
}

.samart-checkout-auth-card form.woocommerce-form-login,
.samart-checkout-auth-card .samart-checkout-login-form {
    width: auto !important;
    margin: 0 !important;
    padding: 22px !important;
    border: 1px solid #dbe4ee !important;
    border-radius: 14px !important;
    background: #fff !important;
}

.samart-checkout-login-form .samart-field {
    margin-bottom: 16px;
}

.samart-checkout-login-form .samart-field > label {
    margin-bottom: 7px;
    font-size: 13px;
}

.samart-checkout-login-form .samart-input-wrap .samart-input-icon {
    left: 14px;
    width: 20px;
    height: 20px;
}

.samart-checkout-login-form .samart-input-wrap input[type="text"],
.samart-checkout-login-form .samart-input-wrap input[type="email"],
.samart-checkout-login-form .samart-input-wrap input[type="password"] {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 46px 0 42px;
    border: 1px solid #d3dce6;
    border-radius: 10px;
    background: #fff;
    color: var(--samart-text);
    box-shadow: none;
    font-size: 13px;
    line-height: 1.35;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.samart-checkout-login-form .samart-input-wrap input:focus {
    border-color: var(--samart-accent);
    box-shadow: 0 0 0 3px rgba(11,108,225,.10);
    outline: 0;
}

.samart-checkout-login-form .samart-input-wrap input::placeholder {
    color: #99a5b4;
    opacity: 1;
}

.samart-checkout-login-form .samart-password-toggle {
    right: 10px;
    width: 36px;
    height: 36px;
    color: #6f7d90;
}

.samart-checkout-login-form .samart-password-toggle svg {
    width: 21px;
    height: 21px;
}

.samart-checkout-auth-row {
    margin: 2px 0 16px;
}

.samart-checkout-auth-row .samart-checkbox {
    font-size: 12.5px;
}

.samart-checkout-auth-row .samart-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.samart-checkout-auth-row .samart-checkbox input[type="checkbox"]:checked::after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
}

.samart-checkout-auth-row .samart-forgot-link {
    font-size: 13px;
}

.samart-checkout-login-button,
.samart-checkout-login-form .button.samart-checkout-login-button {
    min-height: 50px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
}

.samart-checkout-login-button svg {
    width: 22px;
    height: 22px;
}

.samart-checkout-account-fields {
    padding: 22px !important;
}

.samart-checkout-account-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8edf3;
}

.samart-checkout-account-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eaf2ff;
    color: var(--samart-accent);
}

.samart-checkout-account-icon svg {
    width: 26px;
    height: 26px;
}

.samart-checkout-account-copy {
    min-width: 0;
}

.samart-checkout-account-copy h2 {
    margin: 0;
    color: var(--samart-text);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.samart-checkout-account-copy p {
    margin: 6px 0 0;
    color: var(--samart-muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.samart-checkout-account-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid #cfe0f8;
    border-radius: 999px;
    background: #f6faff;
    color: var(--samart-accent);
    font-size: 12px;
    font-weight: 800;
}

.samart-checkout-account-toggle {
    display: block !important;
    margin: 0 0 18px !important;
    padding: 14px 16px !important;
    border: 1px solid #d9e7fa;
    border-radius: 12px;
    background: #f7fbff;
}

.samart-checkout-account-toggle .samart-checkbox {
    font-size: 13px;
    font-weight: 700;
}

.samart-checkout-account-toggle small {
    display: block;
    margin-top: 8px;
    color: var(--samart-muted);
    font-size: 11.5px;
    line-height: 1.65;
}

.samart-checkout-account-create {
    margin: 0 !important;
}

.samart-checkout-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.samart-checkout-account-grid .form-row {
    margin-bottom: 16px !important;
}

.samart-checkout-account-grid .form-row.form-row-wide,
.samart-checkout-account-grid .form-row.notes,
.samart-checkout-account-grid .form-row.validate-required {
    width: 100%;
}

.samart-checkout-account-grid .form-row.form-row-wide {
    grid-column: 1 / -1;
}

.samart-checkout-account-grid label {
    display: block;
    margin-bottom: 7px;
    color: var(--samart-text);
    font-size: 13px;
    font-weight: 700;
}

.samart-checkout-account-grid input.input-text {
    min-height: 50px !important;
}

.samart-checkout-account-fields .woocommerce-password-strength,
.samart-checkout-account-fields div.woocommerce-password-strength,
.samart-checkout-account-fields p.woocommerce-password-strength {
    margin-top: 10px !important;
    padding: 12px 14px !important;
    border: 1px solid #f0d2d2 !important;
    border-radius: 10px !important;
    background: #fff7f7 !important;
    color: #c45645 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    font-weight: 700 !important;
}

.samart-checkout-account-fields .woocommerce-password-strength.good {
    border-color: #f0e1b1 !important;
    background: #fffbea !important;
    color: #9a7b17 !important;
}

.samart-checkout-account-fields .woocommerce-password-strength.strong {
    border-color: #bfe6c9 !important;
    background: #eefbf2 !important;
    color: #1b8b4a !important;
}

.samart-checkout-account-fields .woocommerce-password-hint,
.samart-checkout-account-fields small.woocommerce-password-hint,
.samart-checkout-account-fields div.woocommerce-password-hint,
.samart-checkout-account-fields p.woocommerce-password-hint {
    display: block !important;
    margin-top: 10px !important;
    padding: 14px 16px !important;
    border: 1px solid #dce8fa !important;
    border-radius: 12px !important;
    background: #f8fbff !important;
    color: #5c7088 !important;
    font-size: 11.8px !important;
    line-height: 1.7 !important;
}

.samart-checkout-account-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 2px;
    padding: 14px 16px;
    border: 1px solid #dce8fa;
    border-radius: 12px;
    background: #f7fbff;
}

.samart-checkout-account-tip-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: 10px;
    background: #eaf2ff;
    color: var(--samart-accent);
}

.samart-checkout-account-tip-icon svg {
    width: 18px;
    height: 18px;
}

.samart-checkout-account-tip strong,
.samart-checkout-account-tip span {
    display: block;
}

.samart-checkout-account-tip strong {
    margin-bottom: 3px;
    color: var(--samart-text);
    font-size: 12.5px;
    font-weight: 800;
}

.samart-checkout-account-tip span {
    color: var(--samart-muted);
    font-size: 11.5px;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .samart-checkout-auth-card {
        grid-template-columns: 1fr;
    }

    .samart-checkout-account-head {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .samart-checkout-account-badge {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 2px;
    }

    .samart-checkout-account-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 640px) {
    .samart-checkout-auth-wrap {
        width: min(100%, calc(100% - 20px));
        margin-bottom: 16px;
    }

    .samart-checkout-auth-card,
    .samart-checkout-auth-card form.woocommerce-form-login,
    .samart-checkout-auth-card .samart-checkout-login-form,
    .samart-checkout-account-fields {
        padding: 16px !important;
    }

    .samart-checkout-auth-copy h3 {
        font-size: 22px;
    }

    .samart-checkout-auth-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .samart-checkout-login-button,
    .samart-checkout-login-form .button.samart-checkout-login-button {
        min-height: 48px !important;
    }

    .samart-checkout-account-icon {
        width: 46px;
        height: 46px;
    }

    .samart-checkout-account-copy h2 {
        font-size: 18px;
    }
}

/* ============================================================
   v1.6.7 - Checkout guest account polish
   ============================================================ */

/* Registration header icon: more compact and proportional. */
.samart-checkout-account-head {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
}

.samart-checkout-account-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
}

.samart-checkout-account-icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 1.8;
}

.samart-checkout-account-badge {
    padding: 7px 12px;
    font-size: 11.5px;
}

/* Remove WooCommerce/Woodmart's reveal control in the checkout registration field. */
.samart-checkout-account-fields .show-password-input,
.samart-checkout-account-fields .password-input > button:not(.samart-password-toggle),
.samart-checkout-account-fields .woocommerce-input-wrapper > button:not(.samart-password-toggle) {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.samart-checkout-account-fields input[type="password"]::-ms-reveal,
.samart-checkout-account-fields input[type="password"]::-ms-clear {
    display: none !important;
}

.samart-checkout-password-shell {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.samart-checkout-password-shell > input.input-text,
.samart-checkout-password-shell > input[type="password"],
.samart-checkout-password-shell > input[type="text"] {
    width: 100% !important;
    padding-right: 48px !important;
}

.samart-checkout-password-shell .samart-password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 9px !important;
    z-index: 5 !important;
    width: 36px !important;
    height: 36px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #73839a !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
}

.samart-checkout-password-shell .samart-password-toggle:hover,
.samart-checkout-password-shell .samart-password-toggle:focus,
.samart-checkout-password-shell .samart-password-toggle:active {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--samart-accent) !important;
    outline: 0 !important;
}

.samart-checkout-password-shell .samart-password-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.samart-checkout-password-shell .samart-password-toggle__icon--hide {
    display: none;
}

.samart-checkout-password-shell .samart-password-toggle.is-visible .samart-password-toggle__icon--show {
    display: none;
}

.samart-checkout-password-shell .samart-password-toggle.is-visible .samart-password-toggle__icon--hide {
    display: inline-flex;
}

.samart-checkout-password-shell .samart-password-toggle svg {
    width: 21px !important;
    height: 21px !important;
    display: block;
}

@media (max-width: 900px) {
    .samart-checkout-account-head {
        grid-template-columns: 44px minmax(0, 1fr);
    }
}

/* ============================================================
   v1.6.8 - Checkout registration interaction fixes
   ============================================================ */
.samart-checkout-account-icon {
    position: relative !important;
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

.samart-checkout-account-icon > svg {
    position: absolute !important;
    inset: 0 !important;
    width: 21px !important;
    height: 21px !important;
    margin: auto !important;
    padding: 0 !important;
    display: block !important;
    transform: translateX(-1px) !important;
    transform-origin: center center !important;
}

.samart-checkout-account-head {
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
}

/* Keep only the Samart eye and make the whole button reliably clickable. */
.samart-checkout-password-shell {
    position: relative !important;
}

.samart-checkout-password-shell .samart-password-toggle {
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.samart-checkout-password-shell .samart-password-toggle * {
    pointer-events: none !important;
}

.samart-checkout-password-shell .samart-password-toggle__icon {
    width: 22px !important;
    height: 22px !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
}

.samart-checkout-password-shell .samart-password-toggle svg {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
}

.samart-checkout-register-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 4px 0 16px;
}

.samart-checkout-register-button,
.samart-checkout-ui-page .woocommerce .samart-checkout-register-button {
    width: 100% !important;
    min-height: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 11px 18px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--samart-primary), #0757aa) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: transform .18s ease, filter .18s ease, opacity .18s ease !important;
}

.samart-checkout-register-button:hover,
.samart-checkout-ui-page .woocommerce .samart-checkout-register-button:hover {
    color: #fff !important;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.samart-checkout-register-button:disabled {
    cursor: wait !important;
    opacity: .72 !important;
    transform: none !important;
}

.samart-checkout-register-button.is-success,
.samart-checkout-ui-page .woocommerce .samart-checkout-register-button.is-success {
    background: #15945a !important;
    opacity: 1 !important;
    cursor: default !important;
}

.samart-checkout-register-button svg {
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px;
}

.samart-checkout-register-status {
    min-height: 0;
    margin: 0;
    color: var(--samart-muted);
    font-size: 11.5px;
    line-height: 1.55;
    text-align: center;
}

.samart-checkout-register-status:empty {
    display: none;
}

.samart-checkout-register-status.is-error {
    display: block;
    padding: 10px 12px;
    border: 1px solid #f2c5c5;
    border-radius: 9px;
    background: #fff6f6;
    color: #bf3f3f;
    text-align: left;
}

.samart-checkout-register-status.is-success {
    display: block;
    padding: 10px 12px;
    border: 1px solid #bfe6cd;
    border-radius: 9px;
    background: #f0fbf4;
    color: #16824e;
    text-align: left;
}

@media (max-width: 900px) {
    .samart-checkout-account-head {
        grid-template-columns: 42px minmax(0, 1fr) !important;
    }
}
