/* Dflex Woo Theme - User Account Styles */

/* Hide breadcrumbs/header on login page for cleaner look */
body.woocommerce-account:not(.logged-in) #page-header {
    display: none !important;
}

/* Inactive icon when already on login page */
.is-on-login-page {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

/* Auth Popup */
.dflex-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.dflex-auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dflex-auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 100%;
    max-width: var(--dflex-auth-modal-width, 480px);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--dflex-auth-modal-radius, 20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 40px;
}

@media (max-width: 764px) {
    .dflex-auth-modal {
        width: 80%;
        padding: 30px 20px;
    }

    .dflex-auth-modal.active {
        transform: translate(-50%, -50%);
    }
}

.dflex-auth-modal.active {
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
}

.dflex-auth-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 16px;
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
}

.dflex-auth-close:hover {
    color: #111;
}

.dflex-auth-view {
    display: none;
}

.dflex-inline-auth .dflex-auth-view {
    /* the inline version behaves exactly the same but has slightly different context */
}

.dflex-auth-view.active {
    display: block;
    animation: dflexFadeIn 0.3s;
}

@keyframes dflexFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dflex-auth-header-links {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    gap: 20px;
}

.dflex-auth-header-links h3 {
    margin: 0;
}

@media (max-width: 500px) {
    .dflex-auth-header-links {
        margin-bottom: 20px;
        gap: 15px;
    }

    .dflex-auth-header-links .dflex-auth-header-title {
        font-size: 20px;
    }

    .dflex-auth-header-links a {
        font-size: 14px;
    }
}

.dflex-auth-header-links .dflex-auth-header-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.dflex-auth-header-links a {
    color: #888;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.dflex-auth-header-links a:hover {
    color: #111;
}

.dflex-form-row {
    margin-bottom: 20px;
}

.dflex-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.dflex-form-row input[type="text"],
.dflex-form-row input[type="email"],
.dflex-form-row input[type="password"],
.dflex-form-row input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.2s, background 0.2s;
}

.dflex-form-row input:focus {
    outline: none;
    border-color: var(--dflex-color-primary, #E53935);
    background: #fff;
    box-shadow: 0 0 0 3px var(--dflex-color-primary-alpha10, rgba(229, 57, 53, 0.1));
}

.dflex-form-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    line-height: 1.4;
}

.dflex-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 400 !important;
}

.dflex-checkbox-label input {
    width: 20px;
    height: 20px;
    margin: 0;
}

.dflex-checkbox-label a {
    color: #111;
}

.dflex-btn-auth {
    width: 100%;
}

.dflex-btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.dflex-lost-pwd {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
    text-decoration: none;
}

.dflex-lost-pwd:hover {
    color: #1a1a1a;
}

.dflex-auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.dflex-auth-footer a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
}

.dflex-auth-footer a:hover {
    text-decoration: underline;
}

.dflex-auth-msg {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.dflex-hidden {
    display: none;
}

.dflex-dash-link-wrap {
    margin-top: 15px;
}

.dflex-dash-link-wrap a {
    color: var(--dflex-color-primary, #E53935);
    text-decoration: none;
}

.dflex-dash-link-wrap a:hover {
    text-decoration: underline;
}

.dflex-lost-pwd-margin {
    display: block;
    text-align: center;
    margin-top: 20px;
}

.dflex-auth-footer-alt {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.dflex-auth-msg.error {
    background: #ffebe9;
    color: #ff3b30;
    border: 1px solid #ffcfcc;
}

.dflex-auth-msg.success {
    background: #e9fbf0;
    color: var(--dflex-color-success, #34c759);
    border: 1px solid #ccf3d9;
}

/* My Account Layout */
.dflex-account-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.dflex-account-layout.is-tabs {
    flex-direction: column;
}

.dflex-account-layout.is-tabs .dflex-account-sidebar {
    flex: 1;
    width: 100%;
    display: flex;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    gap: 10px;
    margin-bottom: 20px;
}

.dflex-account-layout.is-tabs .dflex-account-tab {
    flex: 1;
    text-align: center;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.dflex-account-sidebar {
    flex: 0 0 var(--dflex-account-sidebar-width, 260px);
    width: var(--dflex-account-sidebar-width, 260px);
    background: var(--dflex-account-sidebar-bg, #fff);
    border-radius: var(--dflex-account-radius, 16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.dflex-account-tab {
    display: block;
    padding: 16px 20px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s, color 0.2s;
}

.dflex-account-tab i {
    width: 24px;
    color: #888;
    text-align: center;
    margin-right: 10px;
}

.dflex-account-tab:hover {
    background: #fafafa;
    text-decoration: none !important;
}

.dflex-account-tab.active {
    background: var(--dflex-color-primary, #F5D442);
    color: white;
}


.dflex-account-tab.active:hover {
    color: white;
}

.dflex-account-tab.active i {
    color: white;
}

.dflex-account-content {
    flex: 1;
    min-width: 0;
    width: calc(100% - var(--dflex-account-sidebar-width, 260px) - 30px);
    background: var(--dflex-account-content-bg, #fff);
    border-radius: var(--dflex-account-radius, 16px);
    min-height: 500px;
}

@media (max-width: 991px) {
    .dflex-account-layout {
        flex-direction: column;
    }

    .dflex-account-sidebar,
    .dflex-account-content {
        width: 100% !important;
        flex: 0 0 100% !important;
        position: static;
    }
}

.dflex-account-panel {
    display: none;
    animation: dflexFadeIn 0.3s;
}

.dflex-account-panel.active {
    display: block;
}

.dflex-account-panel .dflex-account-panel-title {
    margin: 0 0 30px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #f9f9f9;
    padding-bottom: 15px;
}

/* Dashboard Cards */
.dflex-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dflex-dash-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.dflex-dash-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

.dflex-dash-card .dflex-dash-card-title {
    margin: 0 0 15px;
    font-size: 16px;
    color: #111;
    display: flex;
    align-items: center;
}

.dflex-dash-card .dflex-dash-card-title i {
    color: var(--dflex-color-primary, #F5D442);
    margin-right: 10px;
    font-size: 20px;
}

.dflex-dash-card p,
.dflex-dash-info,
.dflex-dash-stats {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.dflex-dash-info {
    border-left: 3px solid var(--dflex-color-primary, #F5D442);
    padding-left: 12px;
}

.dflex-dash-stats strong {
    color: #111;
    font-size: 16px;
}

.dflex-dash-link {
    font-size: 14px;
    font-weight: 600;
    color: #007aff;
    text-decoration: none;
}

.dflex-dash-link:hover {
    text-decoration: underline;
}

/* Orders Toolbar */
.dflex-orders-toolbar {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.dflex-orders-search {
    flex: 1;
    min-width: 200px;
}

.dflex-orders-filter {
    min-width: 180px;
}

.dflex-orders-toolbar input.dflex-woo-input-text,
.dflex-orders-toolbar select.dflex-woo-input-text {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
    height: 44px;
    outline: none;
}

.dflex-orders-toolbar input.dflex-woo-input-text:focus,
.dflex-orders-toolbar select.dflex-woo-input-text:focus {
    border-color: var(--dflex-color-active-tab, #F5D442);
    box-shadow: 0 0 0 3px rgba(245, 212, 66, 0.1);
}

.dflex-orders-no-results-wrap {
    margin-top: 15px;
}

/* Orders Table */
.dflex-orders-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #eee;
}

.dflex-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.dflex-orders-table th {
    text-align: left;
    padding: 15px 20px;
    background: #f8f8f8;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eee;
}

.dflex-orders-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    color: #444;
}

/* Pagination Styling */
.dflex-orders-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 35px;
    padding: 10px 0;
}

.dflex-orders-pagination .page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eee;
    color: #444;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    padding: 0;
}

.dflex-orders-pagination .page-btn:hover {
    border-color: var(--dflex-color-primary, #F5D442);
    color: #111;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
}

.dflex-orders-pagination .page-btn.active {
    background: var(--dflex-color-primary, #F5D442);
    border-color: var(--dflex-color-primary, #F5D442);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 212, 66, 0.3);
}

.dflex-orders-pagination .page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9f9f9;
}

.dflex-orders-pagination .page-dots {
    color: #ccc;
    font-size: 14px;
    width: 24px;
    text-align: center;
}

@media (max-width: 768px) {
    .dflex-orders-pagination {
        gap: 8px;
        margin-top: 25px;
    }

    .dflex-orders-pagination .page-btn {
        width: 38px;
        height: 38px;
        font-size: 13px;
        border-radius: 10px;
    }
}

/* Expanded Details Row */
.dflex-order-details-row {
    display: none;
    background-color: #fcfcfd;
}

.dflex-order-details-row td {
    padding: 0 !important;
    border-bottom: 1px solid #eee;
}

.details-content {
    padding: 30px;
    background: #fff;
    margin: 10px 20px 25px;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.details-loading {
    padding: 40px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.dflex-ajax-order-details .details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.dflex-ajax-order-details h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 20px;
}

.details-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.details-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.details-item:last-child {
    border-bottom: none;
}

.details-item .item-img img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eee;
}

.details-item .item-name {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-align: left;
}

.details-item .item-name .mcl-addons-inline {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    font-weight: 400;
}

.details-item .item-qty {
    color: #888;
    font-size: 13px;
    min-width: 40px;
}

.details-item .item-total {
    font-weight: 600;
    color: #111;
}

.delivery-info p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.order-totals-summary {
    background: #f9f9fb;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #eee;
}

.summary-title {
    margin: 0 0 8px 0 !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    line-height: 1.4;
}

.total-row strong {
    text-align: right;
    max-width: 60%;
}

.total-row.order-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    font-size: 18px;
    color: var(--dflex-color-primary, #E53935);
}

@media (max-width: 768px) {
    .dflex-ajax-order-details .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.dflex-orders-table tr:hover td {
    background: #fafafa;
}

/* Modal Overlay Base */
.dflex-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dflex-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    z-index: 200;
}

/* Logout Modal */
.dflex-logout-confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    background: #fff;
    padding: 35px;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    z-index: 10000;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dflex-logout-confirm-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.dflex-logout-confirm-modal .dflex-logout-confirm-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #111;
}

.dflex-logout-confirm-modal p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.dflex-modal-btns {
    display: flex;
    gap: 12px;
}

.dflex-modal-btns .dflex-btn {
    flex: 1;
}

.dflex-btn-cancel {
    background: #f5f5f7 !important;
    color: #444 !important;
    border: none !important;
}

.dflex-btn-cancel:hover {
    background: #eeeeef !important;
}

.dflex-btn-logout-confirm {
    background: var(--dflex-btn-bg, #ff3b30) !important;
    color: var(--dflex-btn-text, #fff) !important;
    border: var(--dflex-btn-border, none) !important;
}

.dflex-btn-logout-confirm:hover {
    background: var(--dflex-btn-hover-bg, #e0352a) !important;
    color: var(--dflex-btn-hover-text, #fff) !important;
    border: var(--dflex-btn-border-hover, none) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.3);
}

.dflex-order-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #eee;
    color: #666;
}

/* Status variants */
.status-completed {
    background: var(--dflex-color-success-alpha10, #e6f7ef);
    color: var(--dflex-color-success, #10b981);
}

.status-processing {
    background: #e0f2fe;
    color: #0ea5e9;
}

.status-on-hold {
    background: #fefce8;
    color: #eab308;
}

.status-pending {
    background: #fef2f2;
    color: #ef4444;
}

.status-cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

.status-failed {
    background: #fee2e2;
    color: #b91c1c;
}

.status-shipped {
    background: #f5f3ff;
    color: #8b5cf6;
}

.dflex-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.dflex-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dflex-repeat-order-btn {
    margin-left: 5px;
    color: #fff !important;
}

.dflex-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #888;
    background: #f9fafb;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

.dflex-empty-state:before {
    content: '📦';
    display: block;
    font-size: 48px;
    margin-bottom: 20px;
}

/* Details Form */
.dflex-settings-form {
    max-width: 600px;
}

.dflex-form-row-half {
    display: flex;
    gap: 20px;
}

.dflex-form-row-half .dflex-form-row {
    flex: 1;
}

.dflex-sec-title {
    margin: 30px 0 20px;
    font-size: 18px;
    font-weight: 600;
}

.dflex-divider {
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

.dflex-btn-save {
    /* Base styles handled globally */
}

/* Mobile */
@media (max-width: 768px) {
    .dflex-account-layout {
        flex-direction: column;
    }

    .dflex-account-sidebar {
        flex: none;
        width: 100%;
        display: flex;
        overflow-x: auto;
    }

    .dflex-account-tab {
        font-size: 12px;
        padding: 10px;
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid #f5f5f5;
    }

    .dflex-dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dflex-orders-toolbar {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .dflex-orders-toolbar .dflex-woo-input-text {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Orders Card Layout on Mobile */
    .dflex-orders-wrapper {
        border: none;
        overflow: visible;
        background: transparent;
    }

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

    .dflex-orders-table,
    .dflex-orders-table tbody,
    .dflex-orders-table td,
    .dflex-order-row {
        display: block;
        width: 100%;
        background: transparent;
    }

    .dflex-order-row {
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 16px;
        padding: 20px;
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }

    .dflex-orders-table td {
        padding: 10px 0;
        border: none !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        color: #333;
        text-align: right;
    }

    .dflex-orders-table td::before {
        content: attr(data-title);
        font-weight: 600;
        color: #888;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: left;
    }

    .dflex-order-actions {
        margin-top: 15px;
        padding-top: 15px !important;
        border-top: 1px solid #f5f5f5 !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: stretch !important;
        flex-wrap: wrap;
        gap: 10px;
    }

    .dflex-order-actions::before {
        display: none !important;
    }

    .dflex-order-actions .dflex-btn-small {
        flex: 1;
        min-width: 120px;
        margin: 0 !important;
        font-size: 12px;
        justify-content: center;
        height: 40px;
    }

    .dflex-form-row-half {
        flex-direction: column;
        gap: 0;
    }

    /* Account Section Products as Horizontal List */
    .dflex-account-panel .dflex-product-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .dflex-account-panel .dflex-product-card {
        flex-direction: row !important;
        align-items: center !important;
        padding: 12px !important;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        min-height: auto;
    }

    .dflex-account-panel .dflex-card-image {
        width: 90px !important;
        height: 90px !important;
        aspect-ratio: 1/1 !important;
        margin-bottom: 0 !important;
        border-radius: 12px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .dflex-account-panel .dflex-card-content {
        padding: 0 0 0 15px !important;
        flex-grow: 1;
        text-align: left;
    }

    .dflex-account-panel .dflex-card-title {
        font-size: 16px !important;
        margin-bottom: 4px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .dflex-account-panel .dflex-card-price {
        font-size: 15px !important;
        flex-direction: row !important;
        gap: 8px;
        margin-bottom: 8px;
    }

    .dflex-account-panel .dflex-card-footer {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .dflex-account-panel .dflex-btn-add_to_cart {
        padding: 0 15px !important;
        height: 32px !important;
        font-size: 12px !important;
    }

    .dflex-account-panel .dflex-card-desc {
        display: none !important;
        /* Hide description in mobile list to save space */
    }
}

/* Custom Login/Register Forms */
.dflex-login-register-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
}

.dflex-login-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.dflex-login-col {
    flex: 1;
    min-width: 300px;
}

.dflex-login-single {
    max-width: 480px;
    margin: 0 auto;
}

.dflex-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 40px;
    height: 100%;
    box-sizing: border-box;
}

.dflex-auth-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
}

.dflex-auth-subtitle {
    color: var(--dflex-color-text-muted, #666);
    font-size: 14px;
    margin: 0 0 24px;
}

.dflex-auth-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.dflex-auth-header p {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.dflex-lost-pwd-margin {
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 15px;
}

.dflex-form-row-auth {
    margin-bottom: 16px;
}

.dflex-form-label-auth {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.dflex-account-input {
    width: 100%;
    height: 48px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: var(--dflex-input-padding, 0 16px);
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.dflex-account-input:focus {
    border-color: var(--dflex-color-primary, #E53935);
}

.dflex-required-asterisk {
    color: var(--dflex-color-error, #F44336);
}

.dflex-login-remember-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.dflex-login-remember-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dflex-login-remember-text {
    font-size: 14px;
    margin-left: 8px;
}

.dflex-login-lost-pwd {
    margin: 0;
}

.dflex-login-lost-pwd-link {
    color: var(--dflex-color-primary, #E53935);
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
}

.dflex-btn-auth {
    width: 100%;
}

.dflex-btn-primary {
    /* Base styles handled globally */
}

/* Hover handled globally */

.dflex-btn-outline {
    background: transparent !important;
    color: var(--dflex-btn-bg, var(--dflex-color-primary, #E53935)) !important;
    border: 2px solid var(--dflex-btn-bg, var(--dflex-color-primary, #E53935)) !important;
}

.dflex-btn-outline:hover {
    background: var(--dflex-btn-bg, var(--dflex-color-primary, #E53935)) !important;
    color: var(--dflex-btn-text, #fff) !important;
}

.dflex-social-auth-wrap {
    margin-top: 20px;
    text-align: center;
}

.dflex-social-auth-title {
    font-size: 12px;
    color: var(--dflex-color-text-muted, #888);
    margin-bottom: 10px;
}

.dflex-social-auth-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.dflex-btn-social {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: var(--dflex-btn-radius, 8px);
    flex: 1;
    text-decoration: none;
    color: #fff;
}

.dflex-btn-vk {
    background: #4C75A3;
}

.dflex-btn-google {
    background: #DB4437;
}

.dflex-btn-yandex {
    background: #ff0000;
}

.dflex-btn-telegram {
    background: #0088cc;
}

.dflex-pwd-hint {
    font-size: 13px;
    color: var(--dflex-color-text-muted, #666);
    margin-bottom: 20px;
}

.dflex-login-btn-wrap {
    margin-bottom: 0;
}

/* Lost/Reset Password Forms */
.dflex-lost-password-wrapper {
    max-width: 480px;
    margin: 60px auto;
    padding: 0 16px;
}

.dflex-card-auth {
    text-align: center;
}

.dflex-auth-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--dflex-color-primary-alpha10, rgba(229, 57, 53, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dflex-auth-icon-success {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dflex-form-row-auth-left {
    margin-bottom: 16px;
    text-align: left;
}

.dflex-form-left {
    text-align: left;
}

.dflex-auth-back-wrap {
    margin-top: 20px;
}

.dflex-auth-back-link {
    color: var(--dflex-color-text-muted, #666);
    font-size: 13px;
    text-decoration: none;
}

.dflex-auth-back-link:hover {
    color: var(--dflex-color-primary, #E53935);
}

.shipping small.shipped_via {
    display: none;
}

/* ─── MCL Delivery Block (moved from inline styles) ─── */
.mcl-delivery-type-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
}

.mcl-delivery-type-link {
    color: #e92a28;
    text-decoration: none;
    font-size: 14px;
}

.mcl-delivery-type-link:hover {
    text-decoration: underline;
}

.mcl-add-new-address {
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: all 0.3s;
}

.mcl-add-new-address:hover {
    border-color: #e92a28;
}

.mcl-plus-icon {
    font-size: 24px;
    color: #e92a28;
    margin-bottom: 5px;
}

.mcl-plus-text {
    font-size: 14px;
    font-weight: 500;
}

.mcl-selected-address {
    border: 1px solid #e92a28;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
}

.mcl-selected-address-type {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.mcl-selected-address-value {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.mcl-selected-address-desc {
    color: #666;
    font-size: 13px;
}

/* ─── Order Details Table (moved from inline styles) ─── */
.dflex-order-items-table .product-info-wrap {
    display: flex;
    align-items: center;
}

.dflex-order-items-table .product-qty-cell {
    text-align: center;
}

.dflex-order-items-table .product-total {
    text-align: right;
}

/* ─── Social Login Icons Spacing (moved from inline styles) ─── */
.dflex-btn-social i {
    margin-right: 6px;
}

/* ─── Login Page Styles ─── */
.dflex-login-register-wrapper {
    margin-bottom: 40px;
}

.dflex-login-columns {
    gap: 30px;
}

.dflex-auth-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px;
}

.dflex-auth-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0 0 25px;
}

.dflex-form-row-auth {
    margin-bottom: 18px;
}

.dflex-form-label-auth {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.dflex-required-asterisk {
    color: #e53e3e;
}

.dflex-account-input {
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.2s, background 0.2s;
}

.dflex-account-input:focus {
    outline: none;
    border-color: var(--dflex-color-primary, #E53935);
    background: #fff;
    box-shadow: 0 0 0 3px var(--dflex-color-primary-alpha10, rgba(229, 57, 53, 0.1));
}

.dflex-login-remember-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dflex-login-remember-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.dflex-login-lost-pwd {
    margin: 0;
}

.dflex-login-lost-pwd-link {
    color: #888;
    text-decoration: none;
    font-size: 13px;
}

.dflex-login-lost-pwd-link:hover {
    color: #111;
}

.dflex-pwd-hint {
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}

.dflex-social-auth-wrap {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.dflex-social-auth-title {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}

.dflex-social-auth-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}