/* Main Container */
#custom-login-wrapper {
    display: flex;
    width: 480px;
    max-width: 95%;
    background: #fff;
    border-radius: 35px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: auto;
    margin: 0 auto;
    /* Center it if used in shortcode */
}

/* Ensure body.login specific styles are also applied if we are inside the wrapper */
body.login {
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

/* Hide default elements we don't want or will move (Only on actual login page) */
body.login h1 {
    display: none;
}

body.login #backtoblog,
body.login #nav {
    text-align: center;
    padding: 0;
    margin: 20px 0 0;
}

/* Left Panel (Branding) */
.login-left-panel {
    flex: 1;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    /* Pink to Purple gradient */
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.login-left-panel h2 {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 5px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-left-panel .sub-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.login-left-panel img.hero-image {
    width: 100%;
    max-width: 280px;
    border-radius: 15px;
    margin-bottom: 20px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);  */
    object-fit: cover;
}

.login-left-panel h3 {
    font-size: 22px;
    margin: 10px 0;
    color: #fff;
}

.login-left-panel p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 80%;
    margin: 0 auto;
}

.login-left-panel .copyright {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    opacity: 0.7;
}

/* Right Panel (Form) */
.login-right-panel {
    flex: 1;
    padding: 60px;
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.login-right-panel h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.login-right-panel p.desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Form Styles - Scoped to wrapper or body.login */
body.login form,
#custom-login-wrapper form {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

body.login label,
#custom-login-wrapper label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"],
#custom-login-wrapper input[type="text"],
#custom-login-wrapper input[type="password"],
#custom-login-wrapper input[type="email"] {
    width: 100%;
    height: 50px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: #f9f9f9;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: none;
    color: #333;
    max-width: 100%;
    /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

body.login input[type="password"],
#custom-login-wrapper input[type="password"] {
    letter-spacing: 2px;
    font-weight: 600;
    line-height: normal;
    padding: 12px 15px;
}

body.login input[type="password"]::placeholder,
#custom-login-wrapper input[type="password"]::placeholder {
    letter-spacing: normal;
    font-weight: normal;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
#custom-login-wrapper input[type="text"]:focus,
#custom-login-wrapper input[type="password"]:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 1px #e91e63;
    background: #fff;
    outline: none;
}

body.login .forgetmenot,
#custom-login-wrapper .forgetmenot {
    float: none;
    margin-bottom: 20px;
    display: none;
    /* Hide remember me for cleaner look or style it if needed */
}

body.login .submit,
#custom-login-wrapper .submit {
    float: none;
    margin: 0;
    padding: 0;
}

body.login input[type="submit"],
#custom-login-wrapper input[type="submit"] {
    width: 100%;
    background: #e91e63;
    /* Pink */
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-shadow: none;
    box-shadow: none;
    height: 50px;
    line-height: normal;
}

body.login input[type="submit"]:hover,
#custom-login-wrapper input[type="submit"]:hover {
    background: #d81b60;
}

/* Error Message */
.error-message {
    background-color: #ffe6e6;
    color: #d63031;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Register Form Specifics */
#register-view form p {
    margin-bottom: 1px;
}

#register-view label {
    margin-bottom: 5px;
    display: block;
}

.name-fields-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    /* Adds space between columns */
    width: 100%;
}

.name-field-col {
    flex: 1;
    /* Takes equal width */
    margin-bottom: 0 !important;
}

.name-field-col input {
    width: 100% !important;
    margin-bottom: 20px !important;
}


/* Inline Validation Errors */
.input-error {
    border-color: #d63031 !important;
    background-color: #fff5f5 !important;
}

.field-error-msg {
    color: #d63031;
    font-size: 12px;
    margin-top: -15px;
    margin-bottom: 15px;
    display: block;
}

/* Password Toggle Icon */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    z-index: 10;
}

/* Ensure parent has relative positioning for the icon */
#custom-login-wrapper p {
    position: relative;
}

/* Links */
.login-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.login-links a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
}

.login-links span {
    color: #666;
}

/* Dashboard Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    --primary-color: #e91e63;
    --secondary-color: #9c27b0;
    --bg-light: #f8f9fc;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 35px rgba(233, 30, 99, 0.15);
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --text-main: #333;
    --text-muted: #777;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#custom-dashboard-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    min-height: 600px;
    font-family: 'Inter', 'Outfit', 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mobile-only {
    display: none;
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.user-profile-summary {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
}

.user-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #e91e63;
    padding: 2px;
}

.user-info h3 {
    font-size: 18px;
    margin: 0 0 5px;
    color: #333;
}

.user-info p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.dashboard-menu ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.dashboard-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dashboard-menu li a:hover,
.dashboard-menu li.active a {
    background: #fff5f8;
    color: #e91e63;
    border-left-color: #e91e63;
}

.dashboard-menu li a span {
    margin-right: 15px;
    font-size: 18px;
}

.dashboard-menu li a.logout-link {
    color: #d63031;
}

.dashboard-menu li a.logout-link:hover {
    background: #fff5f5;
    border-left-color: #d63031;
}

/* Main Content */
.dashboard-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: #fff;
}

.login-left-panel {
    display: none !important;
}

.welcome-banner {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);
}

.welcome-banner h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #fff;
}

.welcome-banner p {
    margin: 0;
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(233, 30, 99, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
}

.icon-orders {
    background: #e3f2fd;
    color: #2196f3;
}

.icon-points {
    background: #fff8e1;
    color: #ffc107;
}

.icon-coupons {
    background: #e8f5e9;
    color: #4caf50;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

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

.stat-label {
    font-size: 13px;
    color: #888;
}

/* Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.view-all:hover {
    opacity: 0.8;
    transform: translateX(3px);
}

/* Orders Table */
.orders-table-wrapper {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.custom-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-orders-table th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-size: 13px;
    color: #666;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.custom-orders-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

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

.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

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

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

.status-on-hold {
    background: #fff8e1;
    color: #f57f17;
}

.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-cancelled,
.status-failed {
    background: #ffebee;
    color: #c62828;
}

.btn-view-order {
    padding: 6px 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-view-order:hover {
    background: #e91e63;
    color: #fff;
    border-color: #e91e63;
}

.no-orders {
    padding: 40px;
    text-align: center;
}

.no-orders p {
    color: #888;
    margin-bottom: 20px;
}

.btn-shop-now {
    display: inline-block;
    background: #e91e63;
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-shop-now:hover {
    background: #d81b60;
}

/* Responsive */
@media (max-width: 768px) {
    #custom-dashboard-wrapper {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
        min-height: auto;

        /* Full Width Hack for Flatsome Mobile - v2 Stronger */
        width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding: 0 !important;
        max-width: 100vw !important;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: none;
        position: sticky;
        top: 0;
        z-index: 99;
        box-shadow: none;
    }

    /* Visibility Utilities */
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Compact User Profile for Mobile */
    .user-profile-summary {
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: none;
    }

    .user-avatar img {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
        margin-right: 0;
        border-width: 2px;
    }

    .user-info h3 {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .user-info p {
        font-size: 12px;
    }

    /* Grid Menu (2 Columns) */
    .dashboard-menu {
        background: transparent;
        width: 100%;
        padding: 10px;
    }

    .dashboard-menu ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    .dashboard-menu li {
        width: 100%;
        margin-left: 0 !important;
        /* Fix Flatsome indent */
        list-style: none !important;
    }

    .dashboard-menu li a {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 15px;
        border-radius: 12px;
        background: #fff;
        font-size: 14px;
        font-weight: 500;
        border: 1px solid #eee;
        color: #333;
        height: auto;
        aspect-ratio: auto;
        text-align: left;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
        position: relative;
        transition: all 0.2s;
    }

    /* Icon Style */
    .dashboard-menu li a span {
        margin-right: 12px;
        margin-bottom: 0;
        font-size: 24px;
        display: flex;
        align-items: center;
        width: 32px;
        height: 32px;
        justify-content: center;
    }

    /* Arrow Icon on the right */
    .dashboard-menu li a::after {
        content: '\f345';
        /* dashicons-arrow-right-alt2 */
        font-family: 'dashicons';
        position: absolute;
        right: 15px;
        color: #ccc;
        font-size: 16px;
    }

    /* Active State & Hover */
    .dashboard-menu li a:hover,
    .dashboard-menu li.active a {
        background: #fff;
        border-color: #e91e63;
        box-shadow: 0 4px 12px rgba(233, 30, 99, 0.1);
        transform: translateY(-2px);
        color: #e91e63;
    }

    /* Colors for Icons */
    /* Overview - Dashboard - Blue */
    .dashboard-menu li:nth-child(1) a span {
        color: #2196f3;
    }

    /* Wishlist - Heart - Red */
    .dashboard-menu li:nth-child(2) a span {
        color: #f44336;
    }

    /* Compare - Layout - Orange */
    .dashboard-menu li:nth-child(3) a span {
        color: #ff9800;
    }

    /* Orders - List - Green */
    .dashboard-menu li:nth-child(4) a span {
        color: #4caf50;
    }

    /* Profile - User - Purple */
    .dashboard-menu li:nth-child(5) a span {
        color: #9c27b0;
    }

    /* Logout - Migrate - Grey/Red */
    .dashboard-menu li:nth-child(6) a span {
        color: #757575;
    }

    .dashboard-menu li.active a span,
    .dashboard-menu li a:hover span {
        color: inherit;
        /* Use text color on hover/active */
    }

    /* Content Area Adjustment */
    .dashboard-content {
        padding: 0 15px;
    }

    /* Stats Grid for Mobile */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns */
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        margin-right: 0;
        margin-bottom: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .stat-value {
        font-size: 18px;
    }

    /* Table Responsive */
    .custom-orders-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Welcome Banner */
    .welcome-banner {
        padding: 20px;
        border-radius: 10px;
    }

    .welcome-banner h2 {
        font-size: 20px;
    }
}

/* Social Login Placeholder (Visual only) */
.social-login {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.social-login p {
    color: #999;
    font-size: 12px;
    margin-bottom: 15px;
    background: #fff;
    display: inline-block;
    padding: 0 10px;
    position: relative;
    top: -28px;
}

/* Social Login Vertical */
.social-login-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.button-social-vertical {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    padding: 0 20px;
    /* Use 0 padding and fixed height */
    height: 65px;
    /* Fixed height for consistency */
    border-radius: 50px;
    /* Fully rounded */
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.2s;
    border: 1px solid #ddd;
    /* Default border */
    background: #fff;
    color: #333;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.button-social-vertical:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.button-social-vertical svg,
.button-social-vertical .dashicons {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Specific Button Styles */
.button-google {
    color: #333;
    border-color: #ddd;
}

.button-line {
    color: #333;
    border-color: #ddd;
}

.button-facebook {
    color: #333;
    background: #fff !important;
    /* Force white background */
    border-color: #ddd;
}

.button-facebook:hover {
    background: #f5f5f5 !important;
}

/* Toggle Email Button */
.button-email-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    /* Use 0 padding and fixed height */
    height: 65px;
    /* Fixed height to match social buttons */
    border-radius: 50px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-transform: none !important;
    /* Force lowercase/original text */
}

.button-email-login:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.button-email-login .dashicons {
    margin-right: 10px;
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    font-size: 14px;
    margin: 20px 0;
}

.social-login-separator::before,
.social-login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.social-login-separator span {
    padding: 0 10px;
}

/* Responsive */
@media (max-width: 768px) {
    #custom-login-wrapper {
        flex-direction: column;
        width: 100%;
        height: auto;
        border-radius: 25px;
        min-height: 70vh;
    }

    .login-logo {
        display: none !important;
    }

    .login-left-panel {
        display: none !important;
        padding: 30px 20px;
        flex: 0 0 auto;
    }

    .login-left-panel img.hero-image {
        max-width: 150px;
    }

    .login-right-panel {
        padding: 10px 20px;
        flex: 1 0 auto;
    }

    /* Mobile Button Adjustments */
    .button-social-vertical,
    .button-email-login {
        height: 48px !important;
        font-size: 14px !important;
    }
}

/* Modal Styles */
.customlog-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.customlog-modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 40px;
    border: none;
    width: 90%;
    max-width: 420px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

.customlog-close {
    color: #ccc;
    float: right;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 25px;
    cursor: pointer;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customlog-close:hover,
.customlog-close:focus {
    color: #e91e63;
    background: #fff0f5;
    transform: rotate(90deg);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffeef8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.1);
}

.modal-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #e91e63;
}

.customlog-modal h3 {
    margin: 0 0 15px;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.customlog-modal p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 15px;
}

#modal-ack-btn {
    background: linear-gradient(135deg, #e91e63 0%, #d81b60 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
    width: 100%;
}

#modal-ack-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
    background: linear-gradient(135deg, #d81b60 0%, #c2185b 100%);
}

/* Social Login Styles */
.social-login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0 20px;
    color: #888;
    font-size: 13px;
}

.social-login-separator::before,
.social-login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.social-login-separator span {
    padding: 0 10px;
}

.social-login-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.button-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Old social button styles removed */

.button-social .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.to-register {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.to-register a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
}

.to-register a:hover {
    text-decoration: underline;
}

/* Personal Information Tab Styles */
.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
    animation: fadeScale 0.5s ease-out;
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

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

.profile-card {
    background: #fff;
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.profile-card h4 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.profile-card h4 .dashicons {
    color: var(--primary-color);
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.profile-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.profile-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f9f9f9;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-card ul li:last-child {
    border-bottom: none;
}

.profile-card ul li strong {
    color: var(--text-main);
    font-weight: 600;
}

.profile-card address {
    font-style: normal;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 14px;
    background: #f8f9fc;
    padding: 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
}

.btn-edit-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 15px;
    border: none;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.btn-edit-profile:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.3);
    color: #fff;
}

/* Edit Form Styles */
.edit-profile-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: 10px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.edit-profile-form h4 {
    margin: 0 0 30px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}

.edit-profile-form h4::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.edit-profile-form .form-row {
    display: flex;
    gap: 20px;
}

.dynamic-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

.edit-profile-form .form-group {
    margin-bottom: 25px;
    flex: 1 1 100%;
}

.edit-profile-form .form-group.half {
    flex: 1 1 calc(50% - 10px);
    width: calc(50% - 10px);
}

.edit-profile-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .dashicons {
    display: none;
    /* Removed icons as requested */
}

.edit-profile-form input[type="text"],
.edit-profile-form input[type="email"],
.edit-profile-form input[type="tel"],
.edit-profile-form input[type="password"],
.edit-profile-form select,
.edit-profile-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e1e1e1;
    border-radius: var(--border-radius-md);
    font-size: 15px;
    color: var(--text-main);
    transition: var(--transition);
    background-color: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-with-icon:focus-within .dashicons {
    color: var(--primary-color);
}

.edit-profile-form input:focus,
.edit-profile-form select:focus,
.edit-profile-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
    transform: translateY(-1px);
}

.edit-profile-form fieldset {
    border: 1px solid #eee;
    padding: 25px;
    margin: 30px 0;
    border-radius: var(--border-radius-md);
    background: #fdfdfd;
}

.edit-profile-form legend {
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 15px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f1f1f1;
}

.form-actions .button,
.form-actions button {
    height: 50px;
    padding: 0 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.form-actions .button-primary,
.form-actions button[type="submit"] {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.form-actions .button-primary:hover,
.form-actions button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.form-actions .button-secondary,
.form-actions .btn-cancel-edit {
    background: #f1f3f5;
    color: var(--text-muted);
}

.form-actions .button-secondary:hover,
.form-actions .btn-cancel-edit:hover {
    background: #e9ecef;
    color: var(--text-main);
}

.edit-profile-form .button-primary {
    background-color: #e91e63;
    border-color: #e91e63;
    color: white;
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.edit-profile-form .button-primary:hover {
    background-color: #d81b60 !important;
}

.edit-profile-form .button-secondary {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #555;
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
}

.edit-profile-form .button-secondary:hover {
    background-color: #eee;
}

/* Order Details View Styles */
.order-details-content {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #eee;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.order-meta h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #e91e63;
}

.order-date {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.order-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f0f0f0;
    color: #666;
    display: inline-block;
}

/* Status colors reuse previous definitions or add specific ones if missing */
.order-status.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

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

.order-status.status-on-hold {
    background: #fff3e0;
    color: #ef6c00;
}

.order-status.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.order-items-table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: separate;
    border-spacing: 0;
}

.order-items-table th {
    text-align: left;
    padding: 12px;
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
    color: #555;
    font-weight: 600;
}

.order-items-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.order-items-table tfoot th {
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}

.order-items-table tfoot td {
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
    color: #333;
}

.order-items-table tfoot tr:last-child td {
    color: #e91e63;
    font-size: 16px;
}

.order-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    background: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.address-col h4 {
    margin: 0 0 15px;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.address-col address {
    font-style: normal;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.back-to-orders {
    text-decoration: none;
    color: #666;
    margin-right: 10px;
    transition: color 0.2s;
}

.back-to-orders:hover {
    color: #e91e63;
}

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

.loading-spinner .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    animation: spin 2s infinite linear;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Wishlist & Compare Wrappers */
.wishlist-content-wrapper,
.compare-content-wrapper {
    background: #fff;
    padding: 10px;
    overflow-x: auto;
}

/* YITH Table overrides to fit dashboard */
.wishlist-content-wrapper table.shop_table,
.compare-content-wrapper table.compare-list {
    width: 100%;
    border: none;
    margin-bottom: 0;
}

.compare-content-wrapper .dataTables_wrapper {
    padding-bottom: 20px;
}

/* Hide YITH Wishlist Title 'My wishlist' inside our tab */
.wishlist-content-wrapper h2 {
    display: none;
}

/* Modern Section Header */
.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.section-header-modern .header-text h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #333;
}

.section-header-modern .header-text p {
    margin: 0;
    font-size: 14px;
    color: #888;
}

.section-header-modern .header-icon {
    width: 40px;
    height: 40px;
    background: #fce4ec;
    color: #e91e63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header-modern .header-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Empty State Container */
.empty-state-container {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    /* Box shadow is usually handled by parent .section-container, but ensuring clean look */
}

.empty-state-container .empty-icon {
    display: inline-flex;
    position: relative;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow like image */
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.empty-state-container .empty-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #ccc;
    /* Default greyish heart */
}

.empty-state-container .empty-icon .notification-dot {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 10px;
    height: 10px;
    background: #ff4081;
    /* Pink dot */
    border-radius: 50%;
    border: 2px solid #fff;
}

.empty-state-container h4 {
    font-size: 18px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.empty-state-container p {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-empty-cta {
    background: #e91e63 !important;
    /* Pink button */
    border: none !important;
    border-radius: 50px !important;
    /* Pill shape */
    padding: 10px 30px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-empty-cta:hover {
    background: #d81b60 !important;
    transform: translateY(-2px);
}

.btn-empty-cta .dashicons {
    margin-right: 5px;
}

/* Sidebar Update to match Mockup (Pink Highlight) */
.dashboard-menu li.active {
    /* Light pink bg */
    border-right: none;
    border-radius: 0 8px 8px 0;
    /* Rounded on right side */
    color: #e91e63;
}

.dashboard-menu li.active a {
    color: #e91e63;
    font-weight: 600;
}

.dashboard-menu li.active .dashicons {
    color: #e91e63;
}

/* Compact Additional Addresses List */
.additional-addresses-list-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.additional-addr-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    position: relative;
    transition: all 0.2s;
}

.additional-addr-item:hover {
    border-color: #e91e63;
    background: #fff;
}

.additional-addr-item .addr-icon {
    color: #e91e63;
    opacity: 0.7;
}

.additional-addr-item .addr-details {
    flex: 1;
}

.additional-addr-item .addr-details p,
.additional-addr-item .addr-details address {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    font-style: normal;
}

.additional-addr-item .addr-details .addr-name {
    color: #333;
    margin-bottom: 2px;
    font-size: 14px;
}

.addr-item-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.addr-item-actions button {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 2px;
    transition: color 0.2s;
}

.addr-item-actions .btn-edit-additional:hover {
    color: #2196f3;
}

.addr-item-actions .btn-delete-additional:hover {
    color: #f44336;
}

.no-additional-addr-compact {
    font-size: 13px;
    color: #999;
    text-align: center;
    padding: 20px;
    border: 1px dashed #eee;
    border-radius: 10px;
    margin: 0;
}

.addr-limit-info {
    font-size: 11px;
    color: #bbb;
    margin-top: 15px;
    text-align: center;
    font-style: italic;
}

/* Modal Enhancements */
.customlog-modal,
.customlog-modal-overlay {
    display: none;
    position: fixed;
    z-index: 100000;
    /* Extremely high to ensure it's on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.customlog-modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 25px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.customlog-close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.customlog-close-modal:hover {
    color: #333;
}


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

#additional-address-form label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

#additional-address-form input {
    margin-bottom: 0 !important;
}

.form-message {
    margin-bottom: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
}

.form-message.success-message {
    color: #2e7d32;
    background-color: #e8f5e9;
}

.form-message.error-message {
    color: #d32f2f;
    background-color: #ffebee;
}

/* Confirm Delete Modal Styles */
.confirm-modal {
    max-width: 400px !important;
    text-align: center;
    padding: 30px !important;
    border-radius: 20px !important;
}

.warning-icon {
    color: #ffa000;
    margin-bottom: 15px;
}

.warning-icon .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.confirm-modal h3 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    color: #333 !important;
    font-size: 22px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

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

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-modal-actions .button {
    padding: 10px 25px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px !important;
}

.button-danger {
    background-color: #d32f2f !important;
    color: white !important;
    border: none !important;
}

.button-danger:hover {
    background-color: #b71c1c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.button-secondary {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6 !important;
}

.button-secondary:hover {
    background-color: #e9ecef !important;
    color: #495057 !important;
}

/* Checkout Address Selector */
.customlog-address-selector-wrapper {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
}

.customlog-address-selector-wrapper .selector-title {
    margin-top: 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customlog-address-selector-wrapper .selector-title .dashicons {
    color: #ff5e00;
}

.customlog-address-selector-wrapper .selector-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.address-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.address-option-card {
    position: relative;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.address-option-card:hover {
    border-color: #ff5e00;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.address-option-card.active {
    border-color: #ff5e00;
    background-color: #fff9f5;
}

.address-option-card .card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #eee;
    color: #666;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.address-option-card.active .card-badge {
    background: #ff5e00;
    color: #fff;
}

.address-option-card .addr-name {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #333;
}

.address-option-card .addr-details {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
}

.address-option-card .addr-phone {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.btn-select-address {
    margin-top: 15px;
    width: 100%;
    padding: 8px !important;
    background: #eee !important;
    color: #333 !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s;
}

.address-option-card:hover .btn-select-address {
    background: #ff5e00 !important;
    color: #fff !important;
}

.address-option-card.active .btn-select-address {
    background: #ff5e00 !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .address-options-grid {
        grid-template-columns: 1fr;
    }
}

/* Toggle logic for showing/hiding manual form if needed */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper.show-form {
    display: block !important;
}

/* Button to show/hide manual form */
.btn-toggle-manual-address {
    margin-top: 10px;
    background: none !important;
    border: none !important;
    color: #ff5e00 !important;
    text-decoration: underline !important;
    cursor: pointer;
    font-size: 14px;
    padding: 0 !important;
}

.selector-actions-row {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-add-new-checkout {
    display: inline-block;
    padding: 10px 20px;
    background: #2e7d32;
    color: #fff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.3s;
}

.btn-add-new-checkout:hover {
    background: #1b5e20;
    color: #fff !important;
}

.btn-toggle-manual-address {
    background: #ff5e00 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    border: none !important;
    cursor: pointer;
}

.btn-toggle-manual-address:hover {
    background: #e65100 !important;
}

/* Checkout Add Address Modal */
#checkout-add-address-modal .customlog-modal-content {
    max-width: 1000px;
    width: 70%;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#checkout-add-address-modal h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    color: #333;
    text-align: center;
}

#checkout-additional-address-form .form-group label {
    font-weight: 600;
    color: #444;
}

#checkout-additional-address-form input {
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    padding: 12px !important;
    height: auto !important;
}

#checkout-additional-address-form input:focus {
    border-color: #ff5e00 !important;
    box-shadow: 0 0 0 2px rgba(255, 94, 0, 0.1) !important;
}

.btn-save-address {
    background: #ff5e00 !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save-address:hover {
    background: #e65100 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.2);
}

.btn-cancel-checkout-modal {
    background: #f5f5f5 !important;
    color: #666 !important;
    padding: 12px 30px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    border: none !important;
    cursor: pointer;
}

.btn-cancel-checkout-modal:hover {
    background: #eee !important;
}

.close-checkout-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
}

.close-checkout-modal:hover {
    color: #666;
}

/* --- Premium Checkout UI (Red Theme) --- */
:root {
    --checkout-primary: #e31e24;
    --checkout-primary-hover: #b3151b;
    --checkout-bg-soft: #fff5f5;
    --checkout-border: #eee;
}

.customlog-checkout-wrapper {
    font-family: 'Prompt', sans-serif !important;
    background: #fdfdfd;
    padding: 40px;
    border-radius: 30px;
    max-width: 1200px;
    margin: 40px auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
}

.checkout-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.checkout-left-col {
    flex: 1.5;
}

.checkout-right-col {
    flex: 1;
    position: sticky;
    top: 40px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title span.dashicons {
    color: var(--checkout-primary);
}

/* Address Grid */
.address-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.address-option-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    border: 2px solid var(--checkout-border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.address-option-card:hover {
    border-color: var(--checkout-primary);
    box-shadow: 0 10px 25px rgba(227, 30, 36, 0.08);
    transform: translateY(-3px);
}

.address-option-card.active {
    border-color: var(--checkout-primary);
    background: var(--checkout-bg-soft);
    box-shadow: 0 12px 30px rgba(227, 30, 36, 0.12);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-main {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-additional {
    background: #e0f2fe;
    color: #0369a1;
}

.addr-name {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #111;
    font-weight: 700;
}

.addr-details {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.contact-item .dashicons {
    font-size: 18px;
    color: var(--checkout-primary);
    width: 18px;
    height: 18px;
}

.btn-select-address {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.address-option-card.active .btn-select-address {
    background: var(--checkout-primary);
    color: #fff;
}

/* Add New Button (Dashed) */
.btn-add-new-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 20px;
    background: #fff;
    color: var(--checkout-primary);
    border: 2px dashed var(--checkout-primary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-add-new-checkout:hover {
    background: var(--checkout-bg-soft);
}

/* Modal Styles */
.customlog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 99999;
    padding: 40px 20px;
    overflow-y: auto;
}

.customlog-modal-content {
    background: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 30px;
    padding: 50px;
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

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

.close-checkout-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
    transition: 0.2s;
    font-size: 18px;
    z-index: 10;
}

.close-checkout-modal:hover {
    background: #fee2e2;
    color: var(--checkout-primary);
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: #111;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkout-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.form-full-width {
    grid-column: span 2;
}

.checkout-form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.checkout-form-group input {
    padding: 25px 24px;
    border: 1.8px solid #e5e7eb;
    border-radius: 20px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: 0.2s;
    background: #fcfcfc;
}

.checkout-form-group input:focus {
    border-color: var(--checkout-primary);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(227, 30, 36, 0.08);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-save-address {
    flex: 2;
    padding: 20px;
    background: var(--checkout-primary);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-save-address:hover {
    background: var(--checkout-primary-hover);
}

.btn-cancel-checkout-modal {
    flex: 1;
    padding: 20px;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 18px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
}

/* Responsive Checkout */
@media (max-width: 991px) {
    .customlog-checkout-wrapper {
        padding: 30px 20px;
    }

    .checkout-grid {
        flex-direction: column;
    }

    .checkout-left-col,
    .checkout-right-col {
        width: 100%;
        flex: none;
    }

    .checkout-right-col {
        position: static;
        margin-top: 30px;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .form-full-width {
        grid-column: span 1;
    }

    .customlog-modal-content {
        padding: 30px 20px;
    }
}