/* ==========================================================
   TABLE OF CONTENTS
   ==========================================================
   1. My Account Container & Navigation
   2. My Account Content Container
   3. Orders Table (Global & Shared)
   4. Single Order Details Page
   5. Purchase History Custom Cards
   6. View Order Details Header
   7. Customer Details & Address Boxes
   8. Form Styles (Edit Account, Address)
   9. Buttons & Interactive Elements
   10. Subscriptions Table Styles
   11. Mobile Responsiveness
   ========================================================== */

/* ==========================================================
   1. MY ACCOUNT CONTAINER & NAVIGATION
   ========================================================== */

/* Container Background */
.woocommerce-account {
    background: #f9f9f9;
}

/* Navigation Panel */
.woocommerce-MyAccount-navigation {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px 0;
}

.woocommerce-MyAccount-navigation ul {
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation br {
    display: none;
}

/* Navigation List Items */
.woocommerce-MyAccount-navigation li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    align-self: stretch;
}

.woocommerce-MyAccount-navigation li.is-active {
    background: #ffefef;
}

/* Navigation Links */
.woocommerce-MyAccount-navigation-link a {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 0 0;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    line-height: 28px;
    letter-spacing: 0;
    text-transform: capitalize;
}

.woocommerce-MyAccount-navigation-link a span {
    color: #231f20;
}

/* Navigation Icons */
.woocommerce-MyAccount-navigation svg {
    width: 20px;
    height: 20px;
}

.wcb-account-nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Custom Navigation Icons (Pseudo-elements) */
.woocommerce-MyAccount-navigation-link--edit-account a::before,
.woocommerce-MyAccount-navigation-link--purchase-history a::before,
.woocommerce-MyAccount-navigation-link--edit-address a::before,
.woocommerce-MyAccount-navigation-link--orders a::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 12px;
    flex-shrink: 0;
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
    background-image: url("https://designertiesbraces.com/wp-content/uploads/2026/04/security-icon.svg");
}

.woocommerce-MyAccount-navigation-link--purchase-history a::before {
    background-image: url("https://designertiesbraces.com/wp-content/uploads/2026/04/purchase-icon.svg");
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
    background-image: url("https://designertiesbraces.com/wp-content/uploads/2026/04/profile-icon.svg");
}

.woocommerce-MyAccount-navigation-link--orders a::before {
    background-image: url("https://designertiesbraces.com/wp-content/uploads/2026/04/orders-icon.svg");
}

/* Hidden Navigation Items (Commented Out) */
/* .woocommerce-MyAccount-navigation-link--dashboard,
.woocommerce-MyAccount-navigation-link--downloads,
.woocommerce-MyAccount-navigation-link--edit-address,
.woocommerce-MyAccount-navigation-link--payment-methods,
.woocommerce-MyAccount-navigation-link--wps_subscriptions,
.woocommerce-MyAccount-navigation-link--customer-logout {
    display: none !important;
} */

/* ==========================================================
   2. MY ACCOUNT CONTENT CONTAINER
   ========================================================== */

body .woocommerce-MyAccount-content {
    padding: 40px;
    border-radius: 20px;
    background: #fff;
}

body .woocommerce-MyAccount-content br {
    display: none;
}

/* Content Typography */
body .woocommerce-MyAccount-content h2 {
    margin: 0 0 12px;
    color: #231f20;
    font-family: "Poppins", sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 38px;
    text-transform: capitalize;
}

body .woocommerce-MyAccount-content p {
    margin-bottom: 24px;
    color: #231f20;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

body .woocommerce-MyAccount-content section {
    margin-top: 40px;
}

/* Highlight/Mark Styling */
body .woocommerce-MyAccount-content mark {
    padding: 2px 8px;
    background-color: #ffefef;
    border-radius: 4px;
    color: #e83f76;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

/* ==========================================================
   3. ORDERS TABLE (GLOBAL & SHARED)
   ========================================================== */

/* Base Table Reset */
body .woocommerce table.shop_table td,
body .woocommerce table.shop_table th {
    border: none;
}

/* Orders Table Container */
body .woocommerce-orders-table.my_account_orders {
    width: 100%;
    margin: 0 !important;
    border: 1px solid #e83f76 !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}

body .woocommerce-orders-table.my_account_orders p {
    margin: 0;
    padding: 0;
}

/* Table Body Background */
body .woocommerce-orders-table.my_account_orders tbody>tr>th,
body .woocommerce-orders-table.my_account_orders tbody>tr>td {
    background-color: #fff;
}

/* Row Hover Effect */
.woocommerce-orders-table__row:hover,
.woocommerce-orders-table__row:hover th,
.woocommerce-orders-table__row:hover td {
    background: #ffefef !important;
}

/* Table Header */
body .woocommerce-orders-table.my_account_orders thead {
    background-color: #e83f76;
}

body .woocommerce-orders-table.my_account_orders thead th {
    padding: 15px 20px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #e83f76;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}

body .woocommerce-orders-table.my_account_orders thead th:last-child {
    border-right: none;
}

body .woocommerce-orders-table.my_account_orders thead th .nobr {
    display: block;
}

body .woocommerce-orders-table.my_account_orders thead th br {
    display: none;
}

/* Table Body Cells */
body .woocommerce-orders-table.my_account_orders tbody td,
body .woocommerce-orders-table.my_account_orders tbody th {
    padding: 15px 20px;
    border-right: 1px solid #e83f76;
    border-bottom: 1px solid #e83f76;
    font-family: "Montserrat", sans-serif;
    color: #555;
    text-align: center;
    vertical-align: middle;
}

body .woocommerce-orders-table.my_account_orders tbody td:last-child,
body .woocommerce-orders-table.my_account_orders tbody th:last-child {
    border-right: none;
}

body .woocommerce-orders-table.my_account_orders tbody tr:last-child td,
body .woocommerce-orders-table.my_account_orders tbody tr:last-child th {
    border-bottom: none;
}

/* Order Number Link */
body .woocommerce-orders-table.my_account_orders .woocommerce-orders-table__cell-order-number a {
    color: #231f20;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
    text-decoration: none;
}

body .woocommerce-orders-table.my_account_orders .woocommerce-orders-table__cell-order-number a:hover {
    color: #e83f76;
}

/* Order Status Badge Container */
.woocommerce-orders-table__cell-order-status p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 3px 10px;
    border-radius: 5px;
    background: #ffeb39;
}

/* Status Column Width */
body .woocommerce-orders-table.woocommerce-orders-table__cell-order-status {
    width: 140px;
}

/* Status Badge Base */
body .woocommerce-orders-table__cell-order-status span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

/* Status Variations */
.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status span {
    background: #ffeb39;
    color: #231f20;
}

.woocommerce-orders-table__row--status-pending-payment .woocommerce-orders-table__cell-order-status span {
    background: #62c4e9;
}

.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status span {
    background: #46c986;
}

.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status span {
    background: #ff6600;
}

.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status span {
    background: #ff0000;
}

.woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status span {
    background: #3988ba;
}

.woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status span {
    background: #d3d3d3;
    color: #231f20;
}

/* Actions Column */
body .woocommerce-orders-table__cell-order-actions a.woocommerce-button {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background-color: transparent !important;
    color: #e83f76;
}

body .woocommerce-orders-table__cell-order-actions a.woocommerce-button:hover {
    background-color: transparent;
    text-decoration: underline;
}

body .woocommerce-orders-table.my_account_orders__cell-order-actions a.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 114px;
    height: 28px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #e83f76;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

@media screen and (max-width: 1024px) {

    /* Hide the main table header */
    body .woocommerce-orders-table.my_account_orders {
        border: none !important;
    }

    .woocommerce-MyAccount-orders thead {
        display: none;
    }

    /* Make the table and body full width */
    .woocommerce-MyAccount-orders,
    .woocommerce-MyAccount-orders tbody {
        display: block;
        width: 100%;
        border: none !important;
    }

    /* Each Row becomes an independent "Card" */
    .woocommerce-MyAccount-orders tr {
        display: block;
        border: 1px solid #e83f76 !important;
        border-radius: 8px;
        margin-bottom: 20px;
        overflow: hidden;
        background: #fff;
    }

    /* Each Cell becomes a 2-column grid row */
    .woocommerce-MyAccount-orders td,
    .woocommerce-MyAccount-orders th {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px !important;
        border: none !important;
        border-bottom: 1px solid #ffefef !important;
        text-align: right !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Remove border from the last cell in the card */
    .woocommerce-MyAccount-orders td:last-child {
        border-bottom: none !important;
    }

    /* THE MAGIC: Use the data-title attribute to create the left column.
       This pulls "Order", "Date", "Status", etc., from your HTML.
    */
    .woocommerce-MyAccount-orders td::before,
    .woocommerce-MyAccount-orders th::before {
        content: attr(data-title);
        /* Pulls text from HTML data-title */
        font-weight: 700;
        text-transform: uppercase;
        color: #e83f76;
        font-family: "Montserrat", sans-serif;
        font-size: 12px;
        text-align: left;
        flex-shrink: 0;
        margin-right: 10px;
    }

    /* Align the data content to the right */
    .woocommerce-MyAccount-orders td>*,
    .woocommerce-MyAccount-orders th>* {
        display: inline-block;
    }

    /* Specific styling for the Status badge in this mobile view */
    .woocommerce-orders-table__cell-order-status span {
        font-size: 14px !important;
        padding: 2px 8px !important;
    }

    /* Specific styling for the Action buttons to keep them tidy */
    .woocommerce-orders-table__cell-order-actions {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: flex-end !important;
    }
}

/* ==========================================================
   4. SINGLE ORDER DETAILS PAGE
   ========================================================== */

/* Order Details Headings */
body .woocommerce-MyAccount-content h2.woocommerce-order-details__title,
body .woocommerce-MyAccount-content h2.woocommerce-column__title {
    margin: 0 0 20px;
    color: #231f20;
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-transform: capitalize;
}

/* Order Details Table */
body .woocommerce-MyAccount-content table.woocommerce-table {
    width: 100%;
    margin: 0 0 30px !important;
    border: 1px solid #e83f76 !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Table Header */
body .woocommerce-MyAccount-content table.woocommerce-table thead {
    background-color: #e83f76;
}

body .woocommerce-MyAccount-content table.woocommerce-table thead th {
    padding: 15px 20px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #e83f76;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    vertical-align: middle;
}

body .woocommerce-MyAccount-content table.woocommerce-table thead th.product-total {
    text-align: right;
}

body .woocommerce-MyAccount-content table.woocommerce-table thead th:last-child {
    border-right: none;
}

/* Table Body & Footer Cells */
body .woocommerce-MyAccount-content table.woocommerce-table tbody td,
body .woocommerce-MyAccount-content table.woocommerce-table tbody th,
body .woocommerce-MyAccount-content table.woocommerce-table tfoot td,
body .woocommerce-MyAccount-content table.woocommerce-table tfoot th {
    padding: 15px 20px;
    border-right: 1px solid #e83f76;
    border-bottom: 1px solid #e83f76;
    background-color: #fff;
    font-family: "Montserrat", sans-serif;
    color: #555;
    text-align: left;
    vertical-align: middle;
}

body .woocommerce-MyAccount-content table.woocommerce-table tbody td.product-total,
body .woocommerce-MyAccount-content table.woocommerce-table tfoot td {
    text-align: right;
    color: #231f20;
    font-weight: 600;
}

body .woocommerce-MyAccount-content table.woocommerce-table tfoot th {
    text-align: right;
    color: #231f20;
    font-weight: 700;
}

body .woocommerce-MyAccount-content table.woocommerce-table tr:last-child td,
body .woocommerce-MyAccount-content table.woocommerce-table tr:last-child th {
    border-bottom: none;
}

body .woocommerce-MyAccount-content table.woocommerce-table td:last-child,
body .woocommerce-MyAccount-content table.woocommerce-table th:last-child {
    border-right: none;
}

/* Product Links & Meta */
body .woocommerce-table__product-name a {
    color: #e83f76;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

body .woocommerce-table__product-name a:hover {
    text-decoration: underline;
}

body .woocommerce-table__product-name .product-quantity {
    margin-left: 5px;
    color: #231f20;
    font-weight: 700;
}

/* Product Variations List */
ul.wc-item-meta {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

ul.wc-item-meta li {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 4px;
}

ul.wc-item-meta li p {
    margin: 0 !important;
    color: #555;
    font-size: 14px !important;
    line-height: inherit !important;
}

.wc-item-meta-label {
    color: #231f20;
    font-weight: 600;
}

/* Custom Fields Table */
body .woocommerce-table--custom-fields th {
    width: 35%;
    color: #231f20;
    font-weight: 600;
}

body .woocommerce-table--custom-fields td {
    text-align: left !important;
    font-weight: 400;
}

.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields th,
.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields td {
    color: #231f20;
}

.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields td {
    text-align: center !important;
    font-weight: 600;
}

/* Order Details Specific Layout */
.woocommerce-table--order-details .woocommerce-table__product-name.product-name {
    display: flex;
    gap: 20px;
}

.woocommerce-table--order-details .woocommerce-table__line-item.order_item td {
    text-align: center !important;
    border-bottom: 1px solid #e83f76 !important;
}

.woocommerce-table--order-details .product-info {
    text-align: left;
}

.woocommerce-table--order-details th[scope="row"] {
    text-align: left !important;
}

.woocommerce-table--order-details small {
    display: none;
}

/* Test Mode Info (Hidden) */
.testmode-info {
    display: none;
}

/* ==========================================================
   5. PURCHASE HISTORY CUSTOM CARDS
   ========================================================== */

.wcb-ph-container {
    margin-top: 20px;
}

.wcb-ph-order-card {
    margin-bottom: 30px;
    border: 1px solid #ffefef;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Order Header */
.wcb-ph-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
}

.wcb-ph-order-details-col {
    display: flex;
    flex-direction: column;
}

.wcb-ph-order-label {
    margin-bottom: 8px;
    color: #231f20;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.wcb-ph-order-number {
    margin-bottom: 8px;
    color: #e83f76;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 26px;
}

.wcb-ph-order-date {
    margin-top: 4px;
    color: #555;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
}

/* Status Badges */
.wcb-ph-order-status-badge {
    padding: 6px 14px;
    border-radius: 5px;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
}

.wcb-ph-status-completed {
    background: #46c986;
}

.wcb-ph-status-failed {
    background: #ff0000;
}

.wcb-ph-status-refunded {
    background: #3988ba;
}

.wcb-ph-status-cancelled {
    background: #ff6600;
}

/* Items Container */
.wcb-ph-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 24px 24px;
}

.wcb-ph-item-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.wcb-ph-item-image {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    object-fit: cover;
}

.wcb-ph-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wcb-ph-item-title {
    margin-bottom: 6px;
    color: #231f20;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.wcb-ph-item-price {
    color: #555;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
}

/* Order Footer */
.wcb-ph-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #ffefef;
}

.wcb-ph-order-total {
    color: #231f20;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.wcb-ph-view-details {
    color: #e83f76;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

.wcb-ph-view-details:hover {
    text-decoration: underline;
}

/* ==========================================================
   6. VIEW ORDER DETAILS HEADER
   ========================================================== */

.woocommerce-account .woocommerce-MyAccount-content .view-order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details .view-order-number {
    width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details .order-number {
    color: #e83f76;
    font-family: Montserrat;
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 38px;
    text-align: center;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details .order-date {
    font-weight: 400;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details p {
    margin-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details mark {
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details h2 {
    margin-bottom: 10px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details {
    margin-top: 0;
}

/* View Order Status Badge */
.woocommerce-account .woocommerce-MyAccount-content .view-order-details .view-order-status mark {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details .view-order-status.processing mark {
    background: #ffeb39;
    color: #231f20;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details .view-order-status.pending-payment mark {
    background: #62c4e9;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details .view-order-status.completed mark {
    background: #46c986;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details .view-order-status.cancelled mark {
    background: #ff6600;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details .view-order-status.failed mark {
    background: #ff0000;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details .view-order-status.refunded mark {
    background: #3988ba;
}

.woocommerce-account .woocommerce-MyAccount-content .view-order-details .view-order-status.on-hold mark {
    background: #d3d3d3;
    color: #231f20;
}

/* Back Link */
.back-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: #e83f76 !important;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px;
    text-transform: capitalize;
    text-decoration: none;
    cursor: pointer;
}

.back-link:hover {
    opacity: 0.8;
}

/* ==========================================================
   7. CUSTOMER DETAILS & ADDRESS BOXES
   ========================================================== */

/* Customer Details Container */
.woocommerce-customer-details .woocommerce-columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.woocommerce-customer-details .woocommerce-column {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 50%;
}

/* Column Headings */
.woocommerce-customer-details .woocommerce-column__title {
    margin-bottom: 12px;
    color: #222;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Address Box Base */
.woocommerce-customer-details address {
    display: block !important;
    flex-grow: 1;
    margin: 0;
    padding: 24px;
    border: 1px solid #e83f76 !important;
    background: #fff !important;
    color: #231f20;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

.woocommerce-customer-details address p {
    margin-top: 0;
}

.woocommerce-customer-details address br {
    display: block;
}

.woocommerce-customer-details address::first-line {
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
}

/* Billing Address (Left Column) */
.woocommerce-customer-details .woocommerce-column--billing-address address {
    border-right: none !important;
    border-radius: 8px 0 0 8px;
}

/* Shipping Address (Right Column) */
.woocommerce-customer-details .woocommerce-column--shipping-address address {
    border-radius: 0 8px 8px 0;
}

/* Contact Info (Phone & Email) */
.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
    display: flex;
    align-items: center;
    margin: 14px 0 0 !important;
    color: #555;
}

.woocommerce-customer-details--phone::before,
.woocommerce-customer-details--email::before {
    content: "" !important;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
}

.woocommerce-customer-details--phone::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E83F76' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

.woocommerce-customer-details--email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E83F76' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ==========================================================
   8. FORM STYLES (EDIT ACCOUNT, ADDRESS)
   ========================================================== */

.woocommerce-EditAccountForm {
    margin-bottom: 50px;
}

.woocommerce .woocommerce-MyAccount-content .form-row {
    display: block;
    margin-bottom: 20px;
    color: #231f20;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
}

.woocommerce .woocommerce-MyAccount-content .form-row>label {
    display: block;
    margin-bottom: 2px;
    color: #231f20;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
}

.woocommerce .woocommerce-MyAccount-content form .form-row input.input-text,
.woocommerce .woocommerce-MyAccount-content form .form-row textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #a7a7a8;
    border-radius: 5px;
    background: #fff;
    color: #231f20;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    line-height: 26px;
}

.woocommerce .woocommerce-MyAccount-content .form-row textarea {
    min-height: 120px;
}

/* Select2 Dropdown Styling */
.woocommerce-MyAccount-content .woocommerce-address-fields .select2-container {
    width: 100% !important;
}

.woocommerce-MyAccount-content .woocommerce-address-fields .select2-container .select2-selection {
    width: 100%;
    height: 46px;
    border: 1px solid #a7a7a8;
    border-radius: 5px;
    background: #fff;
}

.woocommerce-MyAccount-content .woocommerce-address-fields .select2-container .select2-selection__rendered {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-left: 15px;
    color: #231f20;
    font-size: 18px;
}

.woocommerce-MyAccount-content .woocommerce-address-fields .select2-container .select2-selection__arrow {
    height: 46px;
}

/* ==========================================================
   9. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================== */

:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce .woocommerce-MyAccount-content button.button[type="submit"] {
    margin-top: 20px;
    padding: 13px 28px;
    border: 2px solid #e83f76;
    border-radius: 5px;
    background: #e83f76;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce .woocommerce-MyAccount-content button.button[type="submit"]:hover {
    background: transparent;
    color: #e83f76;
    border-color: #e83f76;
}

.woocommerce-MyAccount-content button[type="submit"] {
    padding: 15px 30px;
    border-radius: 5px;
    background: #e83f76;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
}

/* ==========================================================
   10. SUBSCRIPTIONS TABLE STYLES
   ========================================================== */
.woocommerce-MyAccount-content .wps_sfw_account_additional_wrap {
    padding: 0;
    border: none;
    border-radius: 5px;
    box-shadow: none;
}

.woocommerce-MyAccount-content .wps_sfw_account_additional_wrap:hover {
    box-shadow: none;
}

.woocommerce-MyAccount-content .wps_sfw_account_additional_wrap a {
    color: #231f20;
    font-weight: 700;
}

.woocommerce-MyAccount-content .wps_sfw_account_additional_wrap a:hover {
    color: #e83f76;
}

.woocommerce-MyAccount-content .wps_sfw_account_additional_wrap .woocommerce-orders-table__cell-order-actions a {
    color: #e83f76;
}

.woocommerce-MyAccount-content .wps_sfw_account_additional_wrap .woocommerce-orders-table__cell-order-actions a:hover {
    color: #231f20;
}

.woocommerce-MyAccount-content .wps_sfw_account_additional_wrap .woocommerce-orders-table__cell-order-number a {
    font-weight: 700;
}

.woocommerce-MyAccount-content .wps_sfw_account_wrap table {
    width: 100%;
    margin: 0 !important;
    border: 1px solid #e83f76 !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

.woocommerce-MyAccount-content .wps_sfw_account_wrap table p {
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-content .wps_sfw_account_wrap table th,
.woocommerce-MyAccount-content .wps_sfw_account_wrap table td {
    border: none;
    text-align: center;
    border-right: 1px solid #e83f76;
    padding: 15px 20px;
}

.woocommerce-MyAccount-content .wps_sfw_account_wrap table td:last-child {
    border-right: none;
}

.woocommerce-MyAccount-content .wps_sfw_account_wrap table tbody>tr>th,
.woocommerce-MyAccount-content .wps_sfw_account_wrap table tbody>tr>td {
    background-color: #fff;
}

.woocommerce-MyAccount-content .wps_sfw_account_wrap table tbody tr:hover,
.woocommerce-MyAccount-content .wps_sfw_account_wrap table tbody tr:hover th,
.woocommerce-MyAccount-content .wps_sfw_account_wrap table tbody tr:hover td {
    background: #ffefef !important;
}

.woocommerce-MyAccount-content .wps_sfw_account_wrap table br {
    display: none !important;
}

.woocommerce-MyAccount-content .wps_sfw_account_wrap table thead {
    background-color: #e83f76;
}

.woocommerce-MyAccount-content .wps_sfw_account_wrap table thead th {
    padding: 15px 20px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #e83f76;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}

.woocommerce-MyAccount-content .wps_sfw_account_wrap table thead th:last-child {
    border-right: none;
}

@media screen and (max-width: 1440px) {
    body .woocommerce-MyAccount-content {
        padding: 20px;
    }

    body .woocommerce-orders-table.my_account_orders tbody th,
    body .woocommerce-orders-table.my_account_orders tbody td {
        padding: 10px 15px;
    }

    .woocommerce-MyAccount-content .wps_sfw_account_wrap table td,
    .woocommerce-MyAccount-content .wps_sfw_account_wrap table th {
        padding: 10px 15px;
    }

    body .woocommerce-orders-table__cell-order-status span {
        font-size: 12px;
    }
}

@media screen and (max-width: 1024px) {
    .woocommerce-MyAccount-content .wps_sfw_account_wrap table {
        border: none !important;
        display: flex !important;
    }

    body .wps_sfw_account_wrap thead {
        display: block !important;
    }

    .wps_sfw_account_wrap th::before {
        display: none;
    }


    .woocommerce-MyAccount-content .wps_sfw_account_wrap table thead {
        background-color: transparent !important;
    }

    .woocommerce-MyAccount-content .wps_sfw_account_wrap table thead th {
        font-weight: 700;
        text-transform: uppercase;
        color: #e83f76;
        font-family: "Montserrat", sans-serif;
        font-size: 12px;
        text-align: left !important;
        flex-shrink: 0;
        margin-right: 15px;
    }

    /* 1. Reset Table Structure for both table types */
    .wps_sfw_account_wrap table,
    .woocommerce-orders-table.my_account_orders {
        display: block !important;
        border: none !important;
        background: transparent !important;
    }

    /* 2. Hide the original Table Header */
    .wps_sfw_account_wrap thead,
    .woocommerce-orders-table.my_account_orders thead {
        display: none !important;
    }

    /* 3. Turn every Row into a Card */
    .wps_sfw_account_wrap tbody,
    .woocommerce-orders-table.my_account_orders tbody {
        display: block !important;
        width: 100% !important;
    }

    .wps_sfw_account_wrap tr,
    .woocommerce-orders-table__row {
        display: block !important;
        border: 1px solid #e83f76 !important;
        border-radius: 8px;
        margin-bottom: 20px;
        overflow: hidden;
        background: #fff !important;
    }

    .wps_sfw_account_wrap thead tr {

        border-right: none !important;
        border-radius: 8px 0px 0px 8px;
    }

    .wps_sfw_account_wrap tbody tr {

        border-left: none !important;
        border-radius: 0px 8px 8px 0px;
    }

    /* 4. Turn every Cell into a Two-Column Row */
    .wps_sfw_account_wrap td,
    .wps_sfw_account_wrap th,
    .woocommerce-orders-table td,
    .woocommerce-orders-table th {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 15px !important;
        border: none !important;
        border-bottom: 1px solid #ffefef !important;
        width: 100% !important;
        box-sizing: border-box;
        text-align: right !important;
        height: auto !important;
        /* Allow content to dictate height */
        min-height: 50px;
    }

    /* Remove bottom border on the last item of each card */
    .wps_sfw_account_wrap td:last-child,
    .woocommerce-orders-table td:last-child {
        border-bottom: none !important;
    }

    /* 5. Inject the Labels on the Left using data-title */
    .wps_sfw_account_wrap td::before,
    .wps_sfw_account_wrap th::before,
    .woocommerce-orders-table td::before,
    .woocommerce-orders-table th::before {
        content: attr(data-title);
        font-weight: 700;
        text-transform: uppercase;
        color: #e83f76;
        font-family: "Montserrat", sans-serif;
        font-size: 12px;
        text-align: left;
        flex-shrink: 0;
        margin-right: 15px;
    }

    /* Hide any <br> tags that cause weird spacing */
    .wps_sfw_account_wrap br,
    .woocommerce-orders-table br {
        display: none !important;
    }
}

/* Extra Small Screens Adjustments */
@media screen and (max-width: 420px) {

    .wps_sfw_account_wrap td,
    .woocommerce-orders-table td {
        padding: 10px 12px !important;
        font-size: 13px;
    }
}


/* ==========================================================================
   SUBSCRIPTION DETAILS TABLES (Inner Tables)
   ========================================================================== */

/* 1. Header Styling (The H3 inside the wrap) */
.wps_sfw_account_additional_wrap h3 {
    background: #e83f76;
    color: #fff;
    margin: 0;
    padding: 15px 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px 8px 0 0; /* Rounds only top corners */
}

/* 2. Table Container Styling */
.wps_sfw_details_wrap table.wps_sfw_details,
.wps_sfw_details_wrap table.wps_sfw_order_details {
    width: 100%;
    border: 1px solid #e83f76 !important;
    border-top: none !important; /* Prevents double border with H3 */
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0 0 8px 8px; /* Rounds only bottom corners */
    overflow: hidden;
    margin-bottom: 30px !important;
}

/* 3. Row and Cell Styling */
.wps_sfw_details_wrap table.shop_table tr td {
    padding: 15px 20px !important;
    border: none !important;
    border-bottom: 1px solid #ffefef !important;
    font-family: "Montserrat", sans-serif;
    background-color: #fff;
}

/* Remove bottom border on last row */
.wps_sfw_details_wrap table.shop_table tr:last-child td {
    border-bottom: none !important;
}

/* 4. Column Alignment: Labels vs Data */
/* First column (Labels) */
.wps_sfw_details_wrap table.shop_table tr td:first-child {
    font-weight: 700;
    color: #e83f76;
    text-transform: uppercase;
    font-size: 13px;
    width: 40%;
    border-right: 1px solid #ffefef !important;
}

/* Second column (Data) */
.wps_sfw_details_wrap table.shop_table tr td:last-child {
    text-align: right;
    color: #231f20;
}

/* 5. Row Hover Effect */
.wps_sfw_details_wrap table.shop_table tr:hover td {
    background: #ffefef !important;
}

/* 6. Clean up Status Badge & Br tags */
.wps_sfw_details_wrap .woocommerce-orders-table__cell-order-status span {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 14px;
}

.wps_sfw_details_wrap br {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS (Stacked Card Style for Consistency)
   ========================================================================== */

@media screen and (max-width: 767px) {
    .wps_sfw_details_wrap table.shop_table tr td:first-child {
        width: 45%;
        padding: 12px 15px !important;
    }
    
    .wps_sfw_details_wrap table.shop_table tr td:last-child {
        font-size: 14px;
        padding: 12px 15px !important;
    }
}