/* ==================================================
   Restfull Account Dashboard - PriceOye Style Layout
================================================== */

/* Hide old account hero only on dashboard */
body.restfull-account-dashboard-view .restfull-account-page-hero, 
body.woocommerce-account .restfull-account-page:has(.rf-po-account) .restfull-account-page-hero {
    display: none !important;
}

/* Make Woo account dashboard full-width */
body.restfull-account-dashboard-view .woocommerce, 
body.woocommerce-account .woocommerce:has(.rf-po-account) {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.restfull-account-dashboard-view .woocommerce-MyAccount-navigation, 
body.woocommerce-account .woocommerce:has(.rf-po-account) > .woocommerce-MyAccount-navigation {
    display: none !important;
}

body.restfull-account-dashboard-view .woocommerce-MyAccount-content, 
body.woocommerce-account .woocommerce:has(.rf-po-account) > .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

body.restfull-account-dashboard-view .restfull-account-page-content {
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Full width dashboard */
.rf-po-account {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #f2f4f7;
    min-height: 70vh;
    overflow: hidden;
}

.rf-po-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Blue profile hero */
.rf-po-hero {
    position: relative;
    background: var(--primary);
    min-height: 225px;
    padding: 46px 0 86px;
    overflow: hidden;
}

.rf-po-hero .rf-po-inner {
    position: relative;
    min-height: 130px;
}

.rf-po-user {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 2;
    margin-top: 26px;
}

.rf-po-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.rf-po-user-info h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}

.rf-po-user-info span {
    display: inline-block;
    background: #ffe500;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 7px;
}

.rf-po-user-info small {
    display: block;
    color: rgba(255,255,255,0.88);
    font-size: 13px;
}

.rf-po-settings {
    position: absolute;
    top: 0;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 3;
    transition: all 0.25s ease;
}

.rf-po-settings:hover {
    background: rgba(255,255,255,0.15);
}

.rf-po-settings svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rf-po-watermark {
    position: absolute;
    right: -55px;
    bottom: -100px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 105px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.98;
    z-index: 1;
}

/* Main dashboard */
.rf-po-main {
    margin-top: -42px;
    position: relative;
    z-index: 4;
    padding-bottom: 54px;
}

/* Panels */
.rf-po-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 18px;
}

.rf-po-panel, 
.rf-po-section {
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 0;
    padding: 28px 26px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
}

.rf-po-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.rf-po-panel-head h3, 
.rf-po-section h3 {
    margin: 0;
    color: #111827;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.2;
}

.rf-po-panel-head span {
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 999px;
}

/* Icon grids */
.rf-po-icon-grid, 
.rf-po-service-grid, 
.rf-po-profile-grid {
    display: grid;
    align-items: center;
}

.rf-po-orders-grid {
    grid-template-columns: repeat(6, 1fr);
}

.rf-po-help-grid {
    grid-template-columns: repeat(5, 1fr);
}

.rf-po-service-grid {
    grid-template-columns: repeat(3, 1fr);
}

.rf-po-profile-grid {
    grid-template-columns: repeat(2, 1fr);
}

.rf-po-section {
    margin-bottom: 18px;
}

.rf-po-section h3 {
    margin-bottom: 24px;
}

/* Tiles */
.rf-po-tile {
    min-height: 88px;
    padding: 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    text-decoration: none !important;
    color: #111827 !important;
    border-radius: 14px;
    transition: all 0.22s ease;
}

.rf-po-tile:hover {
    background: var(--surface-soft);
    transform:
 translateY(-2px);
}

.rf-po-tile-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: #111827 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.rf-po-tile-icon svg {
    width: 31px;
    height: 31px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rf-po-tile strong {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

/* Remove old dashboard card styling conflicts */
body.woocommerce-account .rf-po-account a {
    color: inherit !important;
}

body.woocommerce-account .rf-po-account svg {
    display: block;
}

/* Mobile */
@media (max-width: 991px) {
    .rf-po-panels {
        grid-template-columns: 1fr;
    }

    .rf-po-orders-grid, 
    .rf-po-help-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rf-po-service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rf-po-hero {
        min-height: 190px;
        padding: 32px 0 72px;
    }

    .rf-po-user {
        margin-top: 18px;
        gap: 14px;
    }

    .rf-po-avatar {
        width: 62px;
        height: 62px;
        font-size: 26px;
    }

    .rf-po-user-info h2 {
        font-size: 20px;
    }

    .rf-po-watermark {
        width: 135px;
        height: 135px;
        font-size: 75px;
        right: -38px;
        bottom: -70px;
    }

    .rf-po-main {
        margin-top: -34px;
    }

    .rf-po-panel, 
    .rf-po-section {
        padding: 22px 14px;
    }

    .rf-po-orders-grid, 
    .rf-po-help-grid, 
    .rf-po-service-grid, 
    .rf-po-profile-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .rf-po-tile {
        min-height: 84px;
    }

    .rf-po-tile-icon svg {
        width: 27px;
        height: 27px;
    }

    .rf-po-tile strong {
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .rf-po-orders-grid, 
    .rf-po-help-grid, 
    .rf-po-service-grid, 
    .rf-po-profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ==================================================
   Restfull Account Dashboard Updated Sections
================================================== */

.rf-po-orders-grid-five {
    grid-template-columns: repeat(5, 1fr) !important;
}

.rf-po-help-grid-four {
    grid-template-columns: repeat(4, 1fr) !important;
}

.rf-po-result-box, 
.rf-po-complaint-form-box {
    background: #ffffff;
    border: 1px solid #e8edf4;
    padding: 28px 26px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
}

.rf-po-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.rf-po-result-head h3 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.rf-po-result-head a {
    color: var(--primary) !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.rf-po-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.rf-po-orders-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e8edf4;
    background: #ffffff;
}

.rf-po-orders-table th {
    background: var(--surface-soft);
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid #e8edf4;
}

.rf-po-orders-table td {
    color: #111827;
    font-size: 14px;
    padding: 15px;
    border-bottom: 1px solid #edf2f7;
}

.rf-po-orders-table tr:last-child td {
    border-bottom: none;
}

.rf-po-status-pill {
    display: inline-block;
    background: var(--surface-soft);
    color: var(--primary);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.rf-po-small-btn {
    display: inline-block;
    background: var(--primary);
    color: #ffffff !important;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
}

.rf-po-small-btn:hover {
    background: var(--primary-dark);
}

.rf-po-empty-state {
    background: var(--surface-soft);
    border: 1px dashed #cfe0ff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.rf-po-empty-state strong {
    display: block;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 6px;
}

.rf-po-empty-state p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.rf-po-success-alert {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
}

.rf-po-complaint-form {
    max-width: 720px;
}

.rf-po-form-row {
    margin-bottom: 18px;
}

.rf-po-form-row label {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 7px;
}

.rf-po-form-row input, 
.rf-po-form-row select, 
.rf-po-form-row textarea {
    width: 100%;
    border: 1px solid #d6deea;
    border-radius: 12px;
    min-height: 48px;
    padding: 11px 14px;
    color: #111827;
    background: #ffffff;
    font-size: 14px;
}

.rf-po-form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.rf-po-complaint-form button {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.rf-po-complaint-form button:hover {
    background: var(--primary-dark);
}

.rf-po-location-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface-soft);
    border: 1px solid #e8edf4;
    border-radius: 18px;
    padding: 24px;
}

.rf-po-location-card span {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rf-po-location-card svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.rf-po-location-card strong {
    display: block;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 4px;
}

.rf-po-location-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Remove Services if old CSS creates spacing */
.rf-po-service-grid {
    display: none !important;
}

/* Mobile */
@media (max-width: 768px) {
    .rf-po-orders-grid-five, 
    .rf-po-help-grid-four, 
    .rf-po-profile-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .rf-po-result-box, 
    .rf-po-complaint-form-box {
        padding: 22px 14px;
    }

    .rf-po-result-head {
        display: block;
    }

    .rf-po-result-head a {
        display: inline-block;
        margin-top: 10px;
    }
}
/* ==================================================
   Restfull Account Popup Modal
================================================== */

.rf-po-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    backdrop-filter: blur(5px);
}

.rf-po-popup-box {
    position: relative;
    width: min(980px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
    animation: rfPopupIn 0.22s ease;
}

@keyframes rfPopupIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

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

.rf-po-popup-close {
    position: sticky;
    top: 14px;
    margin-left: auto;
    margin-right: 14px;
    margin-top: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.rf-po-popup-close:hover {
    background: var(--primary);
    color: #ffffff !important;
}

/* Make result box clean inside popup */
.rf-po-popup-box .rf-po-result-box, 
.rf-po-popup-box .rf-po-complaint-form-box {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 10px 30px 30px !important;
}

/* Popup title area */
.rf-po-popup-box .rf-po-result-head {
    border-bottom: 1px solid #e8edf4;
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.rf-po-popup-box .rf-po-result-head h3 {
    font-size: 24px;
}

/* Hide back link inside popup because close button is enough */
.rf-po-popup-box .rf-po-result-head a {
    display: none !important;
}

/* Better popup table */
.rf-po-popup-box .rf-po-orders-table {
    border-radius: 18px;
    overflow: hidden;
}

.rf-po-popup-box .rf-po-small-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

/* Complaint form inside popup */
.rf-po-popup-box .rf-po-complaint-form {
    max-width: 100%;
}

.rf-po-popup-box .rf-po-complaint-form button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

/* Mobile popup */
@media (max-width: 768px) {
    .rf-po-popup-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .rf-po-popup-box {
        width: 100%;
        max-height: 92vh;
        border-radius: 24px 24px 0 0;
    }

    .rf-po-popup-box .rf-po-result-box, 
    .rf-po-popup-box .rf-po-complaint-form-box {

        padding: 8px 16px 24px !important;
    }

    .rf-po-popup-box .rf-po-result-head h3 {
        font-size: 20px;
    }

    .rf-po-popup-close {
        top: 10px;
        margin-right: 12px;
        margin-top: 12px;
    }
}
/* ==================================================
   Account Popup Button Professional Styling
================================================== */

/* View / Launch Complaint Button inside popup */
.rf-po-popup-box .rf-po-small-btn, 
.rf-po-small-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 76px !important;
    height: 38px !important;
    padding: 0 18px !important;
    background: var(--surface-soft) !important;
    color: var(--primary-dark) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.22s ease !important;
}

/* Hover effect */
.rf-po-popup-box .rf-po-small-btn:hover, 
.rf-po-small-btn:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18) !important;
    transform: translateY(-1px) !important;
}

/* Submit Complaint Button */
.rf-po-popup-box .rf-po-complaint-form button, 
.rf-po-complaint-form button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0 22px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #0f172a !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16) !important;
    transition: all 0.22s ease !important;
}

.rf-po-popup-box .rf-po-complaint-form button:hover, 
.rf-po-complaint-form button:hover {
    background: #1e293b !important;
    border-color: #1e293b !important;
    transform: translateY(-1px) !important;
}

/* Status pill softer */
.rf-po-popup-box .rf-po-status-pill, 
.rf-po-status-pill {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

/* Close button more premium */
.rf-po-popup-close {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}

.rf-po-popup-close:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}
/* ==================================================
   Restfull Professional View Order Page
================================================== */

.rf-view-order-page {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.rf-view-order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e7edf5;
    margin-bottom: 24px;
}

.rf-view-order-back {
    display: inline-flex;
    align-items: center;
    color: var(--primary) !important;
    background: var(--surface-soft);
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
    margin-bottom: 14px;
}

.rf-view-order-header h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.2;
}

.rf-view-order-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.rf-order-status-pill {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 900;
    margin-left: 4px;
}

.rf-order-status-on-hold {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.rf-order-status-processing, 
.rf-order-status-inprocess, 
.rf-order-status-in-process {
    background: var(--surface-soft);
    color: var(--primary-dark);
    border-color: var(--border-strong);
}

.rf-order-status-completed, 
.rf-order-status-delivered {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.rf-order-status-refunded {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.rf-order-print-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.rf-order-print-btn:hover {
    background: #1e293b;
}

.rf-order-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.rf-order-summary-card {
    background: var(--surface-soft);
    border: 1px solid #e7edf5;
    border-radius: 18px;
    padding: 18px;
}

.rf-order-summary-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.rf-order-summary-card strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
}

.rf-order-section {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 24px;
}

.rf-order-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.rf-order-section-head h3, 
.rf-order-address-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 21px;
    font-weight: 900;
}

.rf-order-items {
    display: grid;
    gap: 14px;
}

.rf-order-item {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    align-items: center;
    gap: 16px;
    background: var(--surface-soft);
    border: 1px solid #e7edf5;
    border-radius: 18px;
    padding: 14px;
}

.rf-order-item-image {
    width: 74px;
    height: 74px;
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rf-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rf-order-item-info a, 
.rf-order-item-info strong {
    display: block;
    color: #0f172a !important;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none !important;
    margin-bottom: 6px;
}

.rf-order-item-info span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.rf-order-item-meta {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}

.rf-order-item-meta p {
    margin: 0;
}

.rf-order-item-total {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.rf-order-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.rf-order-total-box {
    display: grid;
    gap: 0;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    overflow: hidden;
}

.rf-order-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 16px;
    border-bottom: 1px solid #e7edf5;
    background: #ffffff;
}

.rf-order-total-row:nth-child(odd) {
    background: var(--surface-soft);
}

.rf-order-total-row:last-child {
    border-bottom: none;
}

.rf-order-total-row span {
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
}

.rf-order-total-row strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    text-align: right;
}

.rf-order-total-row.order-total {
    background: #0f172a;
}

.rf-order-total-row.order-total span, 
.rf-order-total-row.order-total strong {
    color: #ffffff;
}

.rf-order-customer-box {
    display: grid;
    gap: 12px;
}

.rf-order-customer-box p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--surface-soft);
    border: 1px solid #e7edf5;
    border-radius: 14px;
    padding: 14px;
    margin: 0;
}

.rf-order-customer-box span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.rf-order-customer-box strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    text-align: right;
    word-break: break-word;
}

.rf-order-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.rf-order-address-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 22px;
    padding: 22px;
}

.rf-order-address-card h3 {
    margin-bottom: 16px;
}

.rf-order-address-content {
    background: var(--surface-soft);
    border: 1px solid #e7edf5;
    border-radius: 16px;
    padding: 18px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    min-height: 120px;
}

/* Remove old default WooCommerce view-order spacing */
.woocommerce-view-order .woocommerce-MyAccount-content > p:first-child {
    display: none !important;
}

.woocommerce-view-order .woocommerce-order-details, 
.woocommerce-view-order .woocommerce-customer-details {
    display: none !important;
}

/* Mobile */
@media (max-width: 991px) {
    .rf-order-summary-grid, 
    .rf-order-bottom-grid, 
    .rf-order-address-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .rf-view-order-page {
        padding: 18px;
        border-radius: 20px;
    }

    .rf-view-order-header {
        display: block;
    }

    .rf-view-order-header h2 {
        font-size: 24px;
    }

 
   .rf-order-print-btn {
        margin-top: 16px;
    }

    .rf-order-summary-grid, 
    .rf-order-bottom-grid, 
    .rf-order-address-grid {
        grid-template-columns: 1fr;
    }

    .rf-order-item {
        grid-template-columns: 62px 1fr;
    }

    .rf-order-item-image {
        width: 62px;
        height: 62px;
    }

    .rf-order-item-total {
        grid-column: 1 / -1;
        padding-top: 10px;
        border-top: 1px solid #e7edf5;
    }

    .rf-order-customer-box p {
        display: block;
    }

    .rf-order-customer-box strong {
        display: block;
        text-align: left;
        margin-top: 4px;
    }
}

/* Print */
@media print {
    header, 
    footer, 
    .rf-view-order-back, 
    .rf-order-print-btn, 
    .woocommerce-MyAccount-navigation {
        display: none !important;
    }

    .rf-view-order-page {
        box-shadow: none !important;
        border: none !important;
    }
}
/* ==================================================
   Fix View Order Page Center Alignment
================================================== */

body.woocommerce-account.woocommerce-view-order .restfull-account-page {
    background: #f4f7fb !important;
}

body.woocommerce-account.woocommerce-view-order .restfull-account-page-content {
    margin-top: -34px !important;
    padding-bottom: 60px !important;
}

/* Make the whole WooCommerce area centered */
body.woocommerce-account.woocommerce-view-order .woocommerce {
    display: block !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
}

/* Hide sidebar only on View Order page */
body.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-navigation {
    display: none !important;
}

/* Force order detail content to center */
body.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 1180px !important;
    float: none !important;
    clear: both !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Main order card should stay centered */
body.woocommerce-account.woocommerce-view-order .rf-view-order-page {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

/* Fix any old WooCommerce float/margin */
body.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content, 
body.woocommerce-account.woocommerce-view-order .rf-view-order-page {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}
/* ==================================================
   Premium Account Banner for Orders / View Order Pages
================================================== */

body.woocommerce-account .restfull-premium-account-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    min-height: 230px !important;
    padding: 42px 0 78px !important;
    overflow: hidden !important;
    position: relative !important;
}

body.woocommerce-account .restfull-premium-account-container {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
    position: relative !important;
}

body.woocommerce-account .restfull-premium-account-banner-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 700px !important;
}

body.woocommerce-account .restfull-premium-account-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    padding: 8px 15px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    margin-bottom: 16px !important;
    backdrop-filter: blur(6px) !important;
}

body.woocommerce-account .restfull-premium-account-banner h1 {
    margin: 0 0 12px !important;
    color: #ffffff !important;
    font-size: 42px !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.6px !important;
}

body.woocommerce-account .restfull-premium-account-banner p {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    max-width: 680px !important;
}

body.woocommerce-account .restfull-premium-account-banner-shape {
    position: absolute !important;
    right: -44px !important;
    bottom: -118px !important;
    width: 230px !important;
    height: 230px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: var(--primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 120px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    opacity: 0.98 !important;
    z-index: 1 !important;
}

/* Pull content upward to overlap banner like premium card */
body.woocommerce-account .restfull-account-main-endpoint .restfull-account-page-content {
    margin-top: -46px !important;
    padding-bottom: 60px !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Remove old plain account hero if any exists */
body.woocommerce-account .restfull-account-page-hero {
    display: none !important;
}

/* Center endpoint content below banner */
body.woocommerce-account .restfull-account-main-endpoint .woocommerce {
    max-width: 1240px !important;
    margin: 0 auto !important;
}

/* View order content premium card */
body.woocommerce-account.woocommerce-view-order .rf-view-order-page {
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.10) !important;
}

/* Orders page content card */
body.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content, 
body.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content, 
body.woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-content {
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 1px solid #e7edf5 !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08) !important;
}

/* Mobile */
@media (max-width: 768px) {
    body.woocommerce-account .restfull-premium-account-banner {
        min-height: 205px !important;
        padding: 32px 0 66px !important;
    }

    body.woocommerce-account .restfull-premium-account-banner h1 {
        font-size: 32px !important;
    }

    body.woocommerce-account .restfull-premium-account-banner p {
        font-size: 14px !important;
    }

    body.woocommerce-account .restfull-premium-account-banner-shape {
        width: 145px !important;
        height: 145px !important;
        font-size: 78px !important;
        right: -36px !important;
        bottom: -74px !important;
    }

    body.woocommerce-account .restfull-account-main-endpoint .restfull-account-page-content {
        margin-top: -34px !important;
    }
}
/* ==================================================
   Restfull Orders Page - PriceOye Style
================================================== */

/* Hide default Woo account sidebar only on orders page */
body.woocommerce-account .woocommerce:has(.rf-orders-page) .woocommerce-MyAccount-navigation {
    display: none !important;
}

body.woocommerce-account .woocommerce:has(.rf-orders-page) .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 1240px !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Main layout */
.rf-orders-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    width: 100%;
}

/* Left sidebar */
.rf-orders-sidebar {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 0;
    padding: 24px 22px;
    min-height: 250px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.rf-orders-sidebar h3 {
    margin: 0 0 22px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.rf-orders-tabs {
    display: grid;
    gap: 4px;
}

.rf-orders-tabs a {
    display: block;
    padding: 12px 0;
    color: #111827 !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.rf-orders-tabs a:hover, 
.rf-orders-tabs a.is-active {
    color: var(--primary) !important;
}

/* Content */
.rf-orders-content {
    min-width: 0;
}

.rf-orders-content-head {
    background: #ffffff;
    border: 1px solid #e7edf5;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.rf-orders-back {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827 !important;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none !important;
}

.rf-orders-content-head h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

/* Mobile tabs hidden on desktop */
.rf-orders-mobile-tabs {
    display: none;
}

/* List box */
.rf-orders-list-box {
    background: #ffffff;
    border: 1px solid #e7edf5;
    min-height: 520px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

/* Empty state */
.rf-orders-empty {
    min-height: 470px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #111827;
    text-align: center;
}

.rf-orders-empty-icon
 {
    width: 96px;
    height: 96px;
    color: var(--primary);
    margin-bottom: 18px;
}

.rf-orders-empty-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rf-orders-empty h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.rf-orders-empty p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
}

.rf-orders-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff !important;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
}

/* Order list */
.rf-orders-list {
    display: grid;
    gap: 16px;
}

.rf-order-card {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 18px;
    padding: 16px;
    transition: all 0.22s ease;
}

.rf-order-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
}

.rf-order-card-image {
    width: 82px;
    height: 82px;
    background: var(--surface-soft);
    border: 1px solid #e7edf5;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rf-order-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rf-order-card-main {
    min-width: 0;
}

.rf-order-card-title-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.rf-order-card-title-row h3 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.rf-order-card-title-row p {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.rf-order-card-title-row small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.rf-order-status {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 900;
}

.rf-order-status-on-hold {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.rf-order-status-processing, 
.rf-order-status-inprocess, 
.rf-order-status-in-process {
    background: var(--surface-soft);
    color: var(--primary-dark);
    border-color: var(--border-strong);
}

.rf-order-status-completed, 
.rf-order-status-delivered {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.rf-order-status-refunded {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.rf-order-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.rf-order-card-meta span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.rf-order-card-meta strong {
    display: block;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 3px;
}

.rf-order-card-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    color: var(--primary-dark) !important;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    min-height: 40px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.22s ease;
}

.rf-order-card-action a:hover {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}

/* Pagination */
.rf-orders-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.rf-orders-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e7edf5;
    color: #111827 !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
}

.rf-orders-pagination .page-numbers.current, 
.rf-orders-pagination .page-numbers:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important;
}

/* Tablet */
@media (max-width: 991px) {
    .rf-orders-page {
        grid-template-columns: 220px 1fr;
        gap: 18px;
    }

    .rf-order-card {
        grid-template-columns: 72px 1fr;
    }

    .rf-order-card-action {
        grid-column: 1 / -1;
        text-align: right;
    }
}

/* Mobile PriceOye style */
@media (max-width: 768px) {
    body.woocommerce-account .woocommerce:has(.rf-orders-page) .woocommerce-MyAccount-content {
        padding: 0 !important;
    }

    .rf-orders-page {
        display: block;
        width: 100%;
    }

    .rf-orders-sidebar {
        display: none;
    }

    .rf-orders-content-head {
        margin: 0;
        border-left: none;
        border-right: none;
        border-radius: 0;
        padding: 14px 16px;
        box-shadow: none;
    }

    .rf-orders-content-head h2 {
        font-size: 17px;
    }

    .rf-orders-back {
        width: 26px;
        height: 26px;
        font-size: 30px;
    }

    .rf-orders-mobile-tabs {
        display: flex;
        overflow-x: auto;
        gap: 22px;
        background: #ffffff;
        border-bottom: 1px solid #e7edf5;
        padding: 0 16px;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .rf-orders-mobile-tabs::-webkit-scrollbar {
        display: none;
    }

    .rf-orders-mobile-tabs a {
        position: relative;
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        color: #111827 !important;
        font-size: 12px;
        font-weight: 900;
        text-decoration: none !important;
    }

    .rf-orders-mobile-tabs a.is-active {
        color: var(--primary) !important;
    }

    .rf-orders-mobile-tabs a.is-active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        border-radius: 999px 999px 0 0;
        background: var(--primary);
    }

    .rf-orders-list-box {
        border: none;
        min-height: 500px;
        padding: 14px;
        box-shadow: none;
    }

    .rf-orders-empty {
        min-height: 430px;
    }

    .rf-orders-empty-icon {
        width: 86px;
        height: 86px;
    }

    .rf-orders-empty h3 {
        font-size: 15px;
    }

    .rf-orders-empty p {
        font-size: 13px;
    }

    .rf-order-card {
        grid-template-columns: 62px 1fr;
        gap: 12px;
        padding: 13px;
        border-radius: 16px;
    }

    .rf-order-card-image {
        width: 62px;
        height: 62px;
        border-radius: 14px;
    }

    .rf-order-card-title-row {
        display: block;
        margin-bottom: 10px;
    }

    .rf-order-card-title-row h3 {
        font-size: 15px;
    }

    .rf-order-card-title-row p {
        font-size: 13px;
    }

    .rf-order-status {
        margin-top: 8px;
        font-size: 11px;
        padding: 5px 9px;
    }

    .rf-order-card-meta {
        gap: 12px;
    }

    .rf-order-card-action {
        grid-column: 1 / -1;
        text-align: left;
    }

    .rf-order-card-action a {
        width: 100%;
    }
}
/* ==================================================
   Restfull Address Book Page
================================================== */

/* Hide Woo sidebar on Address Book page */
body.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-navigation, 
body.woocommerce-account .woocommerce:has(.rf-address-book-page) .woocommerce-MyAccount-navigation {
    display: none !important;
}

body.woocommerce-account.woocommerce-edit-address .woocommerce, 
body.woocommerce-account .woocommerce:has(.rf-address-book-page) {
    display: block !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
}

body.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content, 
body.woocommerce-account .woocommerce:has(.rf-address-book-page) .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 980px !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Page wrapper */
.rf-address-book-page {
    width: 100%;
}

/* Header */
.rf-address-book-header {
    background: #ffffff;
    border: 1px solid #e7edf5;
    min-height: 62px;
    padding: 0 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.rf-address-book-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rf-address-back {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827 !important;
    font-size: 34px;
    font-weight: 400;
    text-decoration: none !important;
    line-height: 1;
}

.rf-address-book-title h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.rf-address-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff !important;
    border: 1px solid var(--primary);
    border-radius: 4px;
    min-height: 38px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
    transition: all 0.22s ease;
}

.rf-address-add-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Alert */
.rf-address-alert
 {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
}

/* Address list */
.rf-address-list {
    display: grid;
    gap: 18px;
}

.rf-address-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e7edf5;
    min-height: 210px;
    padding: 38px 34px 30px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.rf-address-card-icon {
    width: 28px;
    height: 28px;
    color: #64748b;
    margin-bottom: 10px;
}

.rf-address-card-icon svg, 
.rf-address-delete svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rf-address-delete {
    position: absolute;
    top: 38px;
    right: 34px;
    width: 24px;
    height: 24px;
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: all 0.22s ease;
}

.rf-address-delete:hover {
    color: #ef4444 !important;
}

.rf-address-card-content h3 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.rf-address-card-content strong {
    display: block;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 8px;
}

.rf-address-phone {
    margin: 0 0 10px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.rf-address-text {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    max-width: 760px;
}

.rf-address-edit-btn {
    position: absolute;
    right: 34px;
    bottom: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f97316;
    color: #ffffff !important;
    min-width: 62px;
    min-height: 34px;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
    transition: all 0.22s ease;
}

.rf-address-edit-btn:hover {
    background: #ea580c;
}

/* Empty State */
.rf-address-empty {
    min-height: 420px;
    background: #ffffff;
    border: 1px solid #e7edf5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 36px 18px;
}

.rf-address-empty-icon {
    width: 80px;
    height: 80px;
    color: var(--primary);
    margin-bottom: 18px;
}

.rf-address-empty-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rf-address-empty h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.rf-address-empty p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
}

.rf-address-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff !important;
    border-radius: 4px;
    min-height: 38px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
}

/* Mobile */
@media (max-width: 768px) {
    body.woocommerce-account.woocommerce-edit-address .woocommerce, 
    body.woocommerce-account .woocommerce:has(.rf-address-book-page) {
        padding: 0 !important;
    }

    body.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content, 
    body.woocommerce-account .woocommerce:has(.rf-address-book-page) .woocommerce-MyAccount-content {
        max-width: 100% !important;
    }

    .rf-address-book-header {
        margin: 0;
        border-left: none;
        border-right: none;
        padding: 0 14px;
        min-height: 58px;
    }

    .rf-address-book-title h2 {
        font-size: 17px;
    }

    .rf-address-add-btn {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .rf-address-list {
        gap: 12px;
        padding: 12px;
    }

    .rf-address-card {
        min-height: 190px;
        padding: 28px 18px 70px;
        border-radius: 0;
    }

    .rf-address-delete {
        top: 28px;
        right: 18px;
    }

    .rf-address-card-content h3 {
        font-size: 16px;
    }

    .rf-address-card-content strong, 
    .rf-address-phone, 
    .rf-address-text {
        font-size: 13px;
    }

   
    .rf-address-empty {
        min-height: 430px;
        border-left: none;
        border-right: none;
    }
}
/* ==================================================
   Restfull Address Book Final UI
================================================== */

body.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-navigation {
    display: none !important;
}

body.woocommerce-account.woocommerce-edit-address .woocommerce, 
body.woocommerce-account .woocommerce:has(.rf-address-book-page) {
    display: block !important;
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
}

body.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content, 
body.woocommerce-account .woocommerce:has(.rf-address-book-page) .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 980px !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.rf-address-book-page {
    width: 100%;
}

.rf-address-book-header {
    background: #ffffff;
    border: 1px solid #e7edf5;
    min-height: 62px;
    padding: 0 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.rf-address-book-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rf-address-back {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827 !important;
    font-size: 34px;
    font-weight: 400;
    text-decoration: none !important;
    line-height: 1;
}

.rf-address-book-title h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.rf-address-add-btn, 
.rf-address-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff !important;
    border: 1px solid var(--primary);
    border-radius: 4px;
    min-height: 38px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
}

.rf-address-add-btn:hover, 
.rf-address-empty a:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.rf-address-alert {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
}

.rf-address-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.rf-address-list {
    display: grid;
    gap: 18px;
}

.rf-address-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e7edf5;
    min-height: 210px;
    padding: 38px 34px 30px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.rf-address-card-icon {
    width: 30px;
    height: 30px;
    color: #64748b;
    font-size: 24px;
    margin-bottom: 10px;
}

.rf-address-delete {
    position: absolute;
    top: 38px;
    right: 34px;
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 18px;
}

.rf-address-delete:hover {
    color: #ef4444 !important;
}

.rf-address-card-content h3 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.rf-default-badge {
    display: inline-flex;
    margin-left: 8px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 900;
    vertical-align: middle;
}

.rf-address-card-content strong {
    display: block;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 8px;
}

.rf-address-phone {
    margin: 0 0 10px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.rf-address-text {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    max-width: 760px;
}

.rf-address-card-actions {
    position: absolute;
    right: 34px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rf-address-edit-btn, 
.rf-address-default-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
}

.rf-address-edit-btn {
    background: #f97316;
    color: #ffffff !important;
}

.rf-address-default-btn {
    background: var(--surface-soft);
    color: var(--primary) !important;
    border: 1px solid var(--border-strong);
}

.rf-address-edit-btn:hover {
    background: #ea580c;
}

.rf-address-default-btn:hover {
    background: var(--primary);
    color: #ffffff !important;
}

/* Empty */
.rf-address-empty {
    min-height: 420px;
    background: #ffffff;
    border: 1px solid #e7edf5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 36px 18px;
}

.rf-address-empty-icon {
    width: 80px;
    height: 80px;
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 54px;
}

.rf-address-empty h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.rf-address-empty p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
}

/* Form */
.rf-address-form {
    background: #ffffff;
    border: 1px solid
 #e7edf5;
    padding: 26px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.rf-address-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rf-address-field-wide {
    grid-column: 1 / -1;
}

.rf-address-field label {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 7px;
}

.rf-address-field label span {
    color: #ef4444;
}

.rf-address-field input, 
.rf-address-field select {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0 12px;
    color: #111827;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.rf-address-field input:focus, 
.rf-address-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.rf-address-checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.rf-address-checkbox input {
    width: 16px !important;
    height: 16px !important;
}

.rf-address-live-message {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 700;
}

.rf-address-live-message.is-success {
    color: #16a34a;
}

.rf-address-live-message.is-error {
    color: #dc2626;
}

.rf-address-live-message.is-checking {
    color: var(--primary);
}

.rf-address-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e7edf5;
}

.rf-address-form-actions a, 
.rf-address-form-actions button {
    min-height: 40px;
    border-radius: 4px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rf-address-form-actions a {
    background: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #e2e8f0;
}

.rf-address-form-actions button {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
}

.rf-address-form-actions button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Mobile */
@media (max-width: 768px) {
    body.woocommerce-account.woocommerce-edit-address .woocommerce, 
    body.woocommerce-account .woocommerce:has(.rf-address-book-page) {
        padding: 0 !important;
    }

    body.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content, 
    body.woocommerce-account .woocommerce:has(.rf-address-book-page) .woocommerce-MyAccount-content {
        max-width: 100% !important;
    }

    .rf-address-book-header {
        margin: 0;
        border-left: none;
        border-right: none;
        padding: 0 14px;
        min-height: 58px;
    }

    .rf-address-book-title h2 {
        font-size: 17px;
    }

    .rf-address-add-btn {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .rf-address-list {
        gap: 12px;
        padding: 12px;
    }

    .rf-address-card {
        min-height: 190px;
        padding: 28px 18px 76px;
    }

    .rf-address-delete {
        top: 28px;
        right: 18px;
    }

    .rf-address-card-actions {
        right: 18px;
        bottom: 22px;
    }

    .rf-address-form {
        border-left: none;
        border-right: none;
        padding: 18px 14px;
    }

    .rf-address-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rf-address-form-actions {
        flex-direction: column;
    }

    .rf-address-form-actions a, 
    .rf-address-form-actions button {
        width: 100%;
    }
}
/* ==================================================
   Address Book - Professional Set Default Button
================================================== */

.rf-address-card-actions {
    position: absolute !important;
    right: 34px !important;
    bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Edit button */
.rf-address-edit-btn {
    min-height: 36px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: #f97316 !important;
    color: #ffffff !important;
    border: 1px solid #f97316 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.16) !important;
}

/* Set Default button */
.rf-address-default-btn {
    min-height: 36px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: var(--surface-soft) !important;
    color: var(--primary) !important;
    border: 1px solid var(--border-strong) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.22s ease !important;
}

.rf-address-default-btn:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18) !important;
    transform: translateY(-1px) !important;
}

.rf-address-edit-btn:hover {
    background: #ea580c !important;
    border-color: #ea580c !important;
    transform: translateY(-1px) !important;
}

/* Default badge better look */
.rf-default-badge {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 22px !important;
    margin-left: 8px !important;
    padding: 0 10px !important;
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    vertical-align: middle !important;
}

/* Mobile */
@media (max-width: 768px) {
    .rf-address-card-actions {
        right: 18px !important;
        bottom: 22px !important;
        gap: 8px !important;
    }

    .rf-address-edit-btn, 
    .rf-address-default-btn {
        min-height: 34px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }
}
/* ==================================================
   Address Book - Force Edit + Set Default Same Line
================================================== */

/* Button wrapper */
.rf-address-card-actions {
    position: absolute !important;
    right: 34px !important;
    bottom: 30px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
}

/* Force both buttons to stay inside wrapper */
.rf-address-card-actions .rf-address-edit-btn, 
.rf-address-card-actions .rf-address-default-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: auto !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 36px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Edit button */
.rf-address-card-actions .rf-address-edit-btn {
    background: #f97316 !important;
    color: #ffffff !important;
    border: 1px solid #f97316 !important;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.16) !important;
}

.rf-address-card-actions .rf-address-edit-btn:hover {
    background: #ea580c !important;
    border-color: #ea580c !important;
}

/* Set Default button */
.rf-address-card-actions .rf-address-default-btn {
    background: var(--surface-soft) !important;
    color: var(--primary) !important;
    border: 1px solid var(--border-strong) !important;
    box-shadow: none !important;
}

.rf-address-card-actions .rf-address-default-btn:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .rf-address-card-actions {
        right: 18px !important;
        bottom: 22px !important;
        gap: 8px !important;
    }

    .rf-address-card-actions .rf-address-edit-btn, 
    .rf-address-card-actions .rf-address-default-btn {
        height: 34px !important;
        min-height: 34px !important;
        line-height: 34px !important;
        padding: 0 13px !important;
        font-size: 12px !important;
    }
}
/* ==================================================
   Restfull Account Details Page
================================================== */

/* Hide WooCommerce sidebar on account details page */
body.woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-navigation, 
body.woocommerce-account .woocommerce:has(.rf-account-details-page) .woocommerce-MyAccount-navigation {
    display: none !important;
}

/* Center account details page */
body.woocommerce-account.woocommerce-edit-account .woocommerce, 
body.woocommerce-account .woocommerce:has(.rf-account-details-page) {
    display: block !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
}

body.woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-content, 
body.woocommerce-account .woocommerce:has(.rf-account-details-page) .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 980px !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border:
 none !important;
    box-shadow: none !important;
}

.rf-account-details-page {
    width: 100%;
}

.rf-account-details-form {
    width: 100%;
}

/* Profile top card */
.rf-account-profile-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    min-height: 120px;
    padding: 24px 26px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.rf-account-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
    flex: 0 0 72px;
    box-shadow: 0 12px 24px rgba(67, 174, 242, 0.20);
}

.rf-account-profile-info h2 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}

.rf-account-profile-info p {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.rf-account-profile-info span {
    display: inline-flex;
    background: var(--surface-soft);
    color: var(--primary);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 900;
}

/* Form cards */
.rf-account-form-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    padding: 26px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.rf-account-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 22px;
}

.rf-account-section-head span {
    display: inline-flex;
    background: var(--surface-soft);
    color: var(--primary);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 8px;
}

.rf-account-section-head h3 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.rf-account-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    max-width: 360px;
}

/* Fields */
.rf-account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rf-account-field, 
.woocommerce-account .rf-account-field {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}

.rf-account-field-wide {
    grid-column: 1 / -1;
}

.rf-account-field label {
    display: block !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    margin-bottom: 7px !important;
}

.rf-account-field .required {
    color: #ef4444 !important;
    text-decoration: none !important;
}

.rf-account-field input.input-text, 
.rf-account-field input[type="text"], 
.rf-account-field input[type="email"], 
.rf-account-field input[type="password"] {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    padding: 0 12px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    outline: none !important;
}

.rf-account-field input.input-text:focus, 
.rf-account-field input[type="text"]:focus, 
.rf-account-field input[type="email"]:focus, 
.rf-account-field input[type="password"]:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 1px var(--primary) !important;
}

.rf-account-field small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    margin-top: 7px;
    line-height: 1.45;
}

/* Woo password visibility button fix */
.rf-account-details-page .password-input {
    display: block !important;
    position: relative !important;
}

.rf-account-details-page .show-password-input {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 12px !important;
}

/* Actions */
.rf-account-form-actions {
    background: #ffffff;
    border: 1px solid #e7edf5;
    padding: 18px 26px;
    display: flex;
    justify-content: flex-end;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.rf-account-save-btn, 
.woocommerce-account .rf-account-save-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 24px !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary) !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.rf-account-save-btn:hover, 
.woocommerce-account .rf-account-save-btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Notices */
body.woocommerce-account.woocommerce-edit-account .woocommerce-message, 
body.woocommerce-account.woocommerce-edit-account .woocommerce-error, 
body.woocommerce-account.woocommerce-edit-account .woocommerce-info {
    max-width: 980px !important;
    margin: 0 auto 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

/* Mobile */
@media (max-width: 768px) {
    body.woocommerce-account.woocommerce-edit-account .woocommerce, 
    body.woocommerce-account .woocommerce:has(.rf-account-details-page) {
        padding: 0 !important;
    }

    body.woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-content, 
    body.woocommerce-account .woocommerce:has(.rf-account-details-page) .woocommerce-MyAccount-content {
        max-width: 100% !important;
    }

    .rf-account-profile-card {
        margin: 0 0 12px;
        padding: 20px 16px;
        align-items: flex-start;
    }

    .rf-account-profile-avatar {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 24px;
    }

    .rf-account-profile-info h2 {
        font-size: 20px;
    }

    .rf-account-profile-info p {
        font-size: 13px;
        word-break: break-word;
    }

    .rf-account-form-card {
        padding: 20px 14px;
        margin-bottom: 12px;
        border-left: none;
        border-right: none;
    }

    .rf-account-section-head {
        display: block;
    }

    .rf-account-section-head p {
        margin-top: 10px;
        max-width: 100%;
    }

    .rf-account-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rf-account-form-actions {
        padding: 16px 14px;
        border-left: none;
        border-right: none;
    }

    .rf-account-save-btn, 
    .woocommerce-account .rf-account-save-btn {
        width: 100% !important;
    }
}






/* ==================================================
   Restfull Login / Register Page
================================================== */

.rf-auth-page {
    max-width: 1080px;
    margin: 40px auto 70px;
    padding: 0 16px;
}

.rf-auth-card {
    display: grid;
    grid-template-columns: 1fr 420px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.rf-auth-left {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 44px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.rf-auth-left::after {
    content: "R";
    position: absolute;
    right: -40px;
    bottom: -82px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #ffffff;
    color: #8e3e54;
    font-size: 105px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rf-auth-left span {
    display: inline-flex;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.26);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 16px;
}

.rf-auth-left h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.15;
}

.rf-auth-left p {
    margin: 0;
    max-width: 520px;
    color: rgba(255,255,255,0.92);
    font-size: 15px;
    line-height: 1.7;
}

.rf-auth-right {
    padding: 30px;
}

.rf-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 22px;
}

.rf-auth-tabs a {
    min-height: 40px;
    border-radius: 6px;
    color: #334155 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 900;
}

.rf-auth-tabs a.is-active {
    background: #ffffff;
    color: var(--primary) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

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

.rf-auth-form label {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 7px;
}

.rf-auth-form input.input-text {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
}

.rf-auth-form input.input-text:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    outline: none;
}

.rf-auth-main-btn {
    width: 100%;
    min-height: 44px !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary) !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.rf-auth-main-btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary)
 !important;
}

.rf-auth-lost-password {
    text-align: center;
    margin: 12px 0 0;
}

.rf-auth-lost-password a {
    color: var(--primary) !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.rf-auth-info {
    background: var(--surface-soft);
    border: 1px solid #e7edf5;
    border-radius: 8px;
    padding: 13px 14px;
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 700;
}

@media (max-width: 768px) {
    .rf-auth-page {
        margin: 24px auto 50px;
        padding: 0 12px;
    }

    .rf-auth-card {
        grid-template-columns: 1fr;
    }

    .rf-auth-left {
        padding: 30px 20px 72px;
    }

    .rf-auth-left h1 {
        font-size: 28px;
    }

    .rf-auth-right {
        padding: 22px 16px;
    }
}
/* ==================================================
   Restfull Forgot / Reset Password Small Fixes
================================================== */

.rf-auth-form-title {
    margin: 0 0 18px !important;
    color: #111827 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
}

.rf-auth-form .required {
    color: #ef4444 !important;
    text-decoration: none !important;
}

.rf-auth-form .clear {
    clear: both;
}

.rf-reset-password-page .form-row-first, 
.rf-reset-password-page .form-row-last {
    width: 100% !important;
    float: none !important;
}
body.woocommerce-account .restfull-account-main-endpoint .woocommerce {
    max-width: 1240px !important;
    margin: 40px auto !important;
}

/* Hide default WooCommerce notices on account auth page */
.rf-auth-page .woocommerce-error, 
.rf-auth-page .woocommerce-message, 
.rf-auth-page .woocommerce-info {
    display: none !important;
}

/* Auth Error Popup */
.rf-auth-popup {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.rf-auth-popup.is-visible {
    display: flex;
}

.rf-auth-popup-box {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 26px;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    animation: rfAuthPopupIn 0.22s ease;
}

.rf-auth-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.rf-auth-popup-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}

.rf-auth-popup-box h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    color: #111827;
}

.rf-auth-popup-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.rf-auth-popup-box a {
    color: var(--primary);
    font-weight: 700;
}

@keyframes rfAuthPopupIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

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



/* ==================================================
   Account banner brand alignment — migrated from Additional CSS
================================================== */
body.woocommerce-account .restfull-premium-account-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border-top: 1px solid var(--primary-soft) !important;
}

body.woocommerce-account .restfull-premium-account-badge {
    border-color: rgba(255,255,255,.28) !important;
    background: rgba(255,255,255,.16) !important;
    color: #ffffff !important;
}

body.woocommerce-account .restfull-premium-account-banner h1,
body.woocommerce-account .restfull-premium-account-banner p {
    color: #ffffff !important;
}

body.woocommerce-account .restfull-premium-account-banner-shape {
    background: var(--surface-soft) !important;
    color: var(--primary) !important;
}

body.woocommerce-account .restfull-account-page,
body.woocommerce-account .restfull-account-main-endpoint .restfull-account-page-content {
    background: var(--primary-faint) !important;
}

@media (max-width: 768px) {
    body.woocommerce-account .restfull-premium-account-banner {
        display: none !important;
    }

    body.woocommerce-account .restfull-account-main-endpoint .restfull-account-page-content {
        margin-top: 0 !important;
        padding-top: 18px !important;
        padding-bottom: 42px !important;
    }

    body.woocommerce-account .restfull-account-page-container {
        width: 100% !important;
        padding: 0 12px !important;
    }

    body.woocommerce-account .rf-auth-page {
        padding-top: 0 !important;
    }
}
