/**
 * My Account / Login Page Styles
 * @package WeGrowMagic
 */

/* ==========================================================================
   My Account Page Container
   ========================================================================== */

   .wgm-myaccount-page {
    width: 1439px;
    max-width: 100%;
    height: 758px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    background: white;
}
.wgm-drawer__field1{
    padding: 17px 13px!important;
}

/* Right Side Image */
.wgm-myaccount-page__image {
    width: 720px;
    height: 758px;
    left: 719px;
    top: 0px;
    position: absolute;
    z-index: 0;
}

.wgm-myaccount-page__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wgm-myaccount-page__image--placeholder {
    background: #f5f5f5;
}

/* Left Side Form */
.wgm-myaccount-page__form {
    width: 352px;
    left: 170px;
    top: 138px;
    position: absolute;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 45px;
    z-index: 1;
}

/* ==========================================================================
   Tab Switcher
   ========================================================================== */

.wgm-myaccount-tabs {
    align-self: stretch;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.wgm-myaccount-tabs__header {
    width: 190px;
    padding-bottom: 8px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
}

.wgm-myaccount-tab {
    color: #75797D;
    font-size: 16.75px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 25.13px;
    word-wrap: break-word;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}

.wgm-myaccount-tab.is-active {
    color: #12679C;
}

.wgm-myaccount-tabs__indicator {
    align-self: stretch;
    height: 2px;
    background: #D9D9D9;
    position: relative;
}

.wgm-myaccount-tabs__indicator-line {
    width: 160.26px;
    height: 2px;
    position: absolute;
    top: 0;
    left: 0;
    background: #12679C;
    transition: left 0.3s ease, width 0.3s ease;
}

/* ==========================================================================
   Form Wrapper
   ========================================================================== */

.wgm-myaccount-form-wrap {
    align-self: stretch;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 28px;
}

.wgm-myaccount-form-wrap.is-active {
    display: flex !important;
}

/* Ensure register form is visible when active */
#wgm-form-register.is-active {
    display: flex !important;
    visibility: visible !important;
}

/* Sign In Form */
#wgm-form-login {
    gap: 28px;
}

/* Join Us Form */
#wgm-form-register {
    gap: 36px;
}

/* Ensure register form button is visible */
#wgm-form-register .wgm-myaccount-button,
#wgm-form-register button[type="submit"],
#wgm-form-register .woocommerce-form-register__submit,
#wgm-form-register .woocommerce-Button,
#wgm-form-register form .wgm-myaccount-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    align-self: stretch !important;
    height: 42px !important;
    padding: 8.01px 13.34px !important;
    background: #12679C !important;
    color: white !important;
    border: none !important;
    border-radius: 6.67px !important;
    cursor: pointer !important;
    margin-top: 12px !important;
    font-size: 13.34px !important;
    font-family: 'General Sans', sans-serif !important;
    font-weight: 500 !important;
    line-height: 16.01px !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Ensure form fields container doesn't hide button */
#wgm-form-register .wgm-myaccount-form__fields {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

/* Ensure form container displays button */
#wgm-form-register form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
}

/* Button wrapper for proper spacing */
#wgm-form-register form > .wgm-myaccount-button {
    margin-top: 12px !important;
    order: 999 !important;
}

.wgm-myaccount-form__header {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
}

.wgm-myaccount-form__title {
    align-self: stretch;
    text-align: center;
    color: black;
    font-size: 24px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 500;
    line-height: 28.80px;
    word-wrap: break-word;
    margin: 0;
}

.wgm-myaccount-form__subtitle {
    align-self: stretch;
    text-align: center;
    color: #75797D;
    font-size: 12px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 14.40px;
    word-wrap: break-word;
    margin: 0;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.wgm-myaccount-form__fields {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
}

.wgm-myaccount-form__row {
    align-self: stretch;
    display: inline-flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
}

.wgm-myaccount-form__field {
    align-self: stretch;
    width: 100% !important;
    height: 52px;
    padding: 8.01px 13.34px;
    background: white;
    overflow: hidden;
    border-radius: 6.67px;
    outline: 0.67px black solid;
    outline-offset: -0.67px;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20.02px;
    position: relative;
    box-sizing: border-box;
}

.wgm-myaccount-form__field--half {
    flex: 1 1 0;
}

.wgm-myaccount-input {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    color: black;
    font-size: 12px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 14.40px;
    word-wrap: break-word;
    outline: none;
    padding: 0;
}

.wgm-myaccount-input::placeholder {
    color: black;
    opacity: 1;
}

/* Form Labels */
.wgm-myaccount-form__label {
    display: block;
    color: #111827;
    font-size: 12px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 14.40px;
    margin-bottom: 8px;
}

.wgm-myaccount-form__label .required {
    color: #dc2626;
}

/* Lost/Reset Password Form Messages */
.wgm-lost-password__message,
.wgm-reset-password__message {
    color: #374151;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 20px 0;
    padding: 0;
}

.wgm-lost-password__success-message {
    color: #059669;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 20px 0;
    padding: 16px;
    background: #d1fae5;
    border: 1px solid #86efac;
    border-radius: 6.67px;
}

/* Lost/Reset Password Forms */
.wgm-lost-password-form,
.wgm-reset-password-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Ensure lost/reset password forms have proper width */
.wgm-lost-password-form .wgm-myaccount-form__fields,
.wgm-reset-password-form .wgm-myaccount-form__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.wgm-lost-password-form .wgm-myaccount-form__field,
.wgm-reset-password-form .wgm-myaccount-form__field {
    width: 100%;
    align-self: stretch;
}

.wgm-lost-password-form .wgm-myaccount-button,
.wgm-reset-password-form .wgm-myaccount-button {
    width: 100% !important;
    align-self: stretch !important;
    margin-top: 8px;
}

/* Forgot Password Link */
.wgm-myaccount-form__forgot-password {
    align-self: flex-start;
    margin-top: 4px;
    margin-bottom: 4px;
}

.wgm-myaccount-form__forgot-link {
    color: #75797D;
    font-size: 12px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 14.40px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.wgm-myaccount-form__forgot-link:hover {
    color: #12679C;
    text-decoration: underline;
}

/* Password Field Group */
.wgm-myaccount-form__field-group {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
}

.wgm-myaccount-form__password-requirements {
    align-self: stretch;
    display: inline-flex;
    justify-content: space-between;
    align-items: flex-start;
}

.wgm-myaccount-form__password-label {
    color: #75797D;
    font-size: 12px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 14.40px;
    word-wrap: break-word;
}

.wgm-myaccount-form__password-check {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}

.wgm-myaccount-form__password-checkbox {
    width: 12px;
    height: 12px;
    position: relative;
    background: white;
    border-radius: 4px;
    border: 0.50px #C5C0C0 solid;
}

.wgm-myaccount-form__password-check span {
    color: #75797D;
    font-size: 12px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 14.40px;
    word-wrap: break-word;
}

/* ==========================================================================
   Button
   ========================================================================== */

.wgm-myaccount-button {
    align-self: stretch;
    width: 100% !important;
    height: 42px;
    padding: 8.01px 13.34px;
    background: #12679C;
    overflow: hidden;
    border-radius: 6.67px;
    outline: 0.67px white solid;
    outline-offset: -0.67px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20.02px;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 13.34px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 16.01px;
    word-wrap: break-word;
    transition: background 0.2s, opacity 0.2s;
    margin-top: 12px;
}

/* Ensure login form button has same width as inputs */
#wgm-form-login .wgm-myaccount-button,
#wgm-form-login button[type="submit"],
#wgm-form-login .woocommerce-form-login__submit {
    width: 100% !important;
    align-self: stretch !important;
}

.wgm-myaccount-button:hover {
    background: #0d4d6f;
    opacity: 0.9;
}

.wgm-myaccount-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   WooCommerce Notices
   ========================================================================== */

.wgm-myaccount-page .woocommerce-error,
.wgm-myaccount-page .woocommerce-info,
.wgm-myaccount-page .woocommerce-message {
    margin: 0 0 20px 0;
    padding: 12px 16px;
    border-radius: 6.67px;
    font-size: 12px;
    font-family: 'General Sans', sans-serif;
    line-height: 1.4;
}

.wgm-myaccount-page .woocommerce-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.wgm-myaccount-page .woocommerce-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.wgm-myaccount-page .woocommerce-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #86efac;
}

/* ==========================================================================
   My Account Dashboard
   ========================================================================== */

.wgm-my-account {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 50px;
    background: white;
}

/* Account Header */
.wgm-account-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #E5E7EB;
}

.wgm-account-header__user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wgm-account-header__user img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
}

.wgm-account-header__user h1 {
    font-size: 32px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 500;
    color: #000;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.wgm-account-header__user p {
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    color: #6B7280;
    margin: 0;
}

/* Account Layout */
.wgm-account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
}

/* Account Navigation */
.wgm-account-nav {
    background: transparent;
}

.wgm-account-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wgm-account-nav__item {
    margin: 0;
}

.wgm-account-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.wgm-account-nav__link:hover {
    background: #F9FAFB;
    color: #12679C;
}

.wgm-account-nav__item.is-active .wgm-account-nav__link {
    background: #12679C;
    color: white;
    border-color: #12679C;
}

.wgm-account-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.wgm-account-nav__icon svg {
    width: 100%;
    height: 100%;
}

.wgm-account-nav__label {
    flex: 1;
}

/* Account Content */
.wgm-account-content {
    min-height: 400px;
}

/* Dashboard */
.wgm-dashboard {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.wgm-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wgm-dashboard-card {
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s ease;
    gap: 16px;
}

.wgm-dashboard-card:hover {
    border-color: #12679C;
    box-shadow: 0 4px 12px rgba(18, 103, 156, 0.1);
    transform: translateY(-2px);
}

.wgm-dashboard-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #12679C;
    flex-shrink: 0;
}

.wgm-dashboard-card__icon svg {
    width: 100%;
    height: 100%;
}

.wgm-dashboard-card h3 {
    font-size: 20px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 500;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.wgm-dashboard-card p {
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* Dashboard Section */
.wgm-dashboard-section {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px;
}

.wgm-dashboard-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

.wgm-dashboard-section__header h2 {
    font-size: 24px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.wgm-dashboard-section__header .wgm-link {
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    color: #12679C;
    text-decoration: none;
    font-weight: 500;
}

.wgm-dashboard-section__header .wgm-link:hover {
    text-decoration: underline;
}

/* Orders List */
.wgm-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wgm-order-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.wgm-order-item__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wgm-order-item__number {
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    color: #111827;
}

.wgm-order-item__date {
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    color: #6B7280;
}

.wgm-order-item__status {
    display: flex;
    align-items: center;
}

.wgm-order-item__total {
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    color: #111827;
}

.wgm-order-item__actions {
    display: flex;
    gap: 8px;
}

/* Status Badges */
.wgm-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.wgm-status--pending {
    background: #FEF3C7;
    color: #92400E;
}

.wgm-status--processing {
    background: #DBEAFE;
    color: #1E40AF;
}

.wgm-status--on-hold {
    background: #FEF3C7;
    color: #92400E;
}

.wgm-status--completed {
    background: #D1FAE5;
    color: #065F46;
}

.wgm-status--cancelled,
.wgm-status--refunded,
.wgm-status--failed {
    background: #FEE2E2;
    color: #991B1B;
}

/* Orders Page */
.wgm-orders-page {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wgm-orders-page h2 {
    font-size: 32px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.wgm-orders-table-wrap {
    overflow-x: auto;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

.wgm-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.wgm-orders-table th,
.wgm-orders-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.wgm-orders-table th {
    font-size: 13px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #F9FAFB;
}

.wgm-orders-table td {
    font-size: 15px;
    font-family: 'General Sans', sans-serif;
    color: #111827;
}

.wgm-orders-table tbody tr:last-child td {
    border-bottom: none;
}

.wgm-orders-table tbody tr:hover {
    background: #F9FAFB;
}

.wgm-orders-table td a {
    color: #12679C;
    text-decoration: none;
    font-weight: 500;
}

.wgm-orders-table td a:hover {
    text-decoration: underline;
}

/* Empty State */
.wgm-empty-state {
    text-align: center;
    padding: 80px 24px;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.wgm-empty-state__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wgm-empty-state__icon svg {
    width: 100%;
    height: 100%;
}

.wgm-empty-state h3 {
    font-size: 24px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 500;
    color: #111827;
    margin: 0 0 12px 0;
}

.wgm-empty-state p {
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    color: #6B7280;
    margin: 0 0 32px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.wgm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.wgm-btn--primary {
    background: #12679C;
    color: white;
    border-color: #12679C;
}

.wgm-btn--primary:hover {
    background: #0d4d6f;
    border-color: #0d4d6f;
    color: white;
}

.wgm-btn--outline {
    background: white;
    color: #12679C;
    border-color: #12679C;
}

.wgm-btn--outline:hover {
    background: #12679C;
    color: white;
}

.wgm-btn--sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Pagination */
.wgm-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.wgm-link {
    color: #12679C;
    text-decoration: none;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
}

.wgm-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Order Details Table
   ========================================================================== */

.wgm-order-details .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wgm-order-details .woocommerce-table--order-details thead {
    background: #F5F7F9;
}

.wgm-order-details .woocommerce-table--order-details th {
    padding: 16px 24px;
    text-align: left;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #E5E7EB;
}

.wgm-order-details .woocommerce-table--order-details tbody td {
    padding: 20px 24px;
    border-bottom: 1px solid #E5E7EB;
    vertical-align: top;
}

.wgm-order-details .woocommerce-table__product-name {
    width: 70%;
}

.wgm-order-details .woocommerce-table__product-name a {
    color: #12679C;
    text-decoration: none;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 8px;
}

.wgm-order-details .woocommerce-table__product-name a:hover {
    text-decoration: underline;
}

.wgm-order-details .product-quantity {
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    color: #6B7280;
    margin-left: 8px;
}

.wgm-order-details .wc-item-meta {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
}

.wgm-order-details .wc-item-meta li {
    margin: 8px 0;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    color: #374151;
}

.wgm-order-details .wc-item-meta-label {
    font-weight: 600;
    color: #111827;
    margin-right: 8px;
}

.wgm-order-details .wc-item-meta p {
    display: inline;
    margin: 0;
    color: #6B7280;
}

.wgm-order-details .woocommerce-table__product-total {
    text-align: right;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    color: #111827;
}

.wgm-order-details .woocommerce-table--order-details tfoot {
    background: #F9FAFB;
}

.wgm-order-details .woocommerce-table--order-details tfoot th {
    padding: 16px 24px;
    text-align: left;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    color: #374151;
    border-top: 2px solid #E5E7EB;
    border-bottom: none;
}

.wgm-order-details .woocommerce-table--order-details tfoot td {
    padding: 16px 24px;
    text-align: right;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    color: #111827;
    border-top: 2px solid #E5E7EB;
    border-bottom: none;
}

.wgm-order-details .woocommerce-table--order-details tfoot tr:last-child th,
.wgm-order-details .woocommerce-table--order-details tfoot tr:last-child td {
    border-top: 2px solid #12679C;
    font-weight: 600;
    font-size: 16px;
}

.wgm-order-details .woocommerce-Price-amount {
    color: #111827;
}

/* Responsive Order Details Table */
@media (max-width: 768px) {
    .wgm-order-details .woocommerce-table--order-details {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .wgm-order-details .woocommerce-table--order-details thead {
        display: none;
    }
    
    .wgm-order-details .woocommerce-table--order-details tbody,
    .wgm-order-details .woocommerce-table--order-details tfoot {
        display: block;
    }
    
    .wgm-order-details .woocommerce-table--order-details tbody tr,
    .wgm-order-details .woocommerce-table--order-details tfoot tr {
        display: block;
        margin-bottom: 24px;
        padding: 16px;
        background: white;
        border: 1px solid #E5E7EB;
        border-radius: 8px;
    }
    
    .wgm-order-details .woocommerce-table--order-details tbody td,
    .wgm-order-details .woocommerce-table--order-details tfoot th,
    .wgm-order-details .woocommerce-table--order-details tfoot td {
        display: block;
        padding: 8px 0;
        text-align: left;
        border: none;
    }
    
    .wgm-order-details .woocommerce-table__product-name {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .wgm-order-details .woocommerce-table__product-total {
        text-align: left;
        font-size: 18px;
        padding-top: 12px;
        border-top: 1px solid #E5E7EB;
    }
    
    .wgm-order-details .woocommerce-table__product-total::before {
        content: "Total: ";
        font-weight: 500;
        color: #6B7280;
    }
    
    .wgm-order-details .woocommerce-table--order-details tfoot th::before {
        content: "";
    }
    
    .wgm-order-details .woocommerce-table--order-details tfoot td {
        text-align: left;
    }
}

/* ==========================================================================
   Thank You Page
   ========================================================================== */

.wgm-thankyou-page {
    width: 100%;
    max-width: var(--wgm-container-max);
    margin: 0 auto;
    padding: var(--wgm-section-padding-mobile) var(--wgm-gap);
    font-family: 'ITC Clearface Std', serif !important;
}

.wgm-thankyou-page__container {
    background: #fff;
    padding: var(--wgm-gap-lg);
    max-width: 900px;
    margin: 0 auto;
}

/* Success message banner */
.wgm-order-received {
    margin-bottom: var(--wgm-gap-lg);
    padding: var(--wgm-gap);
    background: transparent;
    border: none;
}

.wgm-order-received__message {
    font-size: var(--wgm-text-lg);
    font-family: 'ITC Clearface Std', serif !important;
    font-weight: 500;
    color: #16a34a;
    margin: 0;
    text-align: center;
}

/* Order overview - horizontal row with vertical dividers */
.wgm-thankyou-page__order-overview {
    margin: 0 0 var(--wgm-gap-lg);
}

.wgm-thankyou-page__order-details {
    list-style: none;
    margin: 0;
    padding: 0 0 var(--wgm-gap-lg);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    border-bottom: 1px solid #eee;
}

.wgm-thankyou-page__order-detail {
    display: flex;
    flex-direction: column;
    padding: 0 var(--wgm-gap);
    flex: 1;
    min-width: 0;
    border-right: 1px solid #e5e5e5;
}

.wgm-thankyou-page__order-detail:last-child {
    border-right: none;
}

.wgm-thankyou-page__order-label {
    font-size: 0.6875rem;
    font-family: 'ITC Clearface Std', serif !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: var(--wgm-gap-sm);
    text-transform: uppercase;
}

.wgm-thankyou-page__order-value {
    font-size: var(--wgm-text-base);
    font-family: 'ITC Clearface Std', serif !important;
    font-weight: 600;
    color: #111;
}

/* Order details section (WooCommerce) */
.wgm-thankyou-page .woocommerce-order-details {
    margin-top: var(--wgm-gap-lg);
    padding-top: var(--wgm-gap-lg);
    border-top: 1px solid var(--wgm-border);
}

.wgm-thankyou-page .woocommerce-order-details__title {
    font-family: 'ITC Clearface Std', serif !important;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #111;
    text-align: center;
    margin-bottom: var(--wgm-gap);
    text-transform: uppercase;
}

.wgm-thankyou-page .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    font-family: 'ITC Clearface Std', serif !important;
}

.wgm-thankyou-page .woocommerce-table--order-details {
    border: 1px solid #eee;
}

.wgm-thankyou-page .woocommerce-table--order-details thead th {
    font-family: 'ITC Clearface Std', serif !important;
    font-size: var(--wgm-text-sm);
    font-weight: 700;
    color: #111;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.wgm-thankyou-page .woocommerce-table--order-details thead th.product-name {
    text-align: left;
}

.wgm-thankyou-page .woocommerce-table--order-details thead th.product-total {
    text-align: right;
}

.wgm-thankyou-page .woocommerce-table--order-details tbody tr {
    border-bottom: 1px solid #eee;
}

.wgm-thankyou-page .woocommerce-table--order-details tbody tr:last-child {
    border-bottom: none;
}

.wgm-thankyou-page .woocommerce-table__product-name {
    padding: 16px 20px;
    vertical-align: top;
}

.wgm-thankyou-page .woocommerce-table__product-name a,
.wgm-thankyou-page .woocommerce-table__product-name {
    font-family: 'ITC Clearface Std', serif !important;
    font-size: var(--wgm-text-base);
    color: #111;
    line-height: 1.5;
}

.wgm-thankyou-page .woocommerce-table__product-name .product-quantity {
    font-weight: 600;
}

.wgm-thankyou-page .woocommerce-table__product-total {
    padding: 16px 20px;
    font-family: 'ITC Clearface Std', serif !important;
    font-size: var(--wgm-text-base);
    font-weight: 500;
    color: #111;
    text-align: right;
    vertical-align: top;
}

/* Product meta - inline format (Path: X, Dose: Y, Supply: Z) */
.wgm-thankyou-page .wgm-item-meta-inline {
    display: block;
    font-size: var(--wgm-text-sm);
    color: var(--wgm-text-light);
    margin-top: 6px;
    font-family: 'ITC Clearface Std', serif !important;
}

.wgm-thankyou-page .wc-item-meta {
    list-style: none;
    margin: var(--wgm-gap-sm) 0 0;
    padding: 0;
}

.wgm-thankyou-page .wc-item-meta li {
    font-size: var(--wgm-text-sm);
    color: var(--wgm-text-light);
    margin-top: 4px;
}

.wgm-thankyou-page .wc-item-meta .wc-item-meta-label {
    font-weight: 500;
    color: var(--wgm-text-light);
}

/* Order totals in table footer */
.wgm-thankyou-page .woocommerce-table--order-details tfoot th,
.wgm-thankyou-page .woocommerce-table--order-details tfoot td {
    font-family: 'ITC Clearface Std', serif !important;
    font-size: var(--wgm-text-base);
    font-weight: 700;
    color: #111;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.wgm-thankyou-page .woocommerce-table--order-details tfoot:last-of-type tr:last-child th,
.wgm-thankyou-page .woocommerce-table--order-details tfoot:last-of-type tr:last-child td {
    font-size: var(--wgm-text-lg);
    font-weight: 600;
    padding-top: var(--wgm-gap);
    border-top: 1px solid var(--wgm-border);
}

/* Payment method note */
.wgm-thankyou-page .woocommerce-order-details p,
.wgm-thankyou-page .woocommerce-order ~ p {
    font-family: 'ITC Clearface Std', serif !important;
    font-size: var(--wgm-text-sm);
    color: var(--wgm-text-light);
    margin-top: var(--wgm-gap-sm);
}

/* Billing address section */
.wgm-thankyou-page .woocommerce-customer-details {
    margin-top: var(--wgm-gap-lg);
    padding-top: var(--wgm-gap-lg);
    border-top: 1px solid var(--wgm-border);
}

.wgm-thankyou-page .woocommerce-column__title {
    font-family: 'ITC Clearface Std', serif !important;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #111;
    text-align: center;
    margin-bottom: var(--wgm-gap);
    text-transform: uppercase;
}

.wgm-thankyou-page .woocommerce-customer-details address {
    font-family: 'ITC Clearface Std', serif !important;
    font-size: var(--wgm-text-base);
    color: #111;
    line-height: 1.7;
    font-style: normal;
    padding: 20px;
    border: 1px solid #eee;
    background: #fff;
}

.wgm-thankyou-page .woocommerce-customer-details--phone,
.wgm-thankyou-page .woocommerce-customer-details--email {
    margin-top: var(--wgm-gap-sm);
}

/* Order actions buttons */
.wgm-thankyou-page .order-actions-button,
.wgm-thankyou-page .woocommerce-button {
    font-family: 'ITC Clearface Std', serif !important;
    font-size: var(--wgm-text-sm);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--wgm-radius);
    background: var(--wgm-primary);
    color: #fff;
    border: 1px solid var(--wgm-primary);
    text-decoration: none;
    display: inline-block;
    transition: opacity var(--wgm-transition-fast);
}

.wgm-thankyou-page .order-actions-button:hover,
.wgm-thankyou-page .woocommerce-button:hover {
    opacity: 0.9;
    color: #fff;
}

/* Error state */
.wgm-thankyou-page__error {
    padding: var(--wgm-gap-lg);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--wgm-radius);
    text-align: center;
}

.wgm-thankyou-page__error-message {
    font-size: var(--wgm-text-base);
    font-family: 'ITC Clearface Std', serif !important;
    font-weight: 500;
    color: var(--wgm-error);
    margin: 0 0 var(--wgm-gap) 0;
}

.wgm-thankyou-page__error-actions {
    display: flex;
    gap: var(--wgm-gap);
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Thank You Page */
@media (max-width: 768px) {
    .wgm-thankyou-page {
        padding: var(--wgm-gap) var(--wgm-gap-sm);
    }
    
    .wgm-thankyou-page__container {
        padding: var(--wgm-gap) var(--wgm-gap-sm);
    }
    
    .wgm-order-received {
        padding: var(--wgm-gap) var(--wgm-gap-sm);
    }
    
    .wgm-order-received__message {
        font-size: var(--wgm-text-base);
    }
    
    .wgm-thankyou-page__order-details {
        flex-direction: column;
    }
    
    .wgm-thankyou-page__order-detail {
        padding: var(--wgm-gap) 0;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .wgm-thankyou-page__order-detail:last-child {
        border-bottom: none;
    }
    
    .wgm-thankyou-page .woocommerce-order-details__title,
    .wgm-thankyou-page .woocommerce-column__title {
        font-size: var(--wgm-text-xl);
    }
    
    /* Scrollable table on mobile */
    .wgm-thankyou-page .woocommerce-table--order-details {
        display: block;
    }
    
    .wgm-thankyou-page .woocommerce-table--order-details thead {
        display: none;
    }
    
    .wgm-thankyou-page .woocommerce-table--order-details tbody,
    .wgm-thankyou-page .woocommerce-table--order-details tr,
    .wgm-thankyou-page .woocommerce-table--order-details td {
        display: block;
    }
    
    .wgm-thankyou-page .woocommerce-table--order-details tbody tr {
        padding: var(--wgm-gap) 0;
        border-bottom: 1px solid var(--wgm-border);
    }
    
    .wgm-thankyou-page .woocommerce-table__product-name {
        padding: 0 0 var(--wgm-gap-sm);
    }
    
    .wgm-thankyou-page .woocommerce-table__product-total {
        padding: 0;
        text-align: left;
        font-weight: 600;
    }
    
    .wgm-thankyou-page .woocommerce-table__product-total::before {
        content: "Total: ";
        font-weight: 500;
        color: var(--wgm-text-light);
        margin-right: var(--wgm-gap-sm);
    }
    
    .wgm-thankyou-page .woocommerce-table--order-details tfoot tr {
        display: flex;
        justify-content: space-between;
        padding: var(--wgm-gap-sm) 0;
    }
    
    .wgm-thankyou-page .woocommerce-table--order-details tfoot th {
        padding: 0;
    }
    
    .wgm-thankyou-page .woocommerce-table--order-details tfoot td {
        padding: 0;
        text-align: right;
    }
    
    .wgm-thankyou-page .woocommerce-table--order-details tfoot tr td .order-actions-button + .order-actions-button {
        margin-left: var(--wgm-gap-sm);
    }
    
    .wgm-thankyou-page__error-actions {
        flex-direction: column;
    }
    
    .wgm-thankyou-page__error-actions .wgm-btn {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .wgm-thankyou-page {
        padding: var(--wgm-section-padding) var(--wgm-gap);
    }
}

/* ==========================================================================
   WooCommerce Block Order Confirmation Template
   (Used when Blocks checkout shows order-received page)
   ========================================================================== */

.woocommerce-order-received .wp-block-group main,
.wgm-order-confirmation-page .wp-block-group main,
.woocommerce-order-received .entry-content,
.wgm-order-confirmation-page .entry-content {
    max-width: var(--wgm-container-max);
    margin: 0 auto;
    padding: var(--wgm-section-padding-mobile) var(--wgm-gap);
    font-family: 'ITC Clearface Std', serif !important;
}

/* Wrap content in styled container (main is .wp-block-group in Block template) */
.woocommerce-order-received main.wp-block-group,
.woocommerce-order-received .wgm-container main.wp-block-group,
.wgm-order-confirmation-page main.wp-block-group,
.wgm-order-confirmation-page .wgm-container main.wp-block-group {
    background: var(--wgm-background);
    border-radius: var(--wgm-radius-lg);
    padding: var(--wgm-gap-lg);
    border: 1px solid #DCEBFF;
    box-shadow: var(--wgm-shadow-sm);
}

/* Order status (Thank you message) */
.woocommerce-order-received .wc-block-order-confirmation-status,
.woocommerce-order-received .wc-block-order-confirmation-status-description,
.wgm-order-confirmation-page .wc-block-order-confirmation-status,
.wgm-order-confirmation-page .wc-block-order-confirmation-status-description {
    margin-bottom: var(--wgm-gap-lg);
    padding: var(--wgm-gap);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--wgm-radius);
}

.woocommerce-order-received .wc-block-order-confirmation-status p,
.woocommerce-order-received .wc-block-order-confirmation-status-description p,
.wgm-order-confirmation-page .wc-block-order-confirmation-status p,
.wgm-order-confirmation-page .wc-block-order-confirmation-status-description p {
    font-family: var(--wgm-font-heading);
    font-size: var(--wgm-text-lg);
    font-weight: 500;
    color: var(--wgm-success);
    margin: 0;
    text-align: center;
}

/* Order summary list */
.woocommerce-order-received .wc-block-order-confirmation-summary-list,
.wgm-order-confirmation-page .wc-block-order-confirmation-summary-list {
    list-style: none;
    margin: 0 0 var(--wgm-gap-lg);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--wgm-gap);
}

.woocommerce-order-received .wc-block-order-confirmation-summary-list-item,
.wgm-order-confirmation-page .wc-block-order-confirmation-summary-list-item {
    padding: var(--wgm-gap);
    background: var(--wgm-background-alt);
    border-radius: var(--wgm-radius);
    border: 1px solid var(--wgm-border);
}

.woocommerce-order-received .wc-block-order-confirmation-summary-list-item__key,
.wgm-order-confirmation-page .wc-block-order-confirmation-summary-list-item__key {
    display: block;
    font-size: var(--wgm-text-sm);
    font-family: 'ITC Clearface Std', serif !important;
    font-weight: 500;
    color: var(--wgm-text-light);
    margin-bottom: var(--wgm-gap-sm);
}

.woocommerce-order-received .wc-block-order-confirmation-summary-list-item__value,
.wgm-order-confirmation-page .wc-block-order-confirmation-summary-list-item__value {
    font-size: var(--wgm-text-base);
    font-family: 'ITC Clearface Std', serif !important;
    font-weight: 600;
    color: var(--wgm-text);
}

/* Order totals section */
.woocommerce-order-received .wc-block-order-confirmation-totals-wrapper,
.woocommerce-order-received .wc-block-order-confirmation-totals-wrapper h2,
.woocommerce-order-received .wc-block-order-confirmation-totals-wrapper h3,
.wgm-order-confirmation-page .wc-block-order-confirmation-totals-wrapper,
.wgm-order-confirmation-page .wc-block-order-confirmation-totals-wrapper h2,
.wgm-order-confirmation-page .wc-block-order-confirmation-totals-wrapper h3 {
    font-family: var(--wgm-font-heading);
    font-size: var(--wgm-text-2xl);
    font-weight: 500;
    color: var(--wgm-text);
    margin-bottom: var(--wgm-gap);
}

.woocommerce-order-received .wc-block-order-confirmation-totals__table,
.wgm-order-confirmation-page .wc-block-order-confirmation-totals__table {
    width: 100%;
    font-family: 'ITC Clearface Std', serif !important;
}

.woocommerce-order-received .wc-block-order-confirmation-totals__table th,
.wgm-order-confirmation-page .wc-block-order-confirmation-totals__table th {
    font-size: var(--wgm-text-sm);
    font-weight: 600;
    color: var(--wgm-text-light);
    padding: var(--wgm-gap-sm) 0;
    border-bottom: 1px solid var(--wgm-border);
}

.woocommerce-order-received .wc-block-order-confirmation-totals__table td,
.wgm-order-confirmation-page .wc-block-order-confirmation-totals__table td {
    font-size: var(--wgm-text-base);
    color: var(--wgm-text);
    padding: var(--wgm-gap) 0;
    border-bottom: 1px solid var(--wgm-border);
}

.woocommerce-order-received .wc-block-order-confirmation-totals__product,
.wgm-order-confirmation-page .wc-block-order-confirmation-totals__product {
    text-align: left;
}

.woocommerce-order-received .wc-block-order-confirmation-totals__total,
.wgm-order-confirmation-page .wc-block-order-confirmation-totals__total {
    text-align: right;
}

/* Billing/Shipping address sections */
.woocommerce-order-received .wc-block-order-confirmation-billing-wrapper h2,
.woocommerce-order-received .wc-block-order-confirmation-shipping-wrapper h2,
.woocommerce-order-received .wc-block-order-confirmation-billing-wrapper h3,
.woocommerce-order-received .wc-block-order-confirmation-shipping-wrapper h3,
.wgm-order-confirmation-page .wc-block-order-confirmation-billing-wrapper h2,
.wgm-order-confirmation-page .wc-block-order-confirmation-shipping-wrapper h2,
.wgm-order-confirmation-page .wc-block-order-confirmation-billing-wrapper h3,
.wgm-order-confirmation-page .wc-block-order-confirmation-shipping-wrapper h3 {
    font-family: var(--wgm-font-heading);
    font-size: var(--wgm-text-2xl);
    font-weight: 500;
    color: var(--wgm-text);
    margin-bottom: var(--wgm-gap);
}

.woocommerce-order-received .wc-block-order-confirmation-address-wrapper address,
.woocommerce-order-received .wc-block-order-confirmation-billing-address,
.woocommerce-order-received .wc-block-order-confirmation-shipping-address,
.wgm-order-confirmation-page .wc-block-order-confirmation-address-wrapper address,
.wgm-order-confirmation-page .wc-block-order-confirmation-billing-address,
.wgm-order-confirmation-page .wc-block-order-confirmation-shipping-address {
    font-family: 'ITC Clearface Std', serif !important;
    font-size: var(--wgm-text-base);
    color: var(--wgm-text);
    line-height: 1.6;
    font-style: normal;
}

/* Additional information (Rewards, payment notes) */
.woocommerce-order-received .wc-block-order-confirmation-additional-information h2,
.woocommerce-order-received .wc-block-order-confirmation-additional-information h3,
.wgm-order-confirmation-page .wc-block-order-confirmation-additional-information h2,
.wgm-order-confirmation-page .wc-block-order-confirmation-additional-information h3 {
    font-family: var(--wgm-font-heading);
    font-size: var(--wgm-text-2xl);
    font-weight: 500;
    color: var(--wgm-text);
    margin: var(--wgm-gap-lg) 0 var(--wgm-gap);
}

.woocommerce-order-received .wc-block-order-confirmation-additional-information p,
.woocommerce-order-received .wc-block-order-confirmation-additional-information div,
.wgm-order-confirmation-page .wc-block-order-confirmation-additional-information p,
.wgm-order-confirmation-page .wc-block-order-confirmation-additional-information div {
    font-family: 'ITC Clearface Std', serif !important;
    font-size: var(--wgm-text-base);
    color: var(--wgm-text);
}

/* Hide duplicate "Order confirmation" h1 from Block/Classic template */
.woocommerce-order-received main > h1,
.woocommerce-order-received .wp-block-group > h1,
.wgm-order-confirmation-page main > h1,
.wgm-order-confirmation-page .wp-block-group > h1 {
    display: none;
}

/* Classic template: ensure wrapper has correct layout when inside Checkout block */
.woocommerce-order-received .woocommerce .wgm-thankyou-page,
.wgm-order-confirmation-page .woocommerce .wgm-thankyou-page {
    width: 100%;
}

/* Block Order Confirmation responsive */
@media (max-width: 768px) {
    .woocommerce-order-received .wp-block-group main,
    .woocommerce-order-received .entry-content,
    .wgm-order-confirmation-page .wp-block-group main,
    .wgm-order-confirmation-page .entry-content {
        padding: var(--wgm-gap) var(--wgm-gap-sm);
    }
    
    .woocommerce-order-received main.wp-block-group,
    .wgm-order-confirmation-page main.wp-block-group {
        padding: var(--wgm-gap) var(--wgm-gap-sm);
    }
    
    .woocommerce-order-received .wc-block-order-confirmation-summary-list,
    .wgm-order-confirmation-page .wc-block-order-confirmation-summary-list {
        grid-template-columns: 1fr;
        gap: var(--wgm-gap-sm);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1440px) {
    .wgm-myaccount-page {
        width: 100%;
        height: auto;
        min-height: 758px;
    }
    
    .wgm-myaccount-page__image {
        left: 50%;
        width: 50%;
        height: 100%;
        min-height: 758px;
    }
    
    .wgm-myaccount-page__form {
        left: 5%;
        width: 45%;
        max-width: 352px;
        top: 138px;
    }
}

@media (max-width: 1024px) {
    .wgm-account-layout {
        grid-template-columns: 240px 1fr;
        gap: 48px;
    }
    
    .wgm-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wgm-order-item {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .wgm-order-item__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .wgm-myaccount-page {
        height: auto;
        min-height: auto;
    }
    
    .wgm-myaccount-page__image {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: 400px;
        order: 1;
    }
    
    .wgm-myaccount-page__form {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 100%;
        padding: 40px 20px;
        order: 2;
    }
    
    .wgm-lost-password__message,
    .wgm-reset-password__message {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .wgm-myaccount-form__row {
        flex-direction: column;
        gap: 12px;
    }
    
    .wgm-myaccount-form__field--half {
        width: 100%;
    }
    
    .wgm-my-account {
        padding: 40px 24px;
    }
    
    .wgm-account-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .wgm-account-nav {
        order: 2;
    }
    
    .wgm-account-content {
        order: 1;
    }
    
    .wgm-account-nav__list {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
    }
    
    .wgm-account-nav__item {
        flex-shrink: 0;
    }
    
    .wgm-account-nav__link {
        white-space: nowrap;
    }
    
    .wgm-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .wgm-orders-table-wrap {
        overflow-x: auto;
    }
    
    .wgm-orders-table {
        min-width: 600px;
    }
    
    .wgm-order-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .wgm-order-item__actions {
        grid-column: 1;
    }
}

/* ==========================================================================
   Order Details Page
   ========================================================================== */

.wgm-order-details {
    width: 100%;
    max-width: 100%;
}

.wgm-order-details p {
    margin-bottom: 24px;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    color: #374151;
    line-height: 1.6;
}

.wgm-order-details mark {
    background: transparent;
    color: inherit;
    font-weight: 600;
}

.wgm-order-details .order-number {
    color: #12679C;
}

.wgm-order-details .order-date {
    color: #6B7280;
}

.wgm-order-details .order-status {
    color: #059669;
    text-transform: capitalize;
}

.wgm-order-details h2 {
    font-size: 24px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 500;
    color: #111827;
    margin: 32px 0 16px 0;
}

.wgm-order-details .woocommerce-OrderUpdates {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wgm-order-details .woocommerce-OrderUpdate {
    margin-bottom: 24px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 8px;
    border-left: 3px solid #12679C;
}

.wgm-order-details .woocommerce-OrderUpdate-meta {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 8px;
    font-family: 'General Sans', sans-serif;
}

.wgm-order-details .woocommerce-OrderUpdate-description {
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
    font-family: 'General Sans', sans-serif;
}

.wgm-order-details .woocommerce-OrderUpdate-description p {
    margin-bottom: 0;
}

/* ==========================================================================
   Dashboard redesign – flex only (no position). Responsive.
   ========================================================================== */

.wgm-dashboard-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.wgm-dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
}

.wgm-dashboard-nav {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    outline: 1px solid #D9D9D9;
    outline-offset: 0;
}

.wgm-dashboard-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 70px 90px 48px;
    background: #F8F8F8;
    font-family: var(--font-body);
}

/* Horizontal tabs – Figma: 64px bar, white, shadow, 90px left, gap 24px, active underline #0A4280 4px */
.wgm-dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0 0 0 90px;
    min-height: 64px;
    background: #fff;
}

.wgm-dashboard-tabs__item {
    margin: 0;
    padding: 0;
}

.wgm-dashboard-tabs__link {
    display: block;
    padding: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    border-bottom: 4px solid transparent;
    margin-bottom: -4px;
    transition: color 0.2s, border-color 0.2s;
}

.wgm-dashboard-tabs__link:hover {
    color: #0A4280;
}

.wgm-dashboard-tabs__link--active {
    color: #000;
    border-bottom-color: #0A4280;
}

/* Account tab – Row 1: Full Name 50% | Email 50%. Row 2: Addresses 50%. */
.wgm-account-tab {
    width: 100%;
    max-width: 100%;
}

.wgm-account-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.wgm-account-card--half {
    min-width: 0;
}

/* Row 2: address card takes first column only (50% width) */
.wgm-account-cards .wgm-account-card:nth-child(3) {
    grid-column: 1;
}

@media (max-width: 640px) {
    .wgm-account-cards {
        grid-template-columns: 1fr;
    }
    .wgm-account-cards .wgm-account-card:nth-child(3) {
        grid-column: 1;
    }
}

.wgm-account-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 24px;
    margin: 0;
    background: #fff;
    border-radius: 16px;
    outline: 1px solid #D9D9D9;
    outline-offset: -1px;
    font-family: var(--font-body);
}

.wgm-account-card__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
    min-width: 0;
}

.wgm-account-card__label {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: #8B8B8B;
    margin: 0;
}

.wgm-account-card__value {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

.wgm-account-card__action {
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.wgm-account-card__action:hover {
    color: #0A4280;
    text-decoration: underline;
}

/* Account drawer overlay – same pattern as wgm-cart-drawer + wgm-overlay */
.wgm-account-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wgm-account-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Account drawer – fixed right slide-in like wgm-cart-drawer */
.wgm-account-drawer {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.wgm-account-drawer.active {
    right: 0 !important;
}

/* Drawer panel content – inside fixed .wgm-account-drawer */
.wgm-account-drawer > .wgm-drawer {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: var(--font-body);
}

.wgm-account-drawer > .wgm-drawer[hidden] {
    display: none !important;
}

.wgm-account-drawer > .wgm-drawer:not([hidden]) {
    display: flex !important;
}

.wgm-drawer {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: var(--font-body);
}

.wgm-account-drawer .wgm-drawer__panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow-y: auto;
}

.wgm-drawer__panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0;
    margin: 0;
}

/* Figma: header padding 32px 16px 20px, box-shadow 0px -1px 4px rgba(112,112,112,0.24), title 28px ITC Clearface 550 */
.wgm-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 32px 16px 20px;
    background: #fff;
    box-shadow: 0 -1px 4px rgba(112, 112, 112, 0.24);
}

.wgm-drawer__title {
    margin: 0;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 550;
    line-height: 42px;
    color: #000;
}

.wgm-drawer__close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wgm-drawer__close:hover {
    color: #111827;
}

.wgm-drawer__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
    padding: 20px 16px;
}
.wgm-drawer__form1 {
    justify-content: flex-start;
}

.wgm-drawer__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0 0 24px;
}

.wgm-drawer__field label {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 550;
    line-height: 24px;
    color: #000;
    margin: 0;
}

/* Figma: input height 52px, padding 13.34px, border-radius 6.67px, outline 0.67px black */
.wgm-drawer__field input[type="text"],
.wgm-drawer__field input[type="password"],
.wgm-drawer__field input[type="email"] {
    width: 100%;
    height: 52px;
    padding: 8px 13px;
    margin: 0;
    border: none;
    border-radius: 6.67px;
    outline: 1px solid #000;
    outline-offset: -1px;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 14.4px;
    color: #000;
    box-sizing: border-box;
}

.wgm-drawer__field input[type="text"]{
    width: 100%;
    height: 52px;
    padding: 17px 13px!important;
    margin: 0;
    border: none;
    border-radius: 6.67px;
    outline: 1px solid #000;
    outline-offset: -1px;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 14.4px;
    color: #000;
    box-sizing: border-box;
}

.wgm-rewards-card--redeem .wgm-redeem-form__row{
	background:white;

}


.wgm-drawer__row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
}

.wgm-drawer__row input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 8px 13px;
    border-radius: 6.67px;
    outline: 1px solid #000;
    outline-offset: -1px;
    font-size: 12px;
}

.wgm-password-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.wgm-password-wrap input {
    flex: 1;
    min-width: 0;
}

.wgm-password-toggle {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 14px;
    color: #12679C;
    background: none;
    border: 1px solid #12679C;
    border-radius: 6px;
    cursor: pointer;
}

/* Figma: address drawer tabs – Billing / Shipping, 4px #0A4280 active */
.wgm-drawer__tabs {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0 0 0 16px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-left: 1px solid #D9D9D9;
    border-right: 1px solid #D9D9D9;
    border-bottom: 1px solid #D9D9D9;
}

.wgm-drawer-tab {
    padding: 10px 10px 14px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: #75797D;
    background: none;
    border: none;
    border-bottom: 4px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
}

.wgm-drawer-tab--active {
    color: #000;
    border-bottom-color: #0A4280;
}

.wgm-address-form--hidden {
    display: none;
}

.wgm-drawer__fields .form-row {
    margin: 0 0 16px;
}

.wgm-drawer__fields .form-row input[type="text"],
.wgm-drawer__fields .form-row input[type="email"],
.wgm-drawer__fields .form-row select {
    width: 100%;
    height: 46px;
    padding: 8px 13px;
    margin: 0;
    border: none;
    border-radius: 6.67px;
    outline: 1px solid #000;
    outline-offset: -1px;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 14.4px;
    color: #000;
    box-sizing: border-box;
}
/* ===============================
   Address fields – EXACT box layout (FORCED)
   =============================== */

/* Wrapper */
.wgm-drawer__fields {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

/* Default half width boxes */
.wgm-drawer__fields .form-row {
    width: calc(50% - 8px) !important;
    margin: 0 !important;
}

/* Full width boxes (Address lines) – ensure visible in account drawer */
#billing_address_1_field,
#billing_address_2_field,
#shipping_address_1_field,
#shipping_address_2_field {
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
}

.wgm-account-drawer .wgm-drawer__fields #billing_address_1_field,
.wgm-account-drawer .wgm-drawer__fields #billing_address_2_field,
.wgm-account-drawer .wgm-drawer__fields #shipping_address_1_field,
.wgm-account-drawer .wgm-drawer__fields #shipping_address_2_field {
    display: block !important;
    visibility: visible !important;
}

/* Inputs & selects – box look */
.wgm-drawer__fields input,
.wgm-drawer__fields select {
    width: 100% !important;
    height: 52px !important;
    padding: 14px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #000 !important;
    background: #fff !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
}

/* Labels */
.wgm-drawer__fields label {
    font-size: 12px !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* Mobile – single column */
@media (max-width: 640px) {
    .wgm-drawer__fields .form-row {
        width: 100% !important;
    }
}


.wgm-drawer__fields .form-row label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: #000;
    margin: 0 0 8px;
}

/* Figma: footer padding 24px 20px, Cancel outline #12679C, Save bg #12679C, font 20px, padding 12px 20px, border-radius 10px. Same placement as cart drawer – at bottom, sticky on mobile so not cut off. */
.wgm-drawer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    margin-top: auto;
    padding: 24px 16px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #E6E9E7;
    position: sticky;
    bottom: 0;
    z-index: 1;
}
.wgm-drawer__actions1 {
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 1;
}


.wgm-drawer .wgm-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    border-radius: 10px;
    cursor: pointer;
}

.wgm-drawer .wgm-btn--outline {
    background: #fff;
    color: #12679C;
    outline: 1px solid #12679C;
    outline-offset: -1px;
    border: none;
}

.wgm-drawer .wgm-btn--primary {
    background: #12679C;
    color: #fff;
    border: none;
}

.wgm-drawer-form-message-zone {
    flex-shrink: 0;
    margin: 0 0 8px;
    min-height: 0;
}
.wgm-drawer-form-message {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4;
}

.wgm-drawer-form-message--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #86efac;
}

.wgm-drawer-form-message--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 768px) {
    .wgm-account-drawer {
        width: 100%;
        right: -100%;
    }
    .wgm-account-drawer.active {
        right: 0 !important;
    }
    .wgm-drawer__actions,
    .wgm-drawer__actions1 {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
}

/* Orders tab – Figma: white cards, shadow, theme fonts */
.wgm-orders-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
}

.wgm-orders-page__title {
    margin: 0 0 24px;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.wgm-orders-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.wgm-order-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    outline: 1px solid #D9D9D9;
    outline-offset: 0;
    overflow: hidden;
    font-family: var(--font-body);
}

.wgm-order-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 16px 24px;
    background: #fff;
}

.wgm-order-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.wgm-order-card__number {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: #75797D;
    margin: 0;
}

.wgm-order-card__date {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

.wgm-order-card__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    font-size: 16px;
    flex-shrink: 0;
}

.wgm-order-card__chevron {
    display: block;
    transition: transform 0.2s;
}

.wgm-order-card.wgm-order-card--open .wgm-order-card__chevron {
    transform: rotate(180deg);
}

.wgm-order-card__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 24px;
    background: #fff;
    border-top: 1px solid #E5E7EB;
}

.wgm-order-card__body[hidden] {
    display: none !important;
}

.wgm-order-card__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wgm-order-card__item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.wgm-order-card__item-image {
    flex-shrink: 0;
    width: 79px;
    height: 79px;
    overflow: hidden;
    border-radius: 4px;
    background: #E5E7EB;
}

.wgm-order-card__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wgm-order-card__item-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #D1D5DB;
}

.wgm-order-card__item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.wgm-order-card__item-name {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

.wgm-order-card__item-qty {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: #75797D;
    margin: 0;
}

.wgm-order-card__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.wgm-order-card__total-label {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

.wgm-order-card__total {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

.wgm-order-card__view {
    align-self: flex-end;
    margin-top: 8px;
}

.wgm-orders-pagination {
    margin: 32px 0 0;
    padding: 0;
}

.wgm-orders-pagination__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
}

/* Orders empty state – Figma: centered, image 180x180, title 34px, text 18px, button */
.wgm-orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 54px;
    margin: 48px auto 64px;
    padding: 48px 24px;
    text-align: center;
    max-width: 470px;
}

.wgm-orders-empty__media {
    margin: 0;
    padding: 0;
}

.wgm-orders-empty__img {
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    object-fit: contain;
}

.wgm-orders-empty__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.wgm-orders-empty__title {
    margin: 0;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 550;
    line-height: 1.2;
    color: #000;
}

.wgm-orders-empty__text {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: #000;
    line-height: 1.4;
}

.wgm-orders-empty__btn {
    margin: 0;
    padding: 8px 13px;
    min-height: 42px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    background: #12679C;
    color: #fff;
    border-radius: 6.67px;
    outline: 1px solid #fff;
    outline-offset: -1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.wgm-orders-empty__btn:hover {
    background: #0d4a73;
    color: #fff;
}

/* Rewards tab – Figma: Share WGM & Earn left (34px title, 18px text, link + Copy Link #0A4280, social 32px), points + code cards right */
.wgm-rewards-tab {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
}

.wgm-rewards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
    margin: 0 0 32px;
    padding: 0;
    align-items: flex-start;
    justify-content:center !important;
  
}

.wgm-rewards-share {
    flex: 1 1 0;
    min-width: 280px;
    max-width: 516px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wgm-rewards-share__intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 0;
    padding: 0 0 32px;
}

.wgm-rewards-share__title {
    margin: 0;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 550;
    line-height: 1.2;
    color: #000;
}

.wgm-rewards-share__text {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: #000;
    line-height: 1.5;
}

.wgm-rewards-share__link-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    outline: 1px solid #D9D9D9;
    outline-offset: -1px;
}

.wgm-rewards-share__input {
    flex: 1 1 0;
    min-width: 0;
    height: 44px;
    padding: 8px 13px;
    margin: 0;
    border: none;
    background: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 14.4px;
    color: #000;
}

.wgm-rewards-share__copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 8px 13px;
    margin: 0;
    background: #0A4280;
    color: #fff;
    border: none;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 14.4px;
    cursor: pointer;
    flex-shrink: 0;
}

.wgm-rewards-share__copy-btn:hover {
    background: #083366;
    color: #fff;
}

.wgm-rewards-share__copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wgm-rewards-share__copy-icon .wgm-icon {
    color: #fff;
}

.wgm-rewards-share__social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.wgm-rewards-share__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: #0A4280;
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    flex-shrink: 0;
}

.wgm-rewards-share__social-btn:hover {
    background: #083366;
    color: #fff;
}

.wgm-rewards-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 1 479px;
    min-width: 280px;
}

.wgm-rewards-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 24px 20px;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    outline: 1px solid #D9D9D9;
    outline-offset: -1px;
    font-family: var(--font-body);
}

.wgm-rewards-card--points {
    padding-top: 24px;
    padding-bottom: 12px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wgm-rewards-card--points .wgm-rewards-card__label {
    text-align: center;
}

.wgm-rewards-card--points .wgm-rewards-card__value {
    text-align: center;
    font-size: 60px;
    font-weight: 550;
    line-height: 72px;
    color: #000;
}

.wgm-rewards-card__label {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    color: #000;
    margin: 0;
}

.wgm-rewards-card__label--title {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
}

.wgm-rewards-card__value {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 550;
    line-height: 72px;
    color: #000;
    margin: 0;
}

.wgm-rewards-card--code .wgm-rewards-card__code-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.wgm-rewards-card--code .wgm-rewards-card__code-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 0;
    min-width: 0;
}

.wgm-rewards-card__code-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex-shrink: 0;
}

.wgm-rewards-card__copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #0A4280;
}

.wgm-rewards-card__copy-icon:hover {
    color: #083366;
}

.wgm-rewards-card__copy-icon .wgm-icon {
    color: currentColor;
}

.wgm-rewards-card__code {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: #0A4280;
    margin: 0;
}

.wgm-rewards-card__hint {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    color: #000;
    margin: 0;
    padding: 0;
}

/* Redeem Points card – same card design as Total points / Referral code */
.wgm-rewards-card--redeem {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 24px 20px;
}

.wgm-rewards-card--redeem .wgm-rewards-card__label--title {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: #000;
}

.wgm-rewards-card--redeem .wgm-rewards-card__hint {
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    color: #000;
}

.wgm-rewards-card--redeem .wgm-redeem-form {
    margin: 0;
    padding: 0;
}

.wgm-rewards-card--redeem .wgm-redeem-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: white;
    margin: 0;
}

.wgm-rewards-card--redeem .wgm-redeem-form__label {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wgm-rewards-card--redeem .wgm-redeem-form__input {
    margin: 0;
    padding: 8px 13px;
    height: 44px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    color: #000;
    min-width: 100px;
}

.wgm-rewards-card--redeem .wgm-redeem-form__submit {
    padding: 8px 13px;
    min-height: 44px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    background: #0A4280;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.wgm-rewards-card--redeem .wgm-redeem-form__submit:hover {
    background: #083366;
    color: #fff;
}

@media (max-width: 1024px) {
    .wgm-rewards-grid {
        gap: 40px;
    }
    .wgm-rewards-share__title {
        font-size: 28px;
    }
    .wgm-rewards-card--points .wgm-rewards-card__value {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .wgm-rewards-grid {
        gap: 32px;
        flex-direction: column;
    }
    /* Total points card first on mobile: cards container becomes transparent for layout */
    .wgm-rewards-cards {
        display: contents;
    }
    .wgm-rewards-card--points {
        order: -1;
    }
    .wgm-rewards-share {
        max-width: none;
        order: 0;
    }
    .wgm-rewards-card--code {
        order: 1;
    }
    .wgm-rewards-card--redeem {
        order: 2;
    }
    .wgm-rewards-share__link-wrap {
        flex-direction: column;
        border-radius: 8px;
    }
    .wgm-rewards-share__input {
        height: 44px;
        border-radius: 8px 8px 0 0;
    }
    .wgm-rewards-share__copy-btn {
        width: 100%;
        border-radius: 0 0 8px 8px;
    }
    .wgm-rewards-card--points .wgm-rewards-card__value {
        font-size: 44px;
    }
    .wgm-rewards-card--code .wgm-rewards-card__code-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive – dashboard & orders */
@media (max-width: 1024px) {
    .wgm-dashboard-tabs {
        padding-left: 24px;
    }
    .wgm-dashboard-main {
        padding: 40px 24px 32px;
    }
}

@media (max-width: 640px) {
    .wgm-dashboard-tabs {
        padding-left: 16px;
        gap: 16px;
    }
    .wgm-dashboard-tabs__link {
        padding: 10px 8px;
        font-size: 14px;
    }
    .wgm-dashboard-main {
        padding: 24px 16px 32px;
    }
    .wgm-account-card {
        padding: 16px 20px;
        gap: 24px;
    }
    .wgm-account-card__content {
        gap: 24px;
    }
    .wgm-order-card__header {
        padding: 12px 16px;
    }
    .wgm-order-card__number,
    .wgm-order-card__date {
        font-size: 16px;
    }
    .wgm-order-card__body {
        padding: 16px;
    }
    .wgm-order-card__item-image {
        width: 60px;
        height: 60px;
    }
    .wgm-order-card__item-name {
        font-size: 16px;
    }
    .wgm-order-card__item-qty {
        font-size: 14px;
    }
    .wgm-order-card__total {
        font-size: 20px;
    }
    .wgm-orders-empty {
        gap: 40px;
        margin: 32px auto 48px;
        padding: 32px 16px;
    }
    .wgm-orders-empty__img {
        width: 140px;
        height: 140px;
    }
    .wgm-orders-empty__title {
        font-size: 26px;
    }
    .wgm-orders-empty__text {
        font-size: 16px;
    }
    .wgm-drawer__panel {
        padding: 0;
    }
}
.wgm-account-card__content p {

    margin-top:-16px;
}
/* =========================================================
   LOGGED-IN MY ACCOUNT — STICK FOOTER TO BOTTOM
   ========================================================= */

body.logged-in.woocommerce-account {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

body.logged-in.woocommerce-account > main#primary.wgm-main {
    flex: 1 0 auto;
    width: 100%;
    min-height: 0;
    background: #f8f8f8;
}

body.logged-in.woocommerce-account > footer.wgm-footer-new {
    flex: 0 0 auto;
}