/**
 * Public-facing CSS for WP Affiliate Manager
 */

/* Tableau des commandes avec colonnes optimisées */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Public affiliate registration */
.wpam-profile-completion-notice {
    width: min(1120px, calc(100% - 32px));
    margin: 18px auto;
    padding: 16px 20px;
    color: #7a2e0e;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: Tahoma, Arial, sans-serif;
}

.wpam-profile-completion-notice strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
}

.wpam-profile-completion-notice p {
    margin: 0 0 10px;
}

.wpam-profile-completion-notice a {
    display: inline-block;
    padding: 8px 14px;
    color: #fff !important;
    background: #c2410c;
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none !important;
}

.wpam-profile-completion-notice a:hover {
    background: #9a3412;
}

body.wpam-registration-page .site-content,
body.wpam-registration-page #content,
body.wpam-registration-page .content-area,
body.wpam-registration-page .site-main,
body.wpam-registration-page main#main,
body.wpam-registration-page .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.wpam-registration-page .content-area,
body.wpam-registration-page .site-main,
body.wpam-registration-page main#main,
body.wpam-registration-page .entry-content {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

body.wpam-registration-page .wpam-registration-shell,
.wpam-registration-shell {
    width: 100%;
    max-width: 1120px;
    margin: 24px auto;
    padding: 0 20px;
    box-sizing: border-box;
    color: #172033;
    direction: rtl;
    text-align: right;
    font-family: Tahoma, Arial, sans-serif;
}

.wpam-registration-card,
.wpam-registration-success {
    padding: 32px 40px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(16, 24, 40, .08);
}

.wpam-registration-heading {
    margin-bottom: 22px;
    text-align: center;
}

.wpam-registration-heading h1,
.wpam-registration-success h2 {
    margin: 0 0 10px;
    color: #172033;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

.wpam-registration-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: #667085;
}

.wpam-registration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.wpam-registration-form .wpam-field {
    margin: 0 0 15px;
}

.wpam-registration-form .wpam-field label {
    display: block;
    margin: 0 0 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.wpam-registration-form .wpam-field label span {
    color: #d92d20;
}

.wpam-registration-form input,
.wpam-registration-form select,
.wpam-registration-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    color: #172033;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    font: inherit;
}

.wpam-registration-form input[type="email"],
.wpam-registration-form input[type="password"],
.wpam-registration-form input[type="tel"],
.wpam-registration-form input[name="rib"] {
    direction: ltr;
    text-align: left;
}

.wpam-registration-form select {
    padding-right: 13px;
    padding-left: 36px;
    text-align: right;
}

.wpam-registration-form textarea {
    min-height: 76px;
    resize: vertical;
}

.wpam-registration-form input:focus,
.wpam-registration-form select:focus,
.wpam-registration-form textarea:focus {
    border-color: #2f9e44;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(47, 158, 68, .14);
}

.wpam-registration-form small {
    display: block;
    margin-top: 6px;
    color: #667085;
}

.wpam-registration-section-title {
    margin: 6px 0 15px;
    padding-top: 18px;
    border-top: 1px solid #e4e7ec;
    color: #344054;
    font-size: 19px;
    font-weight: 800;
}

.wpam-registration-errors {
    margin: 0 0 24px;
    padding: 16px 18px;
    color: #912018;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 10px;
}

.wpam-registration-access-notice {
    display: grid;
    gap: 8px;
    margin: 0 0 24px;
    padding: 18px 20px;
    color: #7a2e0e;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 12px;
    line-height: 1.7;
}

.wpam-registration-access-notice strong {
    color: #9a3412;
    font-size: 18px;
}

.wpam-registration-access-notice a {
    justify-self: start;
    color: #fff;
    background: #168b25;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 700;
    text-decoration: none;
}

.wpam-registration-language small {
    display: block;
    margin-top: 7px;
    color: #667085;
    line-height: 1.6;
}

/* Global Arabic layout for the affiliate experience. Numeric content keeps
   the Western 0-9 glyphs and a stable left-to-right reading order. */
html[dir="rtl"] .affiliate-dashboard,
html[dir="rtl"] .woocommerce,
html[dir="rtl"] .wpam-registration-shell,
body.rtl .affiliate-dashboard,
body.rtl .woocommerce {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .woocommerce-Price-amount,
html[dir="rtl"] .affiliate-dashboard .value,
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[inputmode="numeric"],
body.rtl .woocommerce-Price-amount,
body.rtl .affiliate-dashboard .value {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: lining-nums tabular-nums;
}

html[dir="rtl"] .affiliate-dashboard-nav,
html[dir="rtl"] .wpam-product-order-actions,
body.rtl .affiliate-dashboard-nav,
body.rtl .wpam-product-order-actions {
    flex-direction: row-reverse;
}

.wpam-registration-errors ul {
    margin: 8px 20px 0 0;
    padding: 0;
}

.wpam-registration-submit,
.wpam-registration-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 24px;
    color: #fff !important;
    background: #2f9e44;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font: inherit;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}

.wpam-registration-submit {
    width: 100%;
}

.wpam-registration-submit:hover,
.wpam-registration-button:hover {
    background: #237a34;
}

.wpam-registration-success {
    text-align: center;
}

.wpam-registration-success-badge {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    color: #fff;
    background: #2f9e44;
    border-radius: 50%;
    font-size: 34px;
    font-weight: 900;
}

.wpam-registration-auto-login {
    color: #237a34;
    font-weight: 700;
}

.wpam-registration-number {
    font-size: 20px;
}

.wpam-registration-guide-intro {
    max-width: 720px;
    margin: 24px auto;
    padding: 20px 22px;
    color: #344054;
    background: #f2f8f3;
    border: 1px solid #cfe7d4;
    border-radius: 12px;
}

.wpam-registration-guide-intro strong {
    display: block;
    margin-bottom: 6px;
    color: #172033;
    font-size: 19px;
}

.wpam-registration-guide-intro p {
    margin: 0;
}

.wpam-registration-community {
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 20px 22px;
    color: #172033;
    background: #f8fafc;
    border: 1px solid #d7dee8;
    border-radius: 12px;
}

.wpam-registration-community > strong {
    display: block;
    margin-bottom: 5px;
    font-size: 19px;
}

.wpam-registration-community > p {
    margin: 6px 0 14px;
}

.wpam-registration-community-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.wpam-community-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    padding: 11px 18px;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 800;
}

.wpam-community-telegram {
    background: #229ed9;
}

.wpam-community-whatsapp {
    background: #25d366;
}

.wpam-registration-community .wpam-registration-admin-phone {
    margin: 16px 0 0;
    font-weight: 700;
}

.wpam-registration-admin-phone a {
    color: #1769aa;
    direction: ltr;
    display: inline-block;
}

.wpam-registration-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.wpam-registration-button-secondary {
    color: #237a34 !important;
    background: #fff;
    border: 2px solid #2f9e44;
}

.wpam-registration-button-secondary:hover {
    color: #fff !important;
    background: #237a34;
}

.wpam-company-website {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .wpam-registration-shell {
        margin: 20px auto;
        padding: 0 10px;
    }

    .wpam-registration-card,
    .wpam-registration-success {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .wpam-registration-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wpam-registration-success-actions {
        display: grid;
    }

    .wpam-registration-success-actions .wpam-registration-button {
        width: 100%;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .wpam-registration-shell {
        max-width: 760px;
        margin: 28px auto;
        padding: 0 22px;
    }

    .wpam-registration-card,
    .wpam-registration-success {
        padding: 30px 26px;
    }
}

@media (min-width: 1025px) {
    .wpam-registration-card,
    .wpam-registration-success {
        width: 100%;
        box-sizing: border-box;
    }

    .wpam-registration-form {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .wpam-registration-shell {
        padding: 0 8px;
    }

    .wpam-registration-card,
    .wpam-registration-success {
        padding: 20px 14px;
        border-radius: 12px;
    }

    .wpam-registration-heading h1,
    .wpam-registration-success h2 {
        font-size: 24px;
    }

    .wpam-registration-form input,
    .wpam-registration-form select,
    .wpam-registration-form textarea,
    .wpam-registration-submit {
        min-height: 50px;
        font-size: 16px;
    }
}

.orders-table th, 
.orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.orders-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}

/* Largeurs de colonnes spécifiques */
.orders-table th:nth-child(1), /* # */
.orders-table td:nth-child(1) {
    width: 5%;
}

.orders-table th:nth-child(2), /* Date */
.orders-table td:nth-child(2) {
    width: 10%;
}

.orders-table th:nth-child(3), /* Client */
.orders-table td:nth-child(3) {
    width: 15%;
}

.orders-table th:nth-child(4), /* Produits */
.orders-table td:nth-child(4) {
    width: 30%; /* Colonne produits plus large */
}

.orders-table th:nth-child(5), /* Total */
.orders-table td:nth-child(5),
.orders-table th:nth-child(6), /* Marge */
.orders-table td:nth-child(6),
.orders-table th:nth-child(7), /* Marge sans transport */
.orders-table td:nth-child(7) {
    width: 10%;
}

.orders-table th:nth-child(8), /* Statut */
.orders-table td:nth-child(8) {
    width: 10%;
}

/* Affiliate Dashboard */
.affiliate-dashboard {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.affiliate-dashboard-nav {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.affiliate-dashboard-nav a {
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.affiliate-dashboard-nav a.active {
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
}

.affiliate-dashboard-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

/* Date Filter */
.date-filter-container {
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}

.date-filter-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.date-filter-form {
    margin-bottom: 10px;
}

.date-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.date-field {
    flex: 1;
    min-width: 180px;
}

.date-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.date-picker {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.filter-button {
    padding: 8px 15px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filter-button:hover {
    background: #135e96;
}

.date-range-info {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Order Status Summary */
.order-status-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.status-card {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.status-count {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.status-progress {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
}

.status-percentage {
    text-align: right;
    font-size: 12px;
    color: #666;
}

/* Stats Cards */
.affiliate-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #2271b1;
}

.stat-card h3 {
    margin-top: 0;
    color: #555;
    font-size: 16px;
}

.stat-card .value {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
}

.stat-card .stat-desc {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
    text-align: center;
}

/* Order Creation Form - New Design */
.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-left-column {
    display: flex;
    flex-direction: column;
}

.product-right-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-image-container {
    margin-bottom: 15px;
    text-align: center;
}

.product-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-info {
    margin-bottom: 20px;
}

.product-info h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-colors {
    margin-bottom: 15px;
}

.color-title {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    margin-right: 12px !important;
    margin-bottom: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16) !important;
    border: 3px solid #e5e5e5 !important;
    display: inline-block !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    background-image: none !important;
    /* Forcer la suppression du fond gris */
    background-color: attr(data-color) !important;
}

.color-option.selected {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: scale(1.3);
}

/* Couleurs spéciales - meilleur affichage */
.color-option[title="Blanc"] {
    border: 2px solid #ddd;
    background-color: #FFFFFF !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Product size options */
.product-sizes {
    margin: 15px 0;
}

.size-title {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    width: 60px !important;
    height: 50px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 8px !important;
    margin-bottom: 8px !important;
    border: 2px solid #ddd !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    background-color: #f9f9f9 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.size-option:hover {
    background-color: #f0f0f0;
    border-color: #999;
    transform: translateY(-2px);
}

.size-option.selected {
    border: 3px solid #2271b1;
    background-color: #e6f3fb;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transform: scale(1.15);
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.base-price-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #555;
}

.base-price-label .price-icon {
    color: #2ecc71;
    margin-right: 5px;
    font-size: 20px;
}

.selling-price-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #555;
}

.selling-price-label .price-icon {
    color: #3498db;
    margin-right: 5px;
    font-size: 20px;
}

.base-price-display, .selling-price-display {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

select.form-control {
    height: 42px;
}

.actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.btn-primary {
    background-color: #2271b1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #135e96;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.margin-badge {
    background-color: #2ecc71;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

/* Product selection dropdown with image */
.product-select-container {
    position: relative;
    margin-bottom: 20px;
}

.product-select-container select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
}

/* Searchable product and Cathedis city selectors */
.smart-select {
    position: relative;
    width: 100%;
}

.smart-search-input {
    box-sizing: border-box;
    min-height: 46px;
    padding-right: 42px;
    background: #fff;
}

.smart-search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, .14);
    outline: none;
}

.smart-select::after {
    position: absolute;
    top: 14px;
    right: 15px;
    color: #64748b;
    content: "\1F50D";
    pointer-events: none;
}

select.smart-source-select,
.product-select-container select.smart-source-select {
    display: none;
}

.smart-results {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    display: none;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
}

.smart-results.is-open {
    display: block;
}

.smart-result {
    display: flex;
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #eef2f6;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    text-align: left;
}

.smart-result:last-child {
    border-bottom: 0;
}

.smart-result:hover,
.smart-result.is-active {
    background: #edf6ff;
}

.product-search-result {
    align-items: center;
    gap: 12px;
}

.product-search-result img {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 7px;
    object-fit: cover;
    background: #f5f6f8;
}

.product-search-result-info {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 3px;
}

.product-search-result-name {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: #64748b;
    font-size: 12px;
}

.product-search-result-price {
    color: #087f5b;
    font-weight: 700;
}

.city-search-result {
    align-items: center;
    font-weight: 600;
}

.smart-no-results {
    padding: 18px 14px;
    color: #b42318;
    text-align: center;
}

.smart-search-input.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.rtl .smart-select::after {
    right: auto;
    left: 15px;
}

.rtl .smart-search-input {
    padding-right: 10px;
    padding-left: 42px;
}

.rtl .smart-result {
    text-align: right;
}

/* Customer form section */
.customer-form {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section-title {
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
}

.customer-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Totals */
.order-totals {
    margin-top: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.totals-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-weight: bold;
}

.totals-row.margin {
    color: #2271b1;
    font-weight: bold;
}

/* Post-order actions */
.post-order-actions {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.post-order-actions .button {
    padding: 12px 20px;
    background-color: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
}

.post-order-actions .button:hover {
    background-color: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.post-order-actions .return-dashboard {
    background-color: #4CAF50;
}

.post-order-actions .return-dashboard:hover {
    background-color: #388E3C;
}

/* Orders List */
.affiliate-orders {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* Le tableau récent conserve des colonnes lisibles sur les petits écrans. */
.recent-orders-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.recent-orders-scroll .affiliate-orders {
    min-width: 760px;
}

.recent-orders-scroll .affiliate-orders th,
.recent-orders-scroll .affiliate-orders td {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.affiliate-orders th,
.affiliate-orders td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.affiliate-orders th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #000;
}

.affiliate-orders tr:hover {
    background-color: #f5f5f5;
}

.affiliate-orders .order-number {
    font-weight: 600;
}

.affiliate-orders .order-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
}

.affiliate-orders .status-completed {
    background-color: #c6e1c6;
    color: #5b841b;
}

.affiliate-orders .status-processing {
    background-color: #c8d7e1;
    color: #2e4453;
}

.affiliate-orders .status-on-hold {
    background-color: #f8dda7;
    color: #94660c;
}

.affiliate-orders .status-failed {
    background-color: #eba3a3;
    color: #761919;
}

.affiliate-orders .status-cancelled {
    background-color: #e5e5e5;
    color: #777;
}

.order-items {
    max-width: 400px;
    min-width: 350px;
}

.order-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #2271b1;
}

.order-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 12px;
    border-radius: 4px;
}

.order-item .item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.order-item .item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
    color: #333;
}

.order-item .item-detail-text {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.order-item .item-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.order-item .item-attr {
    background: #eee;
    padding: 2px 6px;
    border-radius: 3px;
    color: #666;
}

.order-item .item-qty {
    margin-left: 10px;
    color: #666;
    font-size: 13px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .affiliate-dashboard-content {
        min-width: 0;
    }

    .recent-orders-scroll {
        margin-right: -4px;
        padding-bottom: 8px;
    }

    .recent-orders-scroll .affiliate-orders {
        font-size: 14px;
    }

    .recent-orders-scroll .affiliate-orders th,
    .recent-orders-scroll .affiliate-orders td {
        padding: 10px;
    }

    .affiliate-dashboard-nav {
        flex-wrap: wrap;
    }
    
    .product-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-select-container,
    .price-container,
    .quantity-container,
    .margin-container {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .totals-row {
        flex-direction: column;
    }
    
    .totals-row div:last-child {
        margin-top: 5px;
        font-weight: bold;
    }
}

/* ========================================================================== 
   Responsive application shell (mobile-first safeguards)
   ========================================================================== */

.affiliate-dashboard,
.affiliate-dashboard *,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-content * {
    box-sizing: border-box;
}

.affiliate-dashboard {
    width: min(100% - 32px, 1200px);
    min-width: 0;
}

.affiliate-dashboard-content,
.affiliate-dashboard-content > *,
.product-left-column,
.product-right-column,
.item-details,
.invoice-info,
.invoice-amounts {
    min-width: 0;
}

.affiliate-dashboard img,
.woocommerce-account .woocommerce-MyAccount-content img {
    max-width: 100%;
    height: auto;
}

.affiliate-dashboard input,
.affiliate-dashboard select,
.affiliate-dashboard textarea,
.affiliate-dashboard button {
    max-width: 100%;
    font: inherit;
}

.affiliate-dashboard input,
.affiliate-dashboard select,
.affiliate-dashboard textarea {
    font-size: max(16px, 1em);
}

.affiliate-dashboard h1,
.affiliate-dashboard h2,
.affiliate-dashboard h3,
.affiliate-dashboard h4,
.affiliate-dashboard p,
.affiliate-dashboard td,
.affiliate-dashboard th,
.affiliate-dashboard a,
.affiliate-dashboard span {
    overflow-wrap: anywhere;
}

.affiliate-dashboard-nav a,
.order-status,
.invoice-status,
.button,
.btn-primary,
.btn-danger {
    touch-action: manipulation;
}

.affiliate-dashboard :focus-visible {
    outline: 3px solid rgba(37, 99, 235, .32);
    outline-offset: 2px;
}

.recent-orders-scroll,
.affiliate-invoices-wrapper,
.invoice-orders {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.recent-orders-scroll,
.affiliate-invoices-wrapper {
    scrollbar-color: #94a3b8 #eef2f7;
    scrollbar-width: thin;
}

@media (max-width: 1024px) {
    .affiliate-dashboard {
        width: calc(100% - 24px) !important;
        max-width: 1200px;
        margin: 12px auto !important;
    }

    .date-selector-wrapper {
        max-width: 100% !important;
    }

    .date-range-calendar,
    .date-picker-calendar {
        right: auto !important;
        left: 0 !important;
        width: min(600px, calc(100vw - 48px)) !important;
        max-width: calc(100vw - 48px) !important;
    }
}

@media (max-width: 768px) {
    .affiliate-dashboard {
        width: calc(100% - 20px) !important;
        margin: 10px auto !important;
        padding: 10px !important;
        gap: 14px !important;
        border-radius: 16px !important;
        overflow: visible !important;
    }

    .affiliate-dashboard-nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        padding: 8px !important;
        gap: 7px !important;
        border: 1px solid #e5eaf1;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, .96) !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .07) !important;
    }

    .affiliate-dashboard-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 44px;
        margin: 0 !important;
        padding: 9px 8px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        line-height: 1.25;
        text-align: center;
        white-space: normal !important;
    }

    .affiliate-dashboard-content {
        width: 100%;
        padding: 18px !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 26px rgba(15, 23, 42, .06) !important;
    }

    .affiliate-dashboard-content h2 {
        margin-bottom: 18px !important;
        font-size: clamp(1.3rem, 6vw, 1.65rem) !important;
        line-height: 1.2;
    }

    .affiliate-stats,
    .order-status-summary,
    .summary-cards {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
    }

    .stat-card,
    .status-card,
    .summary-card {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 15px !important;
        border-radius: 12px !important;
    }

    .stat-card .value,
    .summary-value {
        font-size: clamp(1.15rem, 5vw, 1.55rem) !important;
        overflow-wrap: anywhere;
    }

    .product-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        padding: 16px !important;
        gap: 16px !important;
    }

    .customer-form {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 16px !important;
    }

    .form-group,
    .date-field {
        width: 100%;
        min-width: 0 !important;
    }

    .price-info {
        align-items: flex-start;
        gap: 12px;
    }

    .selling-price-display,
    .selling-price-display .final-price {
        width: 100% !important;
        min-width: 0;
    }

    .actions-row,
    .post-order-actions,
    .customer-edit-actions {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    .post-order-actions .button {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0 !important;
    }

    .order-detail-header {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .order-detail-card,
    .delivery-history-content {
        padding: 15px !important;
    }

    .delivery-history {
        padding-left: 21px !important;
    }

    .delivery-history-event {
        padding-left: 15px !important;
    }

    .delivery-history-track,
    .delivery-history-shipment {
        overflow-wrap: anywhere;
    }

    .calendars-container {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .date-range-calendar,
    .date-picker-calendar {
        position: fixed !important;
        z-index: 100000 !important;
        top: max(12px, env(safe-area-inset-top)) !important;
        right: 10px !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        left: 10px !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        overflow-y: auto;
        border-radius: 16px !important;
        box-shadow: 0 24px 70px rgba(15, 23, 42, .28) !important;
    }

    .calendar-wrapper {
        width: 100% !important;
        padding: 14px !important;
    }

    /* Invoice lists become readable cards instead of a 650px table. */
    .affiliate-invoices-wrapper {
        overflow: visible !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .affiliate-invoices,
    .affiliate-invoices tbody,
    .affiliate-invoices tr,
    .affiliate-invoices td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
    }

    .affiliate-invoices thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .affiliate-invoices tr {
        margin-bottom: 14px;
        padding: 10px 14px;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 7px 22px rgba(15, 23, 42, .06);
    }

    .affiliate-invoices td {
        display: grid;
        grid-template-columns: minmax(94px, 40%) minmax(0, 1fr);
        gap: 10px;
        padding: 10px 0 !important;
        text-align: right;
        border-bottom: 1px solid #eef2f7 !important;
    }

    .affiliate-invoices td:last-child {
        border-bottom: 0 !important;
    }

    .affiliate-invoices td::before {
        content: attr(data-label);
        color: #64748b;
        font-weight: 700;
        text-align: left;
    }

    /* The detailed invoice order table uses the same card pattern. */
    .invoice-orders .orders-table,
    .invoice-orders .orders-table tbody,
    .invoice-orders .orders-table tr,
    .invoice-orders .orders-table td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .invoice-orders .orders-table thead,
    .invoice-orders .orders-table tfoot {
        display: none;
    }

    .invoice-orders .orders-table tr {
        margin-bottom: 14px;
        padding: 10px 14px;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #fff;
    }

    .invoice-orders .orders-table td {
        display: grid !important;
        grid-template-columns: minmax(100px, 38%) minmax(0, 1fr);
        gap: 10px;
        max-width: none !important;
        padding: 10px 0 !important;
        text-align: right;
    }

    .invoice-orders .orders-table td::before {
        content: attr(data-label);
        color: #64748b;
        font-weight: 700;
        text-align: left;
    }

    .invoice-orders .order-item {
        min-width: 0;
        text-align: left;
    }

    .invoice-meta {
        gap: 12px !important;
    }

    .invoice-info,
    .invoice-amounts {
        width: 100%;
        min-width: 0 !important;
    }

    .formula,
    .formula-example {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .affiliate-dashboard {
        width: calc(100% - 12px) !important;
        margin: 6px auto !important;
        padding: 6px !important;
        border-radius: 12px !important;
    }

    .affiliate-dashboard-content {
        padding: 14px !important;
    }

    .affiliate-dashboard-nav {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .affiliate-dashboard-nav a {
        min-height: 42px;
    }

    .affiliate-stats,
    .order-status-summary,
    .summary-cards {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .mobile-order-card,
    .product-row,
    .customer-form,
    .order-detail-card,
    .invoice-formula,
    .invoice-summary {
        padding: 13px !important;
    }

    .detail-product {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .detail-product img {
        width: 44px !important;
        height: 44px !important;
    }

    .price-info,
    .totals-row {
        flex-direction: column;
    }

    .actions-row > *,
    .customer-edit-actions > *,
    #add-product,
    #affiliate-order-form > .btn-primary {
        width: 100%;
    }

    .affiliate-invoices td,
    .invoice-orders .orders-table td {
        grid-template-columns: minmax(82px, 42%) minmax(0, 1fr);
        font-size: 14px !important;
    }

    /* Compact stacked equation: the operator shares the row with its value. */
    .invoice-formula .formula,
    .invoice-formula .formula-example {
        display: grid !important;
        grid-template-columns: 28px minmax(0, 1fr);
        width: 100%;
        gap: 8px 9px !important;
        margin: 12px 0 !important;
    }

    .invoice-formula .formula > :first-child,
    .invoice-formula .formula-example > :first-child {
        grid-column: 1 / -1;
    }

    .invoice-formula .formula-item,
    .invoice-formula .formula-result {
        width: auto;
        min-width: 0;
        padding: 10px 12px !important;
        text-align: center;
    }

    .invoice-formula .formula-operator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        min-height: 42px;
        font-size: 1.1rem !important;
        line-height: 1;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .affiliate-dashboard *,
    .affiliate-dashboard *::before,
    .affiliate-dashboard *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .affiliate-dashboard-nav {
    flex-direction: row-reverse;
}

.rtl .product-row {
    flex-direction: row-reverse;
}

.rtl .order-item {
    flex-direction: row-reverse;
}

.rtl .item-qty {
    margin-right: 10px;
    margin-left: 0;
}

/* Styles pour le message de confirmation de commande créée */
.order-created-message {
    margin: 15px 0 25px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.order-created-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Boutons après création de commande */
.create-new-order {
    background-color: #007bff !important;
    color: white !important;
    font-weight: bold !important;
}

.return-dashboard {
    background-color: #4CAF50 !important;
    color: white !important;
}

/* Style pour l'indicateur de chargement des attributs */
.attributes-loading {
    margin: 10px 0;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #666;
    font-style: italic;
    text-align: center;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
.product-image {
    margin-bottom: 10px;
}

.product-image img {
    max-width: 100px;
    height: auto;
}

.product-select-container {
    margin-bottom: 15px;
}

/* Single product affiliate actions and product videos */
.single-product .wpam-product-order-actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.single-product .wpam-product-order-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.single-product .wpam-product-order-button {
    color: #fff;
    background: #168b25;
}

.single-product .wpam-product-media-download {
    color: #168b25;
    background: #fff;
    border: 1px solid #168b25;
}

.single-product .wpam-product-media-help {
    flex-basis: 100%;
    margin: 0;
    padding: 12px 15px;
    color: #475467;
    background: #f6fef9;
    border-left: 4px solid #168b25;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.wpam-product-videos {
    clear: both;
    margin: 36px auto;
}

.wpam-product-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.wpam-product-video-grid video {
    display: block;
    width: 100%;
    max-height: 620px;
    background: #111;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .single-product .wpam-product-order-actions {
        flex-direction: column;
    }

    .single-product .wpam-product-order-actions .button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Affiliate WooCommerce account details */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 300px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(16, 24, 40, .08);
    box-sizing: border-box;
}

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

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid #eaecf0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 12px 16px;
    color: #344054;
    background: transparent;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    margin-right: 10px;
    color: #667085;
    font-size: 21px;
    font-weight: 400;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--affiliate-dashboard a::before {
    content: "⌂";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a::before {
    content: "▤";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: "○";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: "↪";
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus {
    color: #fff;
    background: #168b25;
    outline: 0;
    transform: translateX(2px);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover::before,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus::before {
    color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #d92d20;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm {
    max-width: 995px;
    padding: 42px 60px;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 28px;
    box-sizing: border-box;
}

.woocommerce-account .woocommerce-EditAccountForm .form-row,
.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
.woocommerce-account .woocommerce-EditAccountForm .form-row-last {
    display: block;
    float: none;
    width: 100%;
    margin: 0 0 26px;
    padding: 0;
    clear: both;
}

.woocommerce-account .woocommerce-EditAccountForm label {
    display: block;
    margin: 0 0 9px;
    color: #101828;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.woocommerce-account .woocommerce-EditAccountForm input.input-text,
.woocommerce-account .woocommerce-EditAccountForm textarea,
.woocommerce-account .woocommerce-EditAccountForm select {
    display: block;
    width: 100%;
    min-height: 62px;
    padding: 14px 16px;
    color: #172033;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: none;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
}

.woocommerce-account .woocommerce-EditAccountForm textarea {
    min-height: 112px;
    resize: vertical;
}

.woocommerce-account .woocommerce-EditAccountForm input.input-text:focus,
.woocommerce-account .woocommerce-EditAccountForm textarea:focus,
.woocommerce-account .woocommerce-EditAccountForm select:focus {
    border-color: #475467;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(71, 84, 103, .12);
}

.woocommerce-account .woocommerce-EditAccountForm fieldset {
    min-width: 0;
    margin: 34px 0 0;
    padding: 34px 0 0;
    border: 0;
    border-top: 1px solid #e4e7ec;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset legend {
    display: block;
    width: 100%;
    margin: 0 0 28px;
    padding: 0;
    color: #2f3b52;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.woocommerce-account .woocommerce-EditAccountForm .wpam-profile-section-title {
    margin: 0 0 20px;
    color: #344054;
    font-size: 19px;
    font-weight: 700;
}

.woocommerce-account .woocommerce-EditAccountForm .wpam-profile-bank-title {
    margin-top: 38px;
    padding-top: 30px;
    border-top: 1px solid #e4e7ec;
}

.woocommerce-account .woocommerce-EditAccountForm .wpam-field-help {
    display: block;
    margin-top: 8px;
    color: #667085;
    font-size: 14px;
    font-style: normal;
}

.woocommerce-account .woocommerce-EditAccountForm button[type="submit"] {
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        float: none;
        width: 100%;
        margin-bottom: 24px;
        padding: 12px;
        border-radius: 16px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation a {
        min-height: 48px;
        padding: 10px 13px;
    }

    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .woocommerce-account .woocommerce-EditAccountForm fieldset legend {
        font-size: 24px;
    }
}
