/**
 * WooCommerce My Account Dashboard & Address Redesign Styles
 * Theme: Formula Premium
 */

/* WooCommerce My Account Dashboard Layout */
.woocommerce-account.logged-in .woocommerce {
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 60px 15px;
}

.woocommerce-MyAccount-navigation {
    width: 28%;
    min-width: 250px;
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.3s ease;
}

.woocommerce-MyAccount-navigation:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 8px;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    margin-bottom: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 20px;
    border-radius: 10px;
    color: #4b5563;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #f9fafb;
    color: #6366f1;
    transform: translateX(4px);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #eef2ff;
    color: #4f46e5;
}

.woocommerce-MyAccount-content {
    width: 72%;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    color: #374151;
    line-height: 1.6;
}

.woocommerce-MyAccount-content:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3,
.woocommerce-address-fields > h3 {
    color: #0f172a;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 24px;
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.woocommerce-MyAccount-content p {
    margin-bottom: 16px;
}

.woocommerce-MyAccount-content a:not(.button) {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.woocommerce-MyAccount-content a:not(.button):hover {
    text-decoration: underline;
    color: #4338ca;
}

.woocommerce-MyAccount-content fieldset {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 24px;
}

.woocommerce-MyAccount-content legend {
    font-weight: 700;
    color: #0f172a;
    padding: 0 10px;
}

/* Premium Form Input Design System (Text, Tel, Email, Password) */
.woocommerce-account .woocommerce-address-fields input[type="text"],
.woocommerce-account .woocommerce-address-fields input[type="email"],
.woocommerce-account .woocommerce-address-fields input[type="tel"],
.woocommerce-account .woocommerce-address-fields input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01);
}

.woocommerce-account .woocommerce-address-fields input:hover,
.woocommerce-account .woocommerce-MyAccount-content input:hover {
    border-color: #94a3b8;
}

.woocommerce-account .woocommerce-address-fields input:focus,
.woocommerce-account .woocommerce-MyAccount-content input:focus {
    border-color: var(--thm-primary);
    box-shadow: 0 0 0 4px rgba(123, 64, 192, 0.12);
    background-color: #ffffff;
}

/* 2-Column Grid Layout for Address Form Fields */
.woocommerce-address-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

.woocommerce-address-fields__field-wrapper .form-row {
    width: 100%;
    float: none;
    clear: none;
    margin-bottom: 22px;
}

.woocommerce-address-fields__field-wrapper #billing_first_name_field,
.woocommerce-address-fields__field-wrapper #shipping_first_name_field,
.woocommerce-address-fields__field-wrapper #billing_last_name_field,
.woocommerce-address-fields__field-wrapper #shipping_last_name_field,
.woocommerce-address-fields__field-wrapper #billing_city_field,
.woocommerce-address-fields__field-wrapper #shipping_city_field,
.woocommerce-address-fields__field-wrapper #billing_state_field,
.woocommerce-address-fields__field-wrapper #shipping_state_field,
.woocommerce-address-fields__field-wrapper #billing_postcode_field,
.woocommerce-address-fields__field-wrapper #shipping_postcode_field,
.woocommerce-address-fields__field-wrapper #billing_phone_field,
.woocommerce-address-fields__field-wrapper #billing_email_field {
    width: calc(50% - 10px);
}

/* Premium Select Dropdowns & Select2 System (My Account) */
.woocommerce-MyAccount-content select,
.woocommerce-address-fields select,
select.country_to_state,
select.state_select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #0f172a;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    line-height: 46px;
    transition: all 0.2s ease-in-out;
    outline: none;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
}

.woocommerce-MyAccount-content select:hover,
.woocommerce-address-fields select:hover {
    border-color: #94a3b8;
}

.woocommerce-MyAccount-content select:focus,
.woocommerce-address-fields select:focus {
    border-color: var(--thm-primary);
    box-shadow: 0 0 0 4px rgba(123, 64, 192, 0.12);
}

/* Select2 Component System (Requires !important for JS inline override) */
.select2-container {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single {
    height: 48px !important;
    padding: 0 14px !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 46px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 0 !important;
    padding-right: 24px !important;
}

.select2-selection__placeholder,
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
    line-height: 46px !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    position: absolute !important;
    top: 0 !important;
    right: 12px !important;
    width: 20px !important;
}

.select2-container--open .select2-selection--single {
    border-color: var(--thm-primary) !important;
    box-shadow: 0 0 0 4px rgba(123, 64, 192, 0.12) !important;
}

.select2-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
}

.select2-results__option {
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #334155 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: var(--thm-primary) !important;
    color: #ffffff !important;
}

.select2-search--dropdown {
    padding: 10px !important;
}

.select2-search--dropdown .select2-search__field,
.select2-container .select2-search__field,
input.select2-search__field {
    height: 38px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Address Form Labels & Required Mark */
.woocommerce-address-fields label,
.woocommerce-MyAccount-content label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.woocommerce-address-fields label abbr.required,
.woocommerce-MyAccount-content label abbr.required {
    color: #ef4444;
    text-decoration: none;
    font-weight: 700;
    margin-left: 3px;
}

/* Addresses Overview Screen (Billing & Shipping Cards) */
.woocommerce-Addresses,
.u-columns.addresses {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.woocommerce-Addresses .u-column1,
.woocommerce-Addresses .u-column2,
.u-column1.col-1.woocommerce-Address,
.u-column2.col-2.woocommerce-Address {
    flex: 1 1 0%;
    width: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.woocommerce-Address:hover {
    border-color: var(--thm-primary);
    box-shadow: 0 10px 30px rgba(123, 64, 192, 0.08);
    transform: translateY(-2px);
}

.woocommerce-Address header.title,
.woocommerce-Address header,
.woocommerce-Addresses header,
.woocommerce-Address-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 14px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
}

.woocommerce-Address header.title h3,
.woocommerce-Address h3,
.woocommerce-Addresses h3,
.woocommerce-Address-title h3,
.woocommerce-Address header h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
    border-bottom: none !important;
    display: inline-block !important;
    width: auto !important;
    float: none !important;
}

.woocommerce-Address header.title a.edit,
.woocommerce-Address a.edit,
.woocommerce-Address a.button,
.woocommerce-Addresses a.edit,
.woocommerce-Addresses a.button,
.woocommerce-Address-title a.edit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
    border-radius: 8px !important;
    background-color: #f1f5f9 !important;
    color: var(--thm-primary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    float: none !important;
    box-shadow: none !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.woocommerce-Address header.title a.edit:hover,
.woocommerce-Address a.edit:hover,
.woocommerce-Addresses a.edit:hover {
    background-color: var(--thm-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(123, 64, 192, 0.25) !important;
}

.woocommerce-Address address {
    font-style: normal;
    color: #475569;
    line-height: 1.7;
    font-size: 14px;
}

/* Premium My Account Form Submit Buttons */
.woocommerce-MyAccount-content form button[type="submit"],
.woocommerce-MyAccount-content form input[type="submit"],
.woocommerce-EditAccountForm button[type="submit"],
.woocommerce-address-fields button[type="submit"],
button[name="save_address"],
button[name="save_account_details"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 46px !important;
    padding: 0 28px !important;
    margin-top: 24px !important;
    border-radius: 10px !important;
    background-color: var(--thm-primary) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    letter-spacing: 0.3px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(123, 64, 192, 0.25) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.woocommerce-MyAccount-content form button[type="submit"]:hover,
.woocommerce-MyAccount-content form input[type="submit"]:hover,
.woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-address-fields button[type="submit"]:hover,
button[name="save_address"]:hover,
button[name="save_account_details"]:hover {
    background-color: var(--thm-primary) !important;
    opacity: 0.92 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(123, 64, 192, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* Order Table Action Buttons (View, Pay, Cancel) */
.woocommerce-orders-table .button,
.woocommerce-orders-table a.button,
.woocommerce-MyAccount-content table .button,
td.woocommerce-orders-table__cell-order-actions .button,
a.woocommerce-button.button.view {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 6px !important;
    background-color: var(--thm-primary) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    letter-spacing: 0.2px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(123, 64, 192, 0.2) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    vertical-align: middle !important;
}

.woocommerce-orders-table .button:hover,
a.woocommerce-button.button.view:hover {
    background-color: var(--thm-primary) !important;
    opacity: 0.92 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(123, 64, 192, 0.3) !important;
    transform: translateY(-1px) !important;
}
    box-shadow: 0 4px 12px rgba(123, 64, 192, 0.3);
    transform: translateY(-1px);
}

/* Dedicated WooCommerce Show/Hide Password Eye Toggle Styling */
.password-input,
span.password-input {
    position: relative;
    display: block;
    width: 100%;
}

.password-input input[type="password"],
.password-input input[type="text"] {
    padding-right: 46px;
}

.show-password-input,
span.show-password-input,
button.show-password-input,
.woocommerce-form-row .show-password-input {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    border-radius: 0 !important;
}

.show-password-input::after,
span.show-password-input::after {
    color: #64748b;
}

.show-password-input:hover,
span.show-password-input:hover,
button.show-password-input:hover {
    color: var(--thm-primary);
    background: transparent;
    background-color: transparent;
    box-shadow: none;
    transform: translateY(-50%);
}

/* Premium WooCommerce Password Strength Meter Styling */
.woocommerce-password-strength,
.password-strength-meter {
    padding: 10px 16px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.woocommerce-password-strength.short,
.woocommerce-password-strength.bad {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.woocommerce-password-strength.good {
    background-color: #fefce8;
    border: 1px solid #fef08a;
    color: #854d0e;
}

.woocommerce-password-strength.strong {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.woocommerce-password-hint {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.5;
}

/* Table Styling for My Account */
.woocommerce-MyAccount-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content table th {
    background: #f9fafb;
    padding: 16px;
    font-weight: 600;
    color: #374151;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-MyAccount-content table td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.woocommerce-MyAccount-content table tr:last-child td {
    border-bottom: none;
}

/* Premium Theme Redesign for My Account Orders Table */
.woocommerce-orders-table,
table.account-orders-table,
table.my_account_orders,
.woocommerce-MyAccount-orders,
table.woocommerce-orders-table.shop_table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    margin-top: 10px !important;
    margin-bottom: 30px !important;
}

/* Header Row */
.woocommerce-orders-table thead th,
table.account-orders-table thead th,
table.my_account_orders thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    vertical-align: middle !important;
}

.woocommerce-orders-table thead th.woocommerce-orders-table__header-order-actions,
table.account-orders-table thead th.woocommerce-orders-table__header-order-actions,
table.my_account_orders thead th:last-child {
    text-align: right !important;
    padding-right: 24px !important;
}

/* Table Body Rows & Cells */
.woocommerce-orders-table tbody td,
table.account-orders-table tbody td,
table.my_account_orders tbody td {
    padding: 18px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    color: #334155 !important;
    font-size: 14px !important;
}

.woocommerce-orders-table tbody tr:last-child td,
table.account-orders-table tbody tr:last-child td,
table.my_account_orders tbody tr:last-child td {
    border-bottom: none !important;
}

.woocommerce-orders-table tbody tr:hover td,
table.account-orders-table tbody tr:hover td,
table.my_account_orders tbody tr:hover td {
    background-color: #f8fafc !important;
}

/* Order Number Link Badge (#1894) */
.woocommerce-orders-table__cell-order-number a,
td.woocommerce-orders-table__cell-order-number a,
td.order-number a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    background-color: #f5f3ff !important;
    color: var(--thm-primary) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.woocommerce-orders-table__cell-order-number a:hover,
td.order-number a:hover {
    background-color: var(--thm-primary) !important;
    color: #ffffff !important;
}

/* Order Date & Total Formatting */
.woocommerce-orders-table__cell-order-date,
td.woocommerce-orders-table__cell-order-date,
td.order-date {
    color: #475569 !important;
    font-weight: 500 !important;
}

.woocommerce-orders-table__cell-order-total,
td.woocommerce-orders-table__cell-order-total,
td.order-total {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Status Column */
.woocommerce-orders-table__cell-order-status,
td.woocommerce-orders-table__cell-order-status,
td.order-status {
    text-transform: capitalize !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

/* Order Action Button Alignment */
.woocommerce-orders-table__cell-order-actions,
td.woocommerce-orders-table__cell-order-actions,
td.order-actions {
    text-align: right !important;
    padding-right: 20px !important;
}

/* Premium Order Details & Customer Details Overhaul */
.woocommerce-order-details,
.woocommerce-customer-details {
    margin-top: 30px;
}

.woocommerce-order-details__title,
.woocommerce-customer-details h2,
.woocommerce-column__title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    margin-top: 0;
}

/* Order Details Table Styling */
.woocommerce-table--order-details,
.shop_table.order_details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

.woocommerce-table--order-details thead th,
.shop_table.order_details thead th {
    background-color: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.woocommerce-table--order-details thead th:last-child,
.shop_table.order_details thead th:last-child,
.woocommerce-table--order-details thead th.woocommerce-table__product-table-other-than-name,
.shop_table.order_details thead th.woocommerce-table__product-table-other-than-name {
    text-align: right;
}

.woocommerce-table--order-details td,
.shop_table.order_details td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Product Name Link & Details */
.woocommerce-table__product-name a,
td.woocommerce-table__product-name a {
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-table__product-name a:hover {
    color: var(--thm-primary);
}

.woocommerce-table__product-name .product-quantity {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-left: 4px;
}

/* Product Total Column */
.woocommerce-table__product-total,
td.woocommerce-table__product-total {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}

/* Order Footer Summary (Subtotal, Discount, Total, Payment Method) */
.woocommerce-table--order-details tfoot th,
.shop_table.order_details tfoot th {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-transform: capitalize;
    letter-spacing: 0;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
}

.woocommerce-table--order-details tfoot td,
.shop_table.order_details tfoot td {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
}

.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td,
.shop_table.order_details tfoot tr:last-child th,
.shop_table.order_details tfoot tr:last-child td {
    border-bottom: none;
}

/* Highlighted Total Row */
.woocommerce-table--order-details tfoot tr.order-total th,
.woocommerce-table--order-details tfoot tr.order-total td {
    background-color: #f8fafc;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--thm-primary);
}

/* Customer Details Cards (Billing & Shipping Addresses in View Order) */
.woocommerce-customer-details,
section.woocommerce-customer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
}

.woocommerce-customer-details .woocommerce-columns,
.woocommerce-customer-details .col2-set {
    display: flex;
    width: 100%;
    gap: 24px;
}

.woocommerce-customer-details .woocommerce-column,
.woocommerce-customer-details .col-1,
.woocommerce-customer-details .col-2 {
    flex: 1 1 0%;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.woocommerce-customer-details address {
    font-style: normal;
    color: #475569;
    line-height: 1.7;
    font-size: 14px;
    margin: 0;
}

.woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-customer-details .woocommerce-customer-details--email {
    display: block;
    margin-top: 10px;
    color: #0f172a;
    font-weight: 500;
}

/* Responsive Dashboard Layout */
@media (max-width: 991px) {
    .woocommerce-account.logged-in .woocommerce {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce-MyAccount-navigation {
        width: 100%;
        margin-bottom: 30px;
    }

    .woocommerce-MyAccount-content {
        width: 100%;
        padding: 30px 20px;
    }

    .woocommerce-Addresses,
    .u-columns.addresses {
        flex-direction: column;
    }

    .woocommerce-Addresses .u-column1,
    .woocommerce-Addresses .u-column2 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .woocommerce-address-fields__field-wrapper #billing_first_name_field,
    .woocommerce-address-fields__field-wrapper #shipping_first_name_field,
    .woocommerce-address-fields__field-wrapper #billing_last_name_field,
    .woocommerce-address-fields__field-wrapper #shipping_last_name_field,
    .woocommerce-address-fields__field-wrapper #billing_city_field,
    .woocommerce-address-fields__field-wrapper #shipping_city_field,
    .woocommerce-address-fields__field-wrapper #billing_state_field,
    .woocommerce-address-fields__field-wrapper #shipping_state_field,
    .woocommerce-address-fields__field-wrapper #billing_postcode_field,
    .woocommerce-address-fields__field-wrapper #shipping_postcode_field,
    .woocommerce-address-fields__field-wrapper #billing_phone_field,
    .woocommerce-address-fields__field-wrapper #billing_email_field {
        width: 100%;
    }
}