/**
 * My Account Page Styles
 * Extracted from inline styles for better performance and caching
 * 
 * @package VoltRide
 * @version 1.0
 */

 /* Background color for main page wrapper - only for non-logged-in users on my-account page */
body.woocommerce-account:not(.logged-in) .wd-page-content.main-page-wrapper {
    background-color: var(--grey-1);
}

/* Login/Register Switch Button - Red/Pink Gradient Style */
.btn.wd-switch-to-register {
    display: flex !important;
    height: 48px;
    padding: 12px 24px !important;
    justify-content: center !important;
    align-items: center;
    border-radius: 48px;
    background: linear-gradient(92deg, #FF6082 0%, #D5153E 89.03%);
    box-shadow: -0.948px -0.948px 10px 0px rgba(18, 59, 29, 0.05),
                1.897px 1.897px 10px 0px rgba(18, 59, 29, 0.12);
    border: none;
    color: white !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 120%;
    text-transform: uppercase;
    letter-spacing: 0.32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.btn.wd-switch-to-register:hover {
    transform: translateY(-1px);
    box-shadow: -1px -1px 12px 0px rgba(18, 59, 29, 0.08),
                2px 2px 12px 0px rgba(18, 59, 29, 0.15);
    opacity: 0.95;
    color: white;
}
.registration-info {
    color: var(--new-green);
}

/* Mobile styles for Login/Register switch button */
@media (max-width: 768px) {
    .btn.wd-switch-to-register {
        height: 40px !important;
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
}

/* Custom Account Header Banner */
.my-account-banner {
    background: linear-gradient(to bottom, rgba(173, 255, 96, 0) 0%, rgba(173, 255, 96, 1) 100%), url(/wp-content/uploads/2025/03/my-account-voltride.png) no-repeat center center;
    background-size: cover;
    background-blend-mode: lighten;
    background-position: center;
    border-radius: var(--8, 8px);
    width: 360px;
    height: 200px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 16px 16px;
}

.banner-title {
    color: var(--volt-green-new-dark, #0F3F36);
    font-family: Biryani;
    font-size: 28px;
    font-style: normal;
    font-weight: 800;
    line-height: 130%;
    letter-spacing: -1.4px;
    margin: 0 0 6px 0;
}

.banner-subtitle {
    color: var(--volt-green-new-dark, #0F3F36);
    font-family: Biryani;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    margin: 0;
}

.wave-emoji {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

@media (max-width: 400px) {
    .my-account-banner {
        width: 100%;
    }
}

/* Account Navigation Styles */
.account-nav-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #ECECEF;
    text-decoration: none;
    position: relative;
    width: 100%;
}

.account-nav-item:hover {
    background-color: rgba(236, 236, 239, 0.3);
}

.account-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.account-label {
    color: #0F3F36;
    font-family: Biryani;
    font-size: 14px;
    font-weight: 600;
    line-height: 110%;
}

.account-arrow {
    width: 9px;
    height: 16px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.is-active .account-nav-item {
    background-color: rgba(255, 96, 130, 0.05);
}

.is-active .account-label {
    color: var(--volt-pink-dark, #FF6082);
}

.is-active .account-icon {
    filter: invert(49%) sepia(74%) saturate(5959%) hue-rotate(321deg) brightness(100%) contrast(99%);
}

.is-active .account-arrow {
    stroke: var(--volt-pink-dark, #FF6082);
}

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

.woocommerce-MyAccount-navigation ul li a {
    padding: 16px;
}

h3.woocommerce-MyAccount-title.entry-title {
    display: none !important;
}

.wd-social-icons.wd-style-default.wd-size-small.social-share.wd-shape-circle.wd-layout-inline.text-center {
    display: none;
}

/* AJAX Loading States */
.my-account-loading {
    opacity: 0.6;
    pointer-events: none;
}

.my-account-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0F3F36;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Empty Wishlist Page Styles (Page ID: 473) */
body.page-id-473 .wd-empty-wishlist:before {
    color: var(--volt-pink-dark);
}

body.page-id-473 .wd-empty-page {
    margin-top: 90px;
    color: var(--new-green);
    font-family: var(--font-primary);
    font-weight: 800;
    letter-spacing: 0.6px;
}

/* Subtext */
body.page-id-473 .wd-empty-page-text {
    font: var(--body-l);
    color: var(--new-green);
    font-weight: 500;
    max-width: 420px;
}

/* CTA button */
body.page-id-473 .return-to-shop .button {
    background: var(--power-lime);
    color: var(--new-green);
    padding: 14px 36px;
    border-radius: var(--radius-32);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.4px;
    will-change: background-color;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-id-473 .return-to-shop .button:hover {
    background: var(--new-green);
    color: var(--new-light-green);
}

/* ============================================
   VoltRide Edit Account Form Styles
   ============================================ */

.voltride-account-form-wrapper {
    max-width: 990px;
    margin: 0;
}

.voltride-edit-account {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Account Sections */
.account-section {
    border: 1px solid var(--grey-1, #ECECEF);
    border-radius: var(--wd-brd-radius, 16px);
    padding: 32px;
    background: var(--white, #FFFFFF);
}

.account-section .section-title {
    color: var(--new-green, #0F3F36);
    font-family: 'Biryani', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1.4px;
    margin: 0 0 12px 0;
}

.account-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
}

/* Form Field Wrapper */
.form-field-wrapper {
    position: relative;
    width: 100%;
}

/* Edit Address specific wrapper */
.voltride-edit-address {
    width: 100%;
}

.voltride-edit-address .account-section {
    width: 100%;
}

/* VoltRide Input Field Styling - High Specificity to Override Woodmart */
.voltride-account-form-wrapper .voltride-input-field {
    position: relative;
    width: 100%;
    background: var(--grey-1, #ECECEF);
    border-radius: 12px;
    min-height: 48px;
    display: block;
    border: none;
    box-shadow: none;
    outline: 2px solid transparent;
    outline-offset: 0;
    transition: outline-color 0.3s ease, outline-offset 0.2s ease;
}

/* Override Woodmart input styles with higher specificity */
.woocommerce-EditAccountForm.voltride-edit-account input[type="email"].voltride-input,
.woocommerce-EditAccountForm.voltride-edit-account input[type="text"].voltride-input,
.woocommerce-EditAccountForm.voltride-edit-account input[type="tel"].voltride-input,
.woocommerce-EditAccountForm.voltride-edit-account input[type="password"].voltride-input,
.woocommerce-EditAccountForm.voltride-edit-account input[type="date"].voltride-input,
.woocommerce-EditAccountForm.voltride-edit-account select.voltride-input,
.voltride-edit-address input[type="text"].voltride-input,
.voltride-edit-address input[type="email"].voltride-input,
.voltride-edit-address input[type="tel"].voltride-input,
.voltride-edit-address select.voltride-input,
.voltride-account-form-wrapper .voltride-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'Biryani', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 3;
    color: var(--new-green, #0F3F36);
    letter-spacing: 0.28px;
    outline: none;
    padding: 12px 50px 4px 23px;
    margin: 0;
    height: 48px;
    box-shadow: none;
    border-radius: 12px;
    transition: none;
}

.voltride-input::placeholder {
    color: var(--grey-3, #7A7A7A);
    opacity: 0;
    transition: opacity 0.2s;
}

.voltride-input:focus::placeholder {
    opacity: 1;
}

.voltride-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Floating Label - Always visible at top with high specificity */
.voltride-account-form-wrapper .voltride-label,
.voltride-account-form-wrapper label.voltride-label {
    position: absolute;
    left: 16px;
    top: -9px;
    background: var(--white, #FFFFFF);
    padding: 2px 8px;
    border-radius: var(--4, 4px);
    font-family: 'Biryani', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--new-green, #0F3F36);
    letter-spacing: 0.66px;
    pointer-events: none;
    z-index: 1;
}

.voltride-account-form-wrapper .voltride-label-static,
.voltride-account-form-wrapper label.voltride-label-static {
    position: absolute;
    left: 16px;
    top: -9px;
    background: var(--white, #FFFFFF);
    padding: 2px 8px;
    border-radius: var(--4, 4px);
    font-family: 'Biryani', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--new-green, #0F3F36);
    letter-spacing: 0.66px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    pointer-events: none;
    z-index: 1;
}

/* Check Icon for Validated Fields */
.field-check-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

/* Valid state - Green checkmark */
.field-check-icon.valid {
    display: flex;
}

.field-check-icon.valid svg path {
    stroke: var(--new-green, #0F3F36);
}

/* Invalid state - Red checkmark */
.field-check-icon.invalid {
    display: flex;
}

.field-check-icon.invalid svg path {
    stroke: var(--sales-red, #B1292B);
}

/* Error state for input field */
.voltride-input-field.has-error {
    background: rgba(177, 41, 43, 0.05);
    border: 1px solid var(--sales-red, #B1292B);
}

/* Valid state for input field */
.voltride-input-field.is-valid {
    background: var(--grey-1, #ECECEF);
}

/* Field Hints */
.field-hint {
    margin: 4px 0 0 24px;
    font-family: 'Biryani', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--grey-3, #7A7A7A);
    letter-spacing: 0.96px;
}

.field-hint.emoji-hint {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Phone Input - Simplified to standard single field */

/* Calendar Icon for Date Input */
.calendar-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.voltride-input[type="date"] {
    padding-right: 50px;
    color-scheme: light;
}

/* Date input styling */
.voltride-input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 24px;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

/* Hide the default date icon on webkit browsers */
.voltride-input[type="date"]::-webkit-inner-spin-button,
.voltride-input[type="date"]::-webkit-clear-button {
    display: none;
}

/* Password Section Specific */
.password-section {
    margin-top: 0;
}

/* Password Field Styling */
.password-field {
    position: relative;
}

.password-field .voltride-input-field {
    position: relative;
}

.password-field .voltride-input {
    padding-right: 50px;
}

.password-field .voltride-label {
    max-width: calc(100% - 80px);
}

.password-field .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
    z-index: 2;
}

/* Override Woodmart default button hover background */
.password-field .toggle-password:hover,
.password-field button.toggle-password:hover {
    opacity: 1;
    background: none;
    background-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.password-field .toggle-password .eye-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.toggle-password .eye-icon path,
.toggle-password .eye-icon circle {
    stroke: var(--grey-3, #7A7A7A);
    transition: stroke 0.3s ease;
}

/* Blue-dark color on hover */
.password-field .toggle-password:hover .eye-icon path,
.password-field .toggle-password:hover .eye-icon circle {
    stroke: var(--blue-dark, #0F3F36);
}

/* Form Actions */
.form-actions {
    display: flex;
    align-items: flex-start;
    padding: 16px 0 0 0;
}

.voltride-submit-btn {
    background: var(--new-green, #0F3F36);
    color: var(--new-light-green, #D8FFB4);
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.28px;
    padding: 8px 16px;
    border-radius: 48px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 33px;
}

.voltride-submit-btn:hover {
    background: var(--new-green, #0F3F36);
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 63, 54, 0.15);
}

/* Focus States */
.voltride-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.voltride-input-field:focus-within {
    outline-color: var(--new-light-green, #D8FFB4);
}

/* Remove all default browser styling - High specificity */
.woocommerce-EditAccountForm.voltride-edit-account input[type="text"].voltride-input,
.woocommerce-EditAccountForm.voltride-edit-account input[type="email"].voltride-input,
.woocommerce-EditAccountForm.voltride-edit-account input[type="tel"].voltride-input,
.woocommerce-EditAccountForm.voltride-edit-account input[type="password"].voltride-input,
.woocommerce-EditAccountForm.voltride-edit-account input[type="date"].voltride-input,
.woocommerce-EditAccountForm.voltride-edit-account select.voltride-input,
.voltride-account-form-wrapper input[type="text"].voltride-input,
.voltride-account-form-wrapper input[type="email"].voltride-input,
.voltride-account-form-wrapper input[type="tel"].voltride-input,
.voltride-account-form-wrapper input[type="password"].voltride-input,
.voltride-account-form-wrapper input[type="date"].voltride-input,
.voltride-account-form-wrapper select.voltride-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    box-shadow: none;
    outline: none;
}

/* Force remove Woodmart/WooCommerce input styling with maximum specificity */
.voltride-account-form-wrapper .woocommerce-EditAccountForm .voltride-input {
    border: none;
    box-shadow: none;
}

.voltride-account-form-wrapper .voltride-input-field input,
.voltride-account-form-wrapper .voltride-input-field select {
    border: none;
    box-shadow: none;
}

/* Select Field (Country/State dropdowns) - Use browser default styling */

/* Textarea Field */
.voltride-textarea-field {
    min-height: auto;
}

.voltride-textarea-field textarea.voltride-input {
    min-height: 120px;
    line-height: 1.5;
    padding: 16px 24px 16px 24px;
    resize: vertical;
}

.voltride-textarea-field .voltride-label {
    top: -9px;
}

/* Edit Address Form Actions */
.voltride-edit-address .form-actions {
    margin-top: 24px;
    padding: 0 16px;
}

.voltride-edit-address .form-actions button[name="save_address"] {
    color: var(--new-light-green, #D8FFB4);
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--new-green, #0F3F36);
    border-radius: var(--radius-48, 48px);
    padding: 12px 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voltride-edit-address .form-actions button[name="save_address"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-section {
        padding: 24px 16px;
    }

    .account-fields {
        padding: 16px 8px;
    }

    .phone-input-group {
        flex-direction: row;
    }

    .country-code-selector {
        width: 100px;
    }
}

/* Hide default WooCommerce elements */
.voltride-account-form-wrapper .woocommerce-error,
.voltride-account-form-wrapper .woocommerce-message {
    margin: 0 0 20px 0;
}

/* Input validation states */
.voltride-input:invalid:not(:placeholder-shown) {
    border-color: var(--sales-red, #B1292B);
}

.voltride-input:valid:not(:placeholder-shown) {
    border-color: var(--new-green, #0F3F36);
}

/* Accessibility improvements */
.voltride-input:focus-visible {
    outline: 2px solid var(--power-lime, #ADFF60);
    outline-offset: 2px;
}

.toggle-password:focus-visible {
    outline: 2px solid var(--power-lime, #ADFF60);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Save Account Details and Address Buttons - High Specificity */
.voltride-account-form-wrapper .woocommerce-EditAccountForm.edit-account.voltride-edit-account button[name="save_account_details"],
.voltride-account-form-wrapper .woocommerce-form.woocommerce-form-edit-account button[name="save_account_details"],
.voltride-account-form-wrapper .woocommerce-EditAccountForm.edit-account button[name="save_account_details"],
.woocommerce .voltride-account-form-wrapper button[name="save_account_details"],
button[name="save_account_details"].voltride-submit-btn,
button[name="save_address"] {
    color: var(--new-light-green, #D8FFB4);
    font: var(--text-uppercase-s);
    text-transform: uppercase;
    word-wrap: break-word;
    background: var(--new-green, #0F3F36);
    border-radius: var(--radius-48);
    padding: 8px 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ============================================
   VoltRide Orders List Styles
   ============================================ */

.voltride-orders-wrapper {
    border: 1px solid var(--grey-1, #ECECEF);
    border-radius: var(--wd-brd-radius, 16px);
    padding: 32px;
    background: var(--white, #FFFFFF);
}

.voltride-orders-title {
    color: var(--new-green, #0F3F36);
    font-family: 'Biryani', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1.4px;
    margin: 0 0 24px 0;
}

/* Orders List */
.voltride-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Order Card */
.voltride-order-card {
    border: 1px solid var(--grey-1, #ECECEF);
    border-radius: var(--12, 12px);
    padding: 16px;
    background: var(--white, #FFFFFF);
    transition: box-shadow 0.2s ease;
}

.voltride-order-card:hover {
    box-shadow: 0 2px 8px rgba(15, 63, 54, 0.08);
}

/* Order Card Header */
.voltride-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--white, #ECECEF);
}

.voltride-order-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
@media (min-width: 1024px) {
    .voltride-order-card-info {
        flex-direction: row;
        gap: 14px;
        align-items: center;
        justify-content: space-between;
    }   
}

.voltride-order-card-number {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.84px;
    color: var(--new-green, #0F3F36);
    margin: 0;
}

.voltride-order-card-date {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--grey-3, #7A7A7A);
}

.voltride-order-view-link {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--new-green, #0F3F36);
    text-decoration: underline;
    text-transform: capitalize;
    transition: opacity 0.2s ease;
}

.voltride-order-view-link:hover {
    opacity: 0.7;
    color: var(--new-green, #0F3F36);
}

/* Order Card Items */
.voltride-order-card-items {
    margin-bottom: 16px;
}

.voltride-order-card-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.voltride-order-card-item-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--8, 8px);
    overflow: hidden;
    background: var(--grey-1, #ECECEF);
}

.voltride-order-card-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voltride-order-card-item-details {
    flex: 1;
    min-width: 0;
}

.voltride-order-card-item-name {
    font-family: 'Biryani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--new-green, #0F3F36);
    margin: 0 0 4px 0;
}

.voltride-order-card-item-price {
    font-family: 'Biryani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--new-green, #0F3F36);
    margin-bottom: 4px;
}

.voltride-order-card-item-meta {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--grey-3, #7A7A7A);
}

.voltride-order-card-more-items {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--grey-3, #7A7A7A);
    margin-top: 8px;
}

/* Order Card Footer */
.voltride-order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--grey-1, #ECECEF);
}

.voltride-order-card-total {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voltride-order-card-total-label {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--new-green, #0F3F36);
}

.voltride-order-card-total-value {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--new-green, #0F3F36);
}

/* Override WooCommerce price styling in order cards */
.voltride-order-card-total-value .woocommerce-Price-amount.amount,
.voltride-order-card-total-value .woocommerce-Price-amount.amount .woocommerce-Price-currencySymbol {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--new-green, #0F3F36);
}

/* Status Badges (shared with view-order page) */
.voltride-status-badge {
    display: inline-flex;
    padding: 2px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    font-family: 'Biryani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-transform: capitalize;
    align-self: flex-start;
}

/* Pending Payment - Yellow/Orange */
.voltride-status-badge.voltride-status-pending,
.voltride-status-badge.voltride-status-pending-payment {
    background: var(--status-pending-bg, #FEC954);
    color: var(--status-pending-text, #B1292B);
}

/* Processing - Light Green with Progress Animation */
.voltride-status-badge.voltride-status-processing {
    background: var(--status-processing-bg, #D8FFB4);
    color: var(--status-processing-text, #0F3F36);
    position: relative;
    overflow: hidden;
    animation: processingPulse 2s ease-in-out infinite;
}

.voltride-status-badge.voltride-status-processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: processingShimmer 2.5s ease-in-out infinite;
}

/* On Hold - Yellow/Orange */
.voltride-status-badge.voltride-status-on-hold {
    background: var(--status-onhold-bg, #FEC954);
    color: var(--status-onhold-text, #B1292B);
}

/* Completed/Delivered - Light Green */
.voltride-status-badge.voltride-status-completed,
.voltride-status-badge.voltride-status-delivered {
    background: var(--status-completed-bg, #D8FFB4);
    color: var(--status-completed-text, #0F3F36);
}

/* Refunded - Grey */
.voltride-status-badge.voltride-status-refunded {
    background: var(--status-refunded-bg, #ECECEF);
    color: var(--status-refunded-text, #7A7A7A);
}

/* Failed/Cancelled - Red */
.voltride-status-badge.voltride-status-failed,
.voltride-status-badge.voltride-status-cancelled {
    background: var(--status-failed-bg, #FFC3C3);
    color: var(--status-failed-text, #B1292B);
}

/* Empty Orders State */
.voltride-orders-empty {
    padding: 48px 24px;
    text-align: center;
}

/* Pagination */
.voltride-orders-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Responsive - Orders */
@media (max-width: 768px) {
    .voltride-orders-wrapper {
        padding: 24px 16px;
    }

    .voltride-orders-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .voltride-order-card {
        padding: 12px;
    }

    .voltride-order-card-item-image {
        width: 64px;
        height: 64px;
    }

    .voltride-order-card-item-name {
        font-size: 14px;
    }

    .voltride-order-card-item-price {
        font-size: 14px;
    }
}

/* ============================================
   VoltRide Addresses Page Styles
   ============================================ */

.voltride-addresses-wrapper {
    border: 1px solid var(--grey-1, #ECECEF);
    border-radius: var(--wd-brd-radius, 16px);
    padding: 32px;
    background: var(--white, #FFFFFF);
}

.voltride-addresses-title {
    color: var(--new-green, #0F3F36);
    font-family: 'Biryani', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1.4px;
    margin: 0 0 24px 0;
}

/* Addresses List */
.voltride-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* Address Card */
.voltride-address-card {
    border: 1px solid var(--grey-1, #ECECEF);
    border-radius: var(--12, 12px);
    padding: 16px 20px;
    background: var(--white, #FFFFFF);
    transition: box-shadow 0.2s ease;
}

.voltride-address-card:hover {
    box-shadow: 0 2px 8px rgba(15, 63, 54, 0.08);
}

/* Address Card Header */
.voltride-address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.voltride-address-card-title {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.84px;
    color: var(--new-green, #0F3F36);
    text-transform: uppercase;
    margin: 0;
}

.voltride-address-card-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.voltride-address-action-link {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--new-green, #0F3F36);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.voltride-address-action-link:hover {
    opacity: 0.7;
    color: var(--new-green, #0F3F36);
}

.voltride-action-delete {
    color: var(--sales-red, #B1292B);
}

.voltride-action-delete:hover {
    color: var(--sales-red, #B1292B);
}

/* Address Card Content */
.voltride-address-card-content {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--new-green, #0F3F36);
}

.voltride-address-card-content address {
    font-style: normal;
    margin: 0 0 8px 0;
}

.voltride-address-phone {
    margin: 0;
    color: var(--new-green, #0F3F36);
}

.voltride-address-empty {
    color: var(--grey-3, #7A7A7A);
    margin: 0;
}

/* Add Address Section */
.voltride-add-address-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--grey-1, #ECECEF);
}

.voltride-add-address-trigger {
    font-family: 'Biryani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--new-green, #0F3F36);
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 20px;
    transition: opacity 0.2s ease;
}

.voltride-add-address-trigger:hover {
    opacity: 0.7;
    color: var(--new-green, #0F3F36);
}

.voltride-add-address-form {
    margin-top: 20px;
}

.voltride-add-address-form .account-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    margin-bottom: 24px;
}

.voltride-add-address-form .form-actions {
    margin-top: 24px;
    padding: 0;
}

.voltride-add-address-button {
    color: var(--new-light-green, #D8FFB4)!important;
    font-family: 'Biryani', sans-serif!important;
    font-size: 14px!important;
    font-weight: 700!important;
    text-transform: uppercase!important;
    background: var(--new-green, #0F3F36)!important;
    border-radius: var(--radius-48, 48px)!important;
    padding: 12px 24px!important;
    display: inline-flex!important;
    justify-content: center!important;
    align-items: center;
    gap: 8px!important;
    border: none!important;
    box-shadow: none!important;
    cursor: pointer!important;
    transition: all 0.3s ease!important;
}

.voltride-add-address-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Responsive - Addresses */
@media (max-width: 768px) {
    .voltride-addresses-wrapper {
        padding: 24px 16px;
    }

    .voltride-addresses-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .voltride-address-card {
        padding: 12px 16px;
    }

    .voltride-address-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .voltride-address-card-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ========================================
   Processing Status Animation
   ======================================== */

@keyframes processingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

@keyframes processingShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ========================================
   Address Section - Two Column Layout
   ======================================== */

.voltride-address-section {
    padding: 16px;
    border-radius: var(--radius-8);
    margin-bottom: 24px;
}

.voltride-address-title {
    font-family: 'Biryani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--new-green, #0F3F36);
    margin: 0 0 4px 0;
}

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

.voltride-address-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voltride-address-row {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.voltride-address-label {
    font-family: 'Biryani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--new-green, #0F3F36);
    line-height: 1.4;
    margin-top: 3px;
}

.voltride-address-value {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--new-green, #0F3F36);
    line-height: 1.6;
}

.voltride-address-contact {
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.voltride-contact-item {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--new-green, #0F3F36);
    line-height: 1.6;
}

.voltride-shipping-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--grey-1, #ECECEF);
}

.voltride-address-same {
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--grey-3, #7A7A7A);
    font-style: italic;
    padding: 8px 0;
}

.voltride-tracking-notice {
    margin-top: 16px;
    font-family: 'Biryani', sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--grey-3, #7A7A7A);
}

/* Responsive - Address Section */
@media (max-width: 768px) {
    .voltride-address-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (min-width: 769px) {
    #customer_login>div:not(:first-child):last-child {
        border-inline-start: 0px solid var(--brdcolor-gray-300);
        background-color: white;
        border-radius: 16px;
        padding: calc(12px + 2vw) calc(16px + 3vw);
    }
}

/* ============================================
   Smart Coupons (My Account)
   ============================================ */

body.voltride-myaccount-smart-coupons .voltride-smart-coupons-wrapper > h2 {
    display: none !important;
}

body.voltride-myaccount-smart-coupons .voltride-smart-coupons-wrapper > p {
    display: none !important;
}

body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content #sc_coupons_list,
body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content #coupons_list,
body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content #invalid_coupons_list {
    border: 1px solid var(--grey-1, #ECECEF);
    border-radius: var(--12, 12px);
    padding: 16px;
    background: var(--white, #FFFFFF);
    margin: 0 0 16px 0;
}

body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content #sc_coupons_list h4,
body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content #coupons_list h4 {
    color: var(--new-green, #0F3F36);
    font-family: 'Biryani', sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0 0 12px 0;
}

body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content #invalid_coupons_list h2 {
    color: var(--new-green, #0F3F36);
    font-family: 'Biryani', sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0 0 8px 0;
}

body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content #invalid_coupons_list p {
    color: var(--volt-green-new-dark, #0F3F36);
    font-family: 'Biryani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0.85;
    margin: 0 0 16px 0;
}

body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content .wc_sc_coupon_actions_wrapper {
    float: none !important;
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px 0;
}

body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content .wc_sc_coupon_actions_wrapper .button {
    height: 40px;
    padding: 10px 16px;
    border-radius: 48px;
    background: var(--volt-green-new-dark, #0F3F36);
    color: #FFFFFF;
    border: none;
    font-family: 'Biryani', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content .wc_sc_coupon_actions_wrapper .button:hover {
    opacity: 0.92;
    color: #FFFFFF;
}

body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content #sc-cc {
    margin-top: 8px;
}

body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content .sc-coupons-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content .sc-coupons-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content .sc-coupon {
    border-radius: var(--12, 12px) !important;
    overflow: hidden;
    box-shadow: none !important;
}

body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content .woocommerce-info,
body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content .woocommerce-message,
body.voltride-myaccount-smart-coupons .woocommerce-MyAccount-content .woocommerce-error {
    border-radius: 16px;
}
