/* ============================================================
   DHE Parts - My Account Redesign
   ============================================================ */

/* ----- Layout ----- */
.dhe-myaccount-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    width: 100%;
}

@media (max-width: 768px) {
    .dhe-myaccount-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ----- Navigation Sidebar ----- */
.dhe-account-nav {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: sticky;
    top: 120px;
    align-self: start;
}

.dhe-account-nav__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    background: #333;
    color: #fff;
}

.dhe-account-nav__user img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fdb819;
    object-fit: cover;
}

.dhe-account-nav__user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dhe-account-nav__user-name {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.dhe-account-nav__user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dhe-account-nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.dhe-account-nav ul li {
    margin: 0;
}

.dhe-account-nav ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 24px;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dhe-account-nav ul li a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #888;
    transition: color 0.2s ease;
}

.dhe-account-nav ul li a:hover {
    background: #fdf6e3;
    color: #333;
    border-left-color: #fdb819;
}

.dhe-account-nav ul li a:hover i {
    color: #fdb819;
}

.dhe-account-nav ul li.is-active a {
    background: #fdf6e3;
    color: #333;
    font-weight: 700;
    border-left-color: #fdb819;
}

.dhe-account-nav ul li.is-active a i {
    color: #fdb819;
}

.dhe-account-nav ul li:last-child a {
    color: #c0392b;
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
    padding-top: 15px;
}

.dhe-account-nav ul li:last-child a i {
    color: #c0392b;
}

.dhe-account-nav ul li:last-child a:hover {
    background: #fdf0ef;
    border-left-color: #c0392b;
}

/* ----- Content Area ----- */
.dhe-myaccount-content {
    min-width: 0;
}

/* ----- Dashboard ----- */
.dhe-dashboard__welcome {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.dhe-dashboard__welcome h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #fff;
}

.dhe-dashboard__welcome p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.dhe-dashboard__welcome a {
    color: #fdb819;
    text-decoration: underline;
}

/* ----- Stat Cards ----- */
.dhe-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .dhe-dashboard__stats {
        grid-template-columns: 1fr;
    }
}

.dhe-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dhe-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.dhe-stat-card__icon {
    width: 50px;
    height: 50px;
    background: #fdf6e3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dhe-stat-card__icon i {
    font-size: 20px;
    color: #fdb819;
}

.dhe-stat-card__info {
    display: flex;
    flex-direction: column;
}

.dhe-stat-card__number {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.dhe-stat-card__label {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.dhe-stat-card__link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.dhe-stat-card__link .dhe-stat-card__number {
    font-size: 16px;
}

.dhe-stat-card__link .dhe-stat-card__label {
    color: #fdb819;
    font-weight: 600;
}

/* ----- Recent Orders (Dashboard) ----- */
.dhe-dashboard__recent {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.dhe-dashboard__recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.dhe-dashboard__recent-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.dhe-view-all {
    font-size: 13px;
    color: #fdb819;
    font-weight: 600;
    text-decoration: none;
}

.dhe-view-all:hover {
    color: #e5a616;
}

.dhe-recent-order {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s ease;
}

.dhe-recent-order:last-child {
    border-bottom: none;
}

.dhe-recent-order:hover {
    background: #fafafa;
}

.dhe-recent-order__id a {
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.dhe-recent-order__id a:hover {
    color: #fdb819;
}

.dhe-recent-order__date {
    font-size: 13px;
    color: #888;
}

.dhe-recent-order__total {
    font-weight: 700;
    color: #333;
    text-align: right;
}

/* ----- Status Badges ----- */
.dhe-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.dhe-status-badge--completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.dhe-status-badge--processing {
    background: #e3f2fd;
    color: #1565c0;
}

.dhe-status-badge--on-hold {
    background: #fff3e0;
    color: #e65100;
}

.dhe-status-badge--pending {
    background: #fff8e1;
    color: #f57f17;
}

.dhe-status-badge--cancelled,
.dhe-status-badge--refunded,
.dhe-status-badge--failed {
    background: #fce4ec;
    color: #c62828;
}

.dhe-status-badge--gplsquote-req {
    background: #ede7f6;
    color: #4527a0;
}

/* ----- Orders Page ----- */
.dhe-orders__header {
    margin-bottom: 20px;
}

.dhe-orders__header h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.dhe-order-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.dhe-order-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dhe-order-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.dhe-order-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dhe-order-card__number a {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

.dhe-order-card__number a:hover {
    color: #fdb819;
}

.dhe-order-card__date {
    font-size: 13px;
    color: #888;
}

.dhe-order-card__date i {
    margin-right: 4px;
}

.dhe-order-card__items {
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.dhe-order-card__item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 8px 12px;
    max-width: 280px;
}

.dhe-order-card__item-thumb img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.dhe-order-card__item-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

.dhe-order-card__item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dhe-order-card__item-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.dhe-order-card__item-qty {
    font-size: 12px;
    color: #888;
}

.dhe-order-card__more {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

.dhe-order-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.dhe-order-card__total {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.dhe-order-card__total-label {
    font-size: 13px;
    color: #888;
}

.dhe-order-card__total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.dhe-order-card__total-items {
    font-size: 12px;
    color: #888;
}

.dhe-order-card__actions {
    display: flex;
    gap: 8px;
}

/* ----- Buttons ----- */
.dhe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.dhe-btn--primary,
.dhe-btn--view {
    background: #fdb819;
    color: #333;
}

.dhe-btn--primary:hover,
.dhe-btn--view:hover {
    background: #e5a616;
    color: #333;
}

.dhe-btn--pay {
    background: #333;
    color: #fff;
}

.dhe-btn--pay:hover {
    background: #555;
    color: #fff;
}

.dhe-btn--cancel {
    background: transparent;
    color: #c0392b;
    border: 1px solid #c0392b;
}

.dhe-btn--cancel:hover {
    background: #c0392b;
    color: #fff;
}

.dhe-btn--outline {
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
}

.dhe-btn--outline:hover {
    border-color: #fdb819;
    color: #fdb819;
}

/* ----- Pagination ----- */
.dhe-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.dhe-pagination__info {
    font-size: 14px;
    color: #888;
}

/* ----- Empty State ----- */
.dhe-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dhe-empty-state__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #fdf6e3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dhe-empty-state__icon i {
    font-size: 32px;
    color: #fdb819;
}

.dhe-empty-state h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #333;
}

.dhe-empty-state p {
    color: #888;
    margin: 0 0 24px;
}

/* ----- WooCommerce form overrides ----- */
.dhe-myaccount-content .woocommerce-EditAccountForm,
.dhe-myaccount-content .woocommerce-address-fields {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 30px;
}

.dhe-myaccount-content .woocommerce-EditAccountForm .woocommerce-Button,
.dhe-myaccount-content .woocommerce-address-fields .button {
    background: #fdb819;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dhe-myaccount-content .woocommerce-EditAccountForm .woocommerce-Button:hover,
.dhe-myaccount-content .woocommerce-address-fields .button:hover {
    background: #e5a616;
}

.dhe-myaccount-content .woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .dhe-myaccount-content .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}

.dhe-myaccount-content .woocommerce-Address {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 24px;
}

.dhe-myaccount-content .woocommerce-Address .woocommerce-Address-title h3 {
    font-size: 16px;
    margin: 0 0 12px;
    color: #333;
}

.dhe-myaccount-content .woocommerce-Address .woocommerce-Address-title a {
    color: #fdb819;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}

/* ----- Downloads ----- */
.dhe-myaccount-content .woocommerce-table--order-downloads {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    width: 100%;
}

/* ----- Override old WooCommerce classes ----- */
.woocommerce-MyAccount-navigation {
    display: none !important;
}

.woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .dhe-account-nav {
        position: static;
    }

    .dhe-order-card__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dhe-order-card__bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .dhe-order-card__actions {
        width: 100%;
    }

    .dhe-order-card__actions .dhe-btn {
        flex: 1;
        text-align: center;
    }

    .dhe-recent-order {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .dhe-dashboard__welcome {
        padding: 20px;
    }

    .dhe-dashboard__welcome h2 {
        font-size: 18px;
    }
}

/* ============================================================
   DHE Parts - Login / Register Page
   ============================================================ */

.dhe-auth-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.dhe-auth-grid {
    display: grid;
    gap: 30px;
}

.dhe-auth-grid--two {
    grid-template-columns: 1fr 1fr;
}

.dhe-auth-grid--one {
    grid-template-columns: minmax(0, 480px);
    justify-content: center;
}

@media (max-width: 768px) {
    .dhe-auth-grid--two {
        grid-template-columns: 1fr;
    }
}

.dhe-auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dhe-auth-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.dhe-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fdb819 0%, #f5a200 100%);
}

.dhe-auth-card--register::before {
    background: linear-gradient(90deg, #333 0%, #555 100%);
}

.dhe-auth-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fdf6e3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.dhe-auth-card__icon i {
    font-size: 28px;
    color: #fdb819;
}

.dhe-auth-card--register .dhe-auth-card__icon {
    background: #333;
}

.dhe-auth-card--register .dhe-auth-card__icon i {
    color: #fdb819;
}

.dhe-auth-card__title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin: 0 0 8px;
    font-weight: 700;
}

.dhe-auth-card__subtitle {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin: 0 0 30px;
}

.dhe-auth-form {
    margin: 0;
}

.dhe-form-field {
    margin-bottom: 18px;
}

.dhe-form-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.dhe-form-field label i {
    color: #fdb819;
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.dhe-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dhe-input:focus {
    outline: none;
    border-color: #fdb819;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(253, 184, 25, 0.15);
}

.dhe-input::placeholder {
    color: #aaa;
}

.dhe-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.dhe-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.dhe-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #fdb819;
    cursor: pointer;
    margin: 0;
}

.dhe-forgot-link {
    font-size: 13px;
    color: #fdb819;
    font-weight: 600;
    text-decoration: none;
}

.dhe-forgot-link:hover {
    color: #e5a616;
    text-decoration: underline;
}

.dhe-auth-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dhe-auth-btn--primary {
    background: linear-gradient(135deg, #fdb819 0%, #f5a200 100%);
    color: #333;
}

.dhe-auth-btn--primary:hover {
    background: linear-gradient(135deg, #f5a200 0%, #e09800 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(253, 184, 25, 0.3);
    color:white !important;
}

.dhe-auth-btn--secondary {
    background: #333;
    color: #fff;
}

.dhe-auth-btn--secondary:hover {
    background: #444;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.dhe-auth-info {
    background: #fdf6e3;
    border-left: 3px solid #fdb819;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #6b5012;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.dhe-auth-info i {
    color: #fdb819;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Hide default WooCommerce login styles when our custom is active */
.dhe-auth-wrapper + .u-columns {
    display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
    .dhe-auth-card {
        padding: 30px 24px;
    }

    .dhe-auth-card__title {
        font-size: 20px;
    }

    .dhe-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ----- Spacing tweaks for login/register cards ----- */

/* More space between subtitle and form fields */
.dhe-auth-card .dhe-auth-form {
    margin-top: 10px;
}

.dhe-auth-card .dhe-auth-form > .dhe-form-field:first-child,
.dhe-auth-card .dhe-auth-form > p:first-child {
    margin-top: 8px;
}

/* WooCommerce privacy text (register form) - add space before button */
.dhe-auth-card .woocommerce-privacy-policy-text,
.dhe-auth-card .woocommerce-form-register p:not(.dhe-form-row):not(.form-row) {
    margin: 16px 0 24px;
    font-size: 13px;
    color: #777;
    line-height: 1.6;
}

.dhe-auth-card .woocommerce-privacy-policy-text a {
    color: #fdb819;
    text-decoration: underline;
}

/* Ensure buttons have breathing room from any preceding element */
.dhe-auth-card .dhe-auth-btn {
    margin-top: 8px;
}

/* Remove any default WooCommerce form background that might create nested container */
.dhe-auth-card .woocommerce-form,
.dhe-auth-card form {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* ============================================================
   DHE Parts - Address & Account Forms (Edit pages)
   ============================================================ */

/* Form fields layout */
.dhe-myaccount-content .woocommerce-address-fields .form-row,
.dhe-myaccount-content .woocommerce-EditAccountForm .form-row {
    margin-bottom: 18px;
}

.dhe-myaccount-content .woocommerce-address-fields label,
.dhe-myaccount-content .woocommerce-EditAccountForm label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.dhe-myaccount-content .woocommerce-address-fields .input-text,
.dhe-myaccount-content .woocommerce-EditAccountForm .input-text,
.dhe-myaccount-content .woocommerce-address-fields .woocommerce-Input,
.dhe-myaccount-content .woocommerce-EditAccountForm .woocommerce-Input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dhe-myaccount-content .woocommerce-address-fields .input-text:focus,
.dhe-myaccount-content .woocommerce-EditAccountForm .input-text:focus,
.dhe-myaccount-content .woocommerce-address-fields .woocommerce-Input:focus,
.dhe-myaccount-content .woocommerce-EditAccountForm .woocommerce-Input:focus {
    outline: none;
    border-color: #fdb819;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(253, 184, 25, 0.15);
}

/* ----- Select2 Dropdown Fixes ----- */

/* The Select2 selection box (closed state) */
.dhe-myaccount-content .select2-container .select2-selection--single {
    height: auto !important;
    padding: 8px 14px !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    font-size: 14px;
    box-sizing: border-box;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.dhe-myaccount-content .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.4 !important;
    padding: 0 !important;
    color: #333;
}

.dhe-myaccount-content .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 8px !important;
}

.dhe-myaccount-content .select2-container--default.select2-container--focus .select2-selection--single,
.dhe-myaccount-content .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #fdb819 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(253, 184, 25, 0.15);
}

/* Select2 dropdown panel (when opened) - GLOBAL since it renders outside myaccount-content */
.select2-container--open .select2-dropdown {
    border: 2px solid #fdb819 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    background: #fff !important;
    overflow: hidden;
    z-index: 99999 !important;
}

.select2-search--dropdown {
    padding: 10px !important;
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.select2-search--dropdown .select2-search__field {
    padding: 8px 12px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    background: #fafafa !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none !important;
    border-color: #fdb819 !important;
    background: #fff !important;
}

.select2-results {
    background: #fff !important;
}

.select2-results__options {
    background: #fff !important;
    max-height: 250px !important;
    padding: 4px 0 !important;
}

.select2-results__option {
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #333 !important;
    background: #fff !important;
    line-height: 1.4 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
    background: #fdb819 !important;
    color: #333 !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #fdf6e3 !important;
    color: #333 !important;
}

/* Submit buttons in address/account forms */
.dhe-myaccount-content .woocommerce-address-fields button[type="submit"],
.dhe-myaccount-content .woocommerce-EditAccountForm button[type="submit"] {
    background: linear-gradient(135deg, #fdb819 0%, #f5a200 100%) !important;
    color: #333 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 10px;
}

.dhe-myaccount-content .woocommerce-address-fields button[type="submit"]:hover,
.dhe-myaccount-content .woocommerce-EditAccountForm button[type="submit"]:hover {
    background: linear-gradient(135deg, #f5a200 0%, #e09800 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(253, 184, 25, 0.3);
}

/* Form headings */
.dhe-myaccount-content .woocommerce-address-fields h3,
.dhe-myaccount-content .woocommerce-EditAccountForm h3,
.dhe-myaccount-content fieldset legend {
    font-size: 18px;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* ----- Fix Select2 dropdown clipping & button rendering ----- */

/* Remove overflow:hidden that clips the dropdown options */
.select2-container--open .select2-dropdown,
.select2-dropdown {
    overflow: visible !important;
    border: 2px solid #fdb819 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    z-index: 999999 !important;
}

/* Ensure dropdown options show full list with proper height */
.select2-container--open .select2-results,
.select2-dropdown .select2-results {
    background: #fff !important;
    overflow: visible !important;
}

.select2-container--open .select2-results__options,
.select2-dropdown .select2-results__options {
    max-height: 300px !important;
    overflow-y: auto !important;
    background: #fff !important;
    padding: 4px 0 !important;
}

.select2-container--open .select2-results__option,
.select2-dropdown .select2-results__option {
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #333 !important;
    background: #fff !important;
    line-height: 1.4 !important;
    display: block !important;
    cursor: pointer;
}

.select2-container--open .select2-results__option--highlighted,
.select2-dropdown .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
    background: #fdb819 !important;
    color: #333 !important;
}

/* Ensure dropdown is positioned correctly */
.select2-container {
    z-index: 999999 !important;
}

/* ----- Fix Save Address button (remove double gradient) ----- */

.dhe-myaccount-content .woocommerce-address-fields button[type="submit"],
.dhe-myaccount-content .woocommerce-EditAccountForm button[type="submit"],
.dhe-myaccount-content button.button[name="save_address"],
.dhe-myaccount-content button.button[name="save_account_details"] {
    background: #fdb819 !important;
    background-image: none !important;
    color: #333 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    line-height: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: 100%;
    margin-top: 16px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.dhe-myaccount-content .woocommerce-address-fields button[type="submit"]:hover,
.dhe-myaccount-content .woocommerce-EditAccountForm button[type="submit"]:hover,
.dhe-myaccount-content button.button[name="save_address"]:hover,
.dhe-myaccount-content button.button[name="save_account_details"]:hover {
    background: #e5a616 !important;
    background-image: none !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(253, 184, 25, 0.3) !important;
}

/* ----- AGGRESSIVE: Force solid Save Address button ----- */

.woocommerce-MyAccount-content button[name="save_address"],
.woocommerce-MyAccount-content button[name="save_account_details"],
.dhe-myaccount-content button[name="save_address"],
.dhe-myaccount-content button[name="save_account_details"],
form.woocommerce-EditAccountForm button[type="submit"],
form.edit-account button[type="submit"],
.woocommerce-address-fields__field-wrapper + p button[type="submit"],
form .woocommerce-address-fields ~ p button[type="submit"] {
    background: #fdb819 !important;
    background-color: #fdb819 !important;
    background-image: none !important;
    background-attachment: initial !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    width: 100% !important;
    margin-top: 16px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

/* Kill any pseudo-elements that might overlay */
.woocommerce-MyAccount-content button[name="save_address"]::before,
.woocommerce-MyAccount-content button[name="save_address"]::after,
.woocommerce-MyAccount-content button[name="save_account_details"]::before,
.woocommerce-MyAccount-content button[name="save_account_details"]::after,
form.woocommerce-EditAccountForm button[type="submit"]::before,
form.woocommerce-EditAccountForm button[type="submit"]::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.woocommerce-MyAccount-content button[name="save_address"]:hover,
.woocommerce-MyAccount-content button[name="save_account_details"]:hover,
form.woocommerce-EditAccountForm button[type="submit"]:hover {
    background: #e5a616 !important;
    background-color: #e5a616 !important;
    background-image: none !important;
    color: #1a1a1a !important;
}

/* Fix button height/rendering */
.woocommerce-MyAccount-content button[name="save_address"],
.woocommerce-MyAccount-content button[name="save_account_details"],
form.woocommerce-EditAccountForm button[type="submit"] {
    line-height: 20px !important;
}
