/* My Account Navigation */

.woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-MyAccount-navigation-link.is-active a {
    background: #ddaa9c29;
}

.woocommerce-MyAccount-navigation-link a {
    display: block;
    padding: 15px 65px;
    font-size: 16px;
    position: relative;
}

.woocommerce-MyAccount-navigation-link.is-active a::after {
    content: "";
    position: absolute;
    background-image: url('img/dashbord-hover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    left: 0;
    bottom: 50%;
    transform: translateY(50%);
    width: 15px;
    height: 100%;
}

.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: "";
    position: absolute;
    background-image: url('img/dashboard-icon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    right: 35px;
    bottom: 50%;
    transform: translateY(50%);
    width: 24px;
    height: 24px;
    filter: opacity(0.6);
}

.woocommerce-MyAccount-navigation-link--orders a::before {
    content: "";
    position: absolute;
    background-image: url('img/orders-icon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    right: 37px;
    bottom: 50%;
    transform: translateY(50%);
    width: 18px;
    height: 18px;
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: "";
    position: absolute;
    background-image: url('img/address-icon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    right: 35px;
    bottom: 50%;
    transform: translateY(50%);
    width: 24px;
    height: 24px;
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: "";
    position: absolute;
    background-image: url('img/account-icon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    right: 36px;
    bottom: 50%;
    transform: translateY(50%);
    width: 21px;
    height: 21px;
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: "";
    position: absolute;
    background-image: url('img/log-out-icon.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    right: 36px;
    bottom: 50%;
    transform: translateY(50%);
    width: 21px;
    height: 21px;
}

.woocommerce-MyAccount-navigation-link--payment-methods a::before {
    content: "";
    position: absolute;
    background-image: url('img/payment-icon.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    right: 36px;
    bottom: 50%;
    transform: translateY(50%);
    width: 21px;
    height: 21px;
}

.woocommerce-MyAccount-navigation-link--wishlist a::before {
    content: "";
    position: absolute;
    background-image: url('img/wish-icon.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    right: 36px;
    bottom: 50%;
    transform: translateY(50%);
    width: 21px;
    height: 21px;
}

.woocommerce-MyAccount-navigation-link--return a::before {
    content: "";
    position: absolute;
    background-image: url('img/return-icon.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    right: 36px;
    bottom: 50%;
    transform: translateY(50%);
    width: 21px;
    height: 21px;
}

.woocommerce-MyAccount-navigation-link--courses a::before {
    content: "";
    position: absolute;
    background-image: url('img/learn-svgrepo-com.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    right: 36px;
    bottom: 50%;
    transform: translateY(50%);
    width: 21px;
    height: 21px;
    filter: opacity(0.6);
}

.woocommerce-MyAccount-navigation-link--customer-logout {
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.woocommerce-MyAccount-navigation-link--dashboard.is-active a::before,
.woocommerce-MyAccount-navigation-link--courses.is-active a::before {
    filter: unset
}

.woocommerce-MyAccount-navigation-link--wishlist.is-active a::before,
.woocommerce-MyAccount-navigation-link--return.is-active a::before,
.woocommerce-MyAccount-navigation-link--edit-address.is-active a::before,
.woocommerce-MyAccount-navigation-link--payment-methods.is-active a::before,
.woocommerce-MyAccount-navigation-link--edit-account.is-active a::before,
.woocommerce-MyAccount-navigation-link--orders.is-active a::before {
    filter: brightness(0);
}


.woocommerce-orders-table__cell-order-actions a {
    background-color: unset !important;
    color: #98C2A9 !important;
    position: relative;
    padding: 20px 15px !important;
}

.woocommerce-orders-table__cell-order-actions a::after {
    content: "";
    background-image: url("img/right-arrow.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.woocommerce-orders-table__cell-order-actions a:hover::after {
    right: -10px;
}

.woocommerce-Addresses {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: start;
    align-items: start;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    gap: 40px;
}

.woocommerce-Addresses a {
    background: #98C2A9;
    color: white;
    padding: 5px 15px;
}

.woocommerce-message {
    border-top-color: #98C2A9 !important;
}

.woocommerce-message::before {
    content: "";
    color: #98C2A9 !important;
}


.woocommerce-EditAccountForm {
    margin: 30px 0;
}

.woocommerce-EditAccountForm fieldset legend {
    position: absolute;
    top: 17px;
}

.woocommerce-EditAccountForm fieldset {
    background: #f9fafb;
    padding: 30px 25px;
    position: relative;
    padding-top: 70px;
    margin-bottom: 35px;
    border-radius: 12px;
    border: 1px solid #f1f1f1;
}

.woocommerce-EditAccountForm>p:last-child {
    display: flex;
    justify-content: end;
}

.woocommerce-EditAccountForm>p:last-child button:hover {
    background-color: #83222a;
    color: white;
}

.woocommerce-EditAccountForm>p:last-child button {
    padding: 12px 40px;
    background: #98C2A9;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Account Details and Address Inputs Styling (to match login) */
.woocommerce-EditAccountForm input.input-text,
.woocommerce-address-fields input.input-text,
.woocommerce-EditAccountForm select,
.woocommerce-address-fields select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.woocommerce-EditAccountForm input.input-text:focus,
.woocommerce-address-fields input.input-text:focus {
    border-color: #98C2A9 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(157, 41, 51, 0.1);
}

.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
    border: unset;
    padding: 0;
    margin: 2em 0;
    border-radius: 0;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme {
    position: absolute !important;
    top: unset !important;
    bottom: -10px;
    left: 0 !important;
}

p.woocommerce-LostPassword {
    position: absolute !important;
    right: 0;
    bottom: -10px;
}

.woocommerce-form-register__submit,
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit {
    float: unset;
    margin-right: unset !important;
    width: 100%;
    background-color: #98C2A9 !important;
    color: white !important;
    border-radius: unset !important;
}

.woocommerce-EditAccountForm fieldset p {
    margin-top: 25px !important;
}

.woocommerce-form-register__submit:hover,
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit:hover {
    background-color: #892029 !important;
    color: white !important;
    border-radius: unset !important;
}

.woocommerce .woocommerce-form-login .form-row-cus {
    position: static !important;
}

.woocommerce .woocommerce-form-login {
    position: relative !important;
}

.woocommerce-form-row--wide {
    margin-bottom: 10px !important;
}

.woocommerce-EditAccountForm>p.form-row-wide:last-child {
    margin-top: 20px !important;
}

.woocommerce-form-login>p {
    margin-top: 30px !important;
}

.woocommerce-privacy-policy-text p {
    font-weight: 400;
    color: #0000007a;
    font-size: 14px;
    margin-top: 20px;
}

.tab-active {
    color: #98C2A9 !important;
}

.woocommerce form .form-row.woocommerce-validated .select2-container:not(.select2-container--open) .select2-selection {
    border-color: #7ad03a00;
}

.woocommerce-billing-fields__field-wrapper span.selection .select2-selection {
    border: unset !important;
    margin-top: -10px !important;
}

.woocommerce-address-fields__field-wrapper .select2-selection--single {
    border: unset !important;
    background: unset !important;
    margin-top: -10px !important;
}

.select2-container .select2-selection--single .select2-selection__arrow b {
    margin: -15px 0 0 !important;
}

.woocommerce form .form-row label {
    color: #727272;
}

/* Recent Orders Card Styling */
.order-card-recent {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-card-recent:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: #98C2A933;
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
}

.order-number {
    font-weight: 700;
    color: #111827;
    font-size: 15px;
}

.order-status-badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

/* Status Colors */
.status-completed {
    background: #ecfdf5;
    color: #059669;
}

.status-processing {
    background: #eff6ff;
    color: #2563eb;
}

.status-on-hold {
    background: #fffbeb;
    color: #d97706;
}

.status-pending {
    background: #fef2f2;
    color: #dc2626;
}

.status-cancelled {
    background: #f3f4f6;
    color: #4b5563;
}

.order-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.order-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
}

.meta-value {
    color: #374151;
    font-weight: 500;
}

.total-price {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}

.total-price .meta-value {
    color: #98C2A9;
    font-weight: 700;
    font-size: 15px;
}

.order-card-footer {
    display: flex;
}

/* Order Details Redesign */
.woocommerce-OrderUpdates {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.woocommerce-OrderUpdate {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.woocommerce-OrderUpdate-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-OrderUpdate-description {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* Tracking Section */
.tracking-active {
    border: 1px dashed #98C2A94d;
    background: #98C2A90a;
}

/* Address Card in Order Details */
.woocommerce-customer-details .row>div {
    display: flex;
    flex-direction: column;
}

.woocommerce-customer-details h4 {
    color: #111827;
}

.material-symbols-outlined {
    vertical-align: middle;
    line-height: 1;
}

[dir="rtl"] .material-symbols-outlined {
    transform: scaleX(-1);
}

[dir="rtl"] .no-mirror .material-symbols-outlined,
[dir="rtl"] .material-symbols-outlined.no-mirror {
    transform: none;
}

.view-order-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.view-order-btn:hover {
    background: #98C2A9;
    color: #fff;
    border-color: #98C2A9;
}

.view-order-btn svg {
    transition: transform 0.2s ease;
}

.view-order-btn:hover svg {
    transform: translateX(-3px);
}




/* Return Page Styles - Redesigned */
.return-page-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    color: #333;
}

.return-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.return-description p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.read-policy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 25px;
    border: 1px solid #b3404a;
    color: #b3404a !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: capitalize;
    background: transparent;
}

.read-policy-btn:hover {
    background-color: #b3404a;
    color: #fff !important;
}

.return-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.return-form-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #333;
}

.return-form-subtitle {
    font-size: 14px;
    color: #333;
    margin-bottom: 35px;
}

/* Fieldset Styles */
.return-fieldset {
    border: 1px solid #999;
    padding: 0;
    margin-bottom: 25px;
    position: relative;
    background: white;
}

.return-fieldset legend {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10px;
    margin-left: 10px;
    font-weight: 400;
}

.return-fieldset legend .required {
    color: #b3404a;
    margin-left: 3px;
}

/* Photo Upload Field */
.return-fieldset .photo-upload-container {
    border: 1px dashed #999;
    margin: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.return-fieldset .photo-upload-container:hover {
    border-color: #666;
}

.upload-btn {
    background: transparent;
    border: 1px solid #14b8a6;
    color: #14b8a6;
    padding: 8px 25px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #14b8a6;
    color: white;
}

.upload-hint {
    font-size: 12px;
    color: #888;
    margin: 10px 15px 15px;
    text-align: center;
}

#uploaded-files-preview {
    display: flex;
    gap: 10px;
    margin: 10px 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.preview-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Textarea Field */
.return-fieldset textarea {
    width: 100%;
    min-height: 120px;
    border: none;
    padding: 15px;
    resize: vertical;
    outline: none;
    font-size: 14px;
    color: #333;
}

.return-fieldset textarea::placeholder {
    color: #999;
}

/* Select/Dropdown Field */
.return-fieldset select {
    width: 100%;
    padding: 15px;
    border: none;
    outline: none;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.return-fieldset select:focus {
    border-color: #666;
}

.return-fieldset select option {
    padding: 10px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 35px;
    border: 1px solid #999;
    background: transparent;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    text-transform: none;
    color: #333;
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 500;
    cursor: pointer;
}

/* Submit Button */
.submit-return-btn {
    background-color: #9f2b36;
    color: white;
    padding: 12px 50px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.submit-return-btn:hover {
    background-color: #80222b;
}

.form-submit {
    display: flex;
    justify-content: flex-end;
}

/* Addresses Page Styles */
.addresses-page-container {
    padding: 20px 0;
}

.addresses-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.addresses-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #333;
}

.addresses-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.add-address-btn,
.add-address-btn-center {
    background-color: #9f2b36;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.add-address-btn:hover,
.add-address-btn-center:hover {
    background-color: #80222b;
}

.plus-icon {
    font-size: 20px;
    font-weight: 700;
}

/* Addresses Grid */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.address-card {
    border: 1px solid #e5e7eb;
    background: white;
    padding: 25px;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.address-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #9f2b3633;
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.address-type {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.address-type svg {
    width: 24px;
    height: 24px;
    color: #333;
}

.address-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.address-label {
    font-size: 13px;
    color: #666;
    min-width: 120px;
    flex-shrink: 0;
}

.address-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

/* Empty State */
.addresses-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Address Modal */
.address-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.address-modal.active {
    display: block;
}

.address-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.address-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #333;
}

/* Payment Methods Page Custom Styles */
.payment-method-card {
    transition: all 0.3s ease;
    border-radius: 4px;
}

.payment-method-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Slightly lighter overlay */
    display: none !important;
    /* Force hide by default */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
    /* Subtle blur */
}

.payment-modal-overlay.active {
    display: flex !important;
}

.payment-modal-content {
    background: #FFF;
    /* White background as per Image 0 */
    width: 95%;
    max-width: 500px;
    /* Narrower width */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    font-weight: 400 !important;
    font-size: 18px !important;
    color: #161616;
}

.form-info-box {
    background: #F5F5F5;
    border-radius: 2px;
}

/* Stripe Field Refinement to match legend style */
.wc-stripe-elements-field,
.wc-stripe-iban-element-field {
    border: 1px solid #1616164d !important;
    padding: 15px !important;
    border-radius: 0 !important;
    background: transparent !important;
    position: relative;
}

/* Fake legend effect using pseudo-elements for Stripe Gateway */
/* Note: Since we can't easily wrap individual inputs inside Stripe Element, 
   we style the container and use JS or CSS to add labels on border */

.payment-modal-content .payment_method_stripe label[for^="payment_method_stripe"] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #161616;
}

/* Target specific WooCommerce form rows if they are present */
.payment-modal-content .form-row {
    margin-bottom: 20px;
}


/* Empty State adjustment */
.empty-payment-methods p {
    font-size: 20px !important;
    color: #757575 !important;
}

/* Address Type Selection Radio Buttons */
.address-type-selection {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
}

.address-type-selection .form-row {
    margin: 10px 0 !important;
}

.address-type-selection label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    font-weight: 400;
}

.address-type-selection input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #333;
}

.save-address-btn {
    background-color: #9f2b36 !important;
    color: white !important;
    padding: 12px 40px !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: capitalize !important;
    width: 100%;
    margin-top: 10px !important;
}

.save-address-btn:hover {
    background-color: #80222b !important;
}


/* Address Actions Buttons */
.address-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.edit-address-btn,
.delete-address-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid;
    text-decoration: none;
}

.edit-address-btn {
    background: white;
    color: #333;
    border-color: #ddd;
}

.edit-address-btn:hover {
    background: #f5f5f5;
    border-color: #333;
    color: #333;
}

.delete-address-btn {
    background: white;
    color: #d32f2f;
    border-color: #d32f2f;
}

.delete-address-btn:hover {
    background: #d32f2f;
    color: white;
}

.edit-address-btn svg,
.delete-address-btn svg {
    width: 16px;
    height: 16px;
}

.edit-address-btn {
    display: none !important;
}

/* Responsive Orders Table */
@media screen and (max-width: 991px) {

    table.woocommerce-orders-table,
    .woocommerce-orders-table {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }

    .woocommerce-orders-table thead {
        display: none !important;
    }

    .woocommerce-orders-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-orders-table tr {
        display: block !important;
        margin-bottom: 25px !important;
        background: #fffbf5 !important;
        border: 1px solid #d4c4a1 !important;
        padding: 24px !important;
        position: relative !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .woocommerce-orders-table tbody td,
    .woocommerce-orders-table tbody th {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        text-align: right !important;
        border: none !important;
        padding: 12px 0 !important;
        font-size: 15px !important;
        color: #000 !important;
        line-height: 1.4 !important;
        font-weight: normal !important;
        width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 20px !important;
    }

    .woocommerce-orders-table tbody td::before,
    .woocommerce-orders-table tbody th::before {
        content: attr(data-title) !important;
        float: left !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        font-size: 13px !important;
        color: #1a1a1a !important;
        padding-right: 15px !important;
        min-width: 100px !important;
        text-align: left !important;
        display: block !important;
    }

    /* Override Labels specific cells if needed */
    .woocommerce-orders-table__cell-order-number::before,
    .woocommerce-orders-table tbody tr th:first-child::before,
    .woocommerce-orders-table tbody tr td:first-child::before {
        content: "ORDER ID" !important;
    }

    .woocommerce-orders-table__cell-order-total::before {
        content: "TOTAL PRICE" !important;
    }

    /* Order Number Value */
    .woocommerce-orders-table__cell-order-number a,
    .woocommerce-orders-table tbody tr th:first-child a,
    .woocommerce-orders-table tbody tr td:first-child a {
        font-weight: 500 !important;
        color: #008B96 !important;
        font-size: 16px !important;
        text-decoration: none !important;
    }

    /* Date */
    .woocommerce-orders-table__cell-order-date {
        color: #333 !important;
    }

    /* Total Price Value - BOLD */
    .woocommerce-orders-table__cell-order-total {
        font-weight: 700 !important;
    }

    .woocommerce-orders-table__cell-order-total .amount {
        font-weight: 700 !important;
        color: #000 !important;
    }

    /* Status */
    .woocommerce-orders-table__cell-order-status {
        color: #333 !important;
    }

    /* Actions Row */
    .woocommerce-orders-table__cell-order-actions {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 5px !important;
    }

    .woocommerce-orders-table__cell-order-actions::before {
        display: block !important;
        content: "ACTIONS" !important;
    }

    .woocommerce-orders-table__cell-order-actions a.button.view {
        background-color: transparent !important;
        color: #98C2A9 !important;
        border: none !important;
        padding: 0 !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-weight: 500 !important;
        text-transform: none !important;
        font-size: 14px !important;
        padding-right: 15px !important;
    }


    .woocommerce-orders-table__cell-order-actions a.button.pay {
        margin-right: 10px !important;
    }

    .woocommerce-orders-table__cell-order-number {
        display: flex !important;
        justify-content: space-between !important;
        border: unset !important;
        padding: 12px 0 !important;
    }

    .woocommerce-orders-table__cell-order-action a.woocommerce-button.view {
        padding-right: 15px !important;
    }

    .woocommerce table.shop_table_responsive tr:nth-child(2n) td,
    .woocommerce-page table.shop_table_responsive tr:nth-child(2n) td {
        background-color: unset;
    }
}

/* Wishlist Enhancement */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.added-to-wishlist .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
    color: #98C2A9 !important;
}

.add-to-wishlist-link:hover .material-symbols-outlined {
    color: #98C2A9 !important;
}

/* Wishlist Icon Toggle */
.add-to-wishlist-link .already-added {
    display: none;
}

.add-to-wishlist-link.added-to-wishlist .already-added {
    display: inline;
}

.add-to-wishlist-link.added-to-wishlist .not-added {
    display: none;
}

/* Compare Button Styles */
.add-to-compare-link.added svg path {
    stroke: #98C2A9;
    fill: #98C2A9;
}

.add-to-compare-link.loading {
    opacity: 0.5;
    pointer-events: none;
}

.view-details-overlay {
    bottom: -50px !important;
    width: 90% !important;
    transition: all 0.3s ease !important;
}

.product-image-wrapper:hover .view-details-overlay {
    bottom: 20px !important;
}



@media screen and (min-width: 768px) {
    .product-remove-btn {
        top: -20px !important;
        left: 20px !important;
        transform: unset !important;
    }

    .product-image-wrapper {
        max-height: 450px !important;
    }
}



.compare-table-container .sku-label *,
.compare-table-container .description-text * {
    color: #000 !important;
}

.compare-table-container .product-remove-btn *,
.compare-table-container .availability-badge * {
    font-family: 'Material Symbols Outlined' !important;
}

span.product-price-val>span,
span.product-price-val ins {
    text-decoration: none !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-left: 5px !important;
}

.woocommerce-EditAccountForm fieldset p label {
    background-color: #f9fafb !important;
}

.woocommerce-billing-fields__field-wrapper span.selection .select2-selection {
    border-radius: 0 !important;
    background: unset !important;
}

.woocommerce-billing-fields__field-wrapper span.selection .select2-selection:focus {
    border-radius: 0 !important;
}

.woocommerce form .form-row {
    padding: 3px;
    margin: 0px 0 30px;
}

.woocommerce-billing-fields h3 {
    margin-bottom: 40px !important;
    font-size: 24px !important;
    font-weight: 600 !important;
}

.woocommerce-additional-fields .notes textarea.input-text {
    background: unset !important;
    border-radius: 0 !important;
}

.woocommerce-additional-fields h3 {
    margin-bottom: 30px !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin-top: 20px !important;
}

.woocommerce-checkout-review-order-table thead {
    display: none;
}

.woocommerce-checkout-review-order-table tfoot tr th:first-child,
.woocommerce-checkout-review-order-table tbody tr td:first-child {
    padding-left: 0 !important;
    text-align: start !important;
    padding: 20px 0 !important;
    width: 60% !important;
}

.woocommerce-checkout-review-order-table tfoot tr td:last-child,
.woocommerce-checkout-review-order-table tbody tr td:last-child {
    padding-right: 0 !important;
    text-align: end !important;
}

.woocommerce-checkout-review-order-table tfoot tr td:last-child *,
.woocommerce-checkout-review-order-table tbody tr td:last-child * {
    font-weight: 500 !important;
    font-size: 16px !important;
}

.woocommerce-info {
    border-top: 1px solid #98C2A9;
    margin-top: 30px;
}

.order-total .amount * {
    color: #98C2A9 !important;
}

.woocommerce-info::before {
    color: #98C2A900 !important;
}

.woocommerce-privacy-policy-link {
    color: #027E83;
    text-decoration: underline;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
    border-color: unset;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
    border: unset;
}

.woocommerce-form-coupon-toggle {
    display: none !important;
}

/* Mini Cart Redesign */
.woocommerce-mini-cart-item img {
    width: 6rem !important;
    height: 6rem !important;
    object-fit: cover !important;
}

.woocommerce-mini-cart-item .remove_from_cart_button {
    font-size: 1.25rem !important;
    line-height: 1 !important;
}

.woocommerce-mini-cart__footer .view-cart-btn:hover,
.woocommerce-mini-cart__footer .checkout-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.woocommerce-mini-cart-item .variation dt,
.woocommerce-mini-cart-item .variation dd {
    display: inline-block;
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

.woocommerce-mini-cart-item .variation dt {
    font-weight: bold;
    margin-right: 4px;
}

.woocommerce-mini-cart-item .variation dd p {
    margin: 0;
}

#cart-sidebar.cart-open {
    transform: translateX(0);
}

#cart-overlay.cart-show {
    display: block !important;
    opacity: 1 !important;
    cursor: pointer;
}


.woocommerce-mini-cart__buttons .checkout-btn {
    background: #98C2A9 !important;
    color: white !important;
    border-radius: 0 !important;
}

.woocommerce-mini-cart__buttons .view-cart-btn {
    background: unset !important;
    border: 1px solid black !important;
    border-radius: unset !important;
}

.mini-cart-thumbnail img {
    width: 100% !important;
    height: 100% !important;
}

.woocommerce a.remove:hover {
    padding: 5px;
}

/* Mobile Cart Redesign */
@media screen and (max-width: 768px) {

    /* Hide Table Header */
    .woocommerce-cart-form__contents thead {
        display: none !important;
    }

    /* Cart Item Card Container */
    .woocommerce-cart-form__contents tr.woocommerce-cart-form__cart-item {
        display: block !important;
        border: 1px solid #E4D9BF !important;
        background-color: #fff !important;
        margin-bottom: 20px !important;
        position: relative !important;
        padding: 15px !important;
        border-radius: 0 !important;
    }

    /* Clearfix for the container */
    .woocommerce-cart-form__contents tr.woocommerce-cart-form__cart-item::after {
        content: "";
        display: table;
        clear: both;
    }

    /* Remove Button - Absolute Positioning */
    .woocommerce-cart-form__contents td.product-remove {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: auto !important;
        padding: 0 !important;
        border: none !important;
        z-index: 10 !important;
    }

    .woocommerce-cart-form__contents td.product-remove a.remove {
        border: 1px solid #027E83 !important;
        color: #027E83 !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 20px !important;
        line-height: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0 !important;
        background: transparent !important;
        text-decoration: none !important;
    }

    .woocommerce-cart-form__contents td.product-remove a.remove:hover {
        color: #98C2A9 !important;
        border-color: #98C2A9 !important;
        background: transparent !important;
    }

    /* Thumbnail - Float Left */
    .woocommerce-cart-form__contents td.product-thumbnail {
        display: block !important;
        float: left !important;
        width: 30% !important;
        margin-right: 4% !important;
        padding: 0 !important;
        border: none !important;
    }

    .woocommerce-cart-form__contents td.product-thumbnail img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    /* Product Name - Float Right */
    .woocommerce-cart-form__contents td.product-name {
        display: block !important;
        float: right !important;
        width: 66% !important;
        padding: 0 !important;
        padding-right: 30px !important;
        /* Space for remove button */
        border: none !important;
        text-align: left !important;
    }

    .woocommerce-cart-form__contents td.product-name a {
        font-size: 14px !important;
        margin-bottom: 5px !important;
        display: block !important;
    }

    /* Product Price - Float Right under Name */
    .woocommerce-cart-form__contents td.product-price {
        display: block !important;
        float: right !important;
        width: 66% !important;
        clear: right !important;
        /* Ensure it drops below name */
        padding: 0 !important;
        border: none !important;
        text-align: right !important;
        margin-top: 5px !important;
        margin-bottom: 15px !important;
    }

    .woocommerce-cart-form__contents td.product-price .amount {
        font-weight: normal !important;
        color: #161616 !important;
        font-size: 14px !important;
    }

    .mobile-qty-count {
        font-size: 14px !important;
        color: #666 !important;
    }

    /* Bottom Row - Quantity and Subtotal */
    .woocommerce-cart-form__contents td.product-quantity {
        display: flex !important;
        float: left !important;
        width: 50% !important;
        clear: both !important;
        /* Start new row */
        border: none !important;
        border-top: 1px solid #F7F1E4 !important;
        padding: 15px 0 0 0 !important;
        justify-content: flex-start !important;
        align-items: center !important;
        margin-top: 10px !important;
    }

    .woocommerce-cart-form__contents td.product-subtotal {
        display: flex !important;
        float: left !important;
        width: 50% !important;
        border: none !important;
        border-top: 1px solid #F7F1E4 !important;
        padding: 15px 0 0 0 !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 5px !important;
        margin-top: 10px !important;
    }

    .woocommerce-cart-form__contents td.product-subtotal .amount {
        color: #98C2A9 !important;
        font-weight: bold !important;
        font-size: 18px !important;
    }

    .mobile-subtotal-label {
        font-size: 14px !important;
        color: #666 !important;
    }

    /* Quantity Input Styling */
    .woocommerce .quantity .quantity-input-wrapper {
        gap: 0 !important;
        margin: 0 !important;
    }

    .woocommerce .quantity {
        scale: 1 !important;
        margin: 0 !important;
    }

    .woocommerce .quantity .qty-btn {
        width: 32px !important;
        height: 32px !important;
        line-height: 30px !important;
        font-size: 16px !important;
    }

    .woocommerce .quantity input.qty {
        width: 40px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .woocommerce-cart-form__contents tr.woocommerce-cart-form__cart-item .product-remove {
        top: -5px !important;
        right: -5px !important;
        background: white !important;
    }

    .woocommerce-cart-form__cart-item td::before {
        content: unset !important;
    }


    .woocommerce-cart-form__contents td.product-price ins .amount {
        font-size: 16px !important;
        font-weight: bold !important;
    }

    .woocommerce-cart-form__contents td.product-subtotal>span.woocommerce-Price-amount {
        font-size: 20px !important;
    }

    .woocommerce-cart-form__cart-item .product-name a {
        text-align: start !important;
    }

    .woocommerce-cart-form__cart-item td.product-price {
        margin: 0 !important;
    }

    tr.woocommerce-cart-form__cart-item {
        background-color: unset !important;
    }

    .woocommerce-cart-form__contents td.product-price>span.woocommerce-Price-amount {
        font-weight: bold !important;
        font-size: 16px !important;
        margin-top: 25px;
    }
}

/* Responsive WooCommerce Bits */
@media (max-width: 768px) {
    .payment-method-card {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
    }

    .method-actions {
        width: 100%;
        justify-content: space-between;
    }

    h1.product_title {
        font-size: 20px;
        font-weight: 600;
        color: black;
        margin-bottom: 30px;
    }

    #price-single p.price del {
        top: -14px;
        right: 50%;
        transform: translateX(50%);
        font-size: 16px;
    }

    #price-single p.price {
        font-size: 24px;
    }

    .woocommerce-products-header h1 {
        font-size: 32px;
    }

    .woocommerce-products-header h1::after {
        width: 80px;
        height: 34px;
        top: 10%;
        right: -90px;
    }

    .woocommerce-products-header h1::before {
        width: 80px;
        height: 34px;
        top: 10%;
        left: -90px;
    }

    #afra-head::after {
        width: 58px !important;
        height: 25px !important;
        top: 15% !important;
        right: -68px !important;
    }

    #afra-head::before {
        width: 58px !important;
        height: 25px !important;
        top: 15% !important;
        left: -68px !important;
    }

}

.woocommerce-products-header .term-description {
    display: none !important;
}

.woocommerce-breadcrumb {
    flex-wrap: wrap;
}