.wwap-payment-details {
    border-radius: 20px;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
    padding: 30px;
    margin: 20px;
    color: #333;
    text-align: center;
}

.wwap-payment-details #payment_method,
.wwap-payment-details #bank_details_text,
.wwap-payment-details #paypal_id,
.wwap-payment-details #upi_id {
    border: 2px solid #d7e1ec;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    background-color: #ffffff;
}

.wwap-payment-method {
    margin-bottom: 15px;
}

.wwap-payment-update input[type="submit"] {
    background-color: #0071a1;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.wwap-affiliate-payment-details-notice {
    background-color: #E0B252;
    color: white;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 10px;
}

.wwap-refund-request-container {
    background-color: #fff;
    width: 100%;
}

.wwap-refund-reason-comment-box {
    margin-bottom: 20px;
}

.wwap-refund-reason-comment-box label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.wwap-refund-reason-comment-box textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    resize: vertical;
}

/* Styling for the image and video upload sections */
.wwap-image-upload-section,
.wwap-video-upload-section {
    margin-bottom: 20px;
}

.wwap-image-upload-section label,
.wwap-video-upload-section label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.wwap-image-upload-section input[type="file"],
.wwap-video-upload-section input[type="file"] {
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wwap-image-upload-section input[type="file"]:hover,
.wwap-video-upload-section input[type="file"]:hover {
    background-color: #f0f0f0;
}

.wwap-image-upload-section input[type="file"]:focus,
.wwap-video-upload-section input[type="file"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.wwap-refund-reason-images-video-container {
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

/* Table styling */
.wwap-order-refund-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.wwap-order-refund-table th,
.wwap-order-refund-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.wwap-order-refund-table th {
    background-color: #f4f4f4;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    color: #555;
}

.wwap-order-refund-table td {
    vertical-align: middle;
    color: #333;
}

/* Specific column styling */
.wwap-order-refund-product-image img {
    max-width: 50px;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wwap-order-refund-product-name {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    text-transform: capitalize;
}

.wwap-order-refund-product-cost,
.wwap-order-refund-product-total,
.wwap-product-refundable-total {
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
}

.wwap-order-refund-product-quantity input[type="number"] {
    width: 60px;
    padding: 5px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Footer total styling */
.wwap-order-refund-table tfoot th {
    font-size: 16px;
    font-weight: bold;
    background-color: #f7f7f7;
    padding: 20px;
    text-align: center;
    color: #333;
}

.wwap-order-refund-table tfoot td {
    padding: 20px;
    font-size: 16px;
    color: #333;
    text-align: right;
}

/* Hover and focus effects */
.wwap-order-refund-table tr:hover {
    background-color: #f9f9f9;
}

.wwap-order-refund-product-quantity input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.wwap-request-refund-btn-container {
    text-align: right;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Preview container for images and videos */
.wwap-refund-preview-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.wwap-refund-preview-item {
    position: relative;
    margin-right: 10px;
    margin-bottom: 10px;
}

#wwap-refund-video-preview-container .wwap-refund-preview-item {
    height: 110px;
    width: 80px;
}

.wwap-refund-preview-item video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.wwap-preview-refund-image, .pwwap-preview-refund-video {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wwap-refund-remove-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4d;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    padding: 0 5px;
    font-size: 12px;
    line-height: 18px;
}

.wwap-request-refund-btn-container #wwap-request-refund-btn,
.wwap-cancel-refund-btn-container #wwap-cancel-refund-btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.wwap-cancel-refund-btn-container {
    margin-bottom: 20px;
}

.wwap-refund-request-reason-images-video-container {
    display: flex;
    width: 100%;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wwap-refund-reason-container {
    flex: 1;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.wwap-refund-reason-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.wwap-refund-reason {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.wwap-refund-reason-images-videos-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wwap-refund-reason-images-container,
.wwap-refund-reason-videos-container {
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.wwap-refund-images-title,
.wwap-refund-videos-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.wwap-refund-images,
.wwap-refund-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wwap-refund-videos {
    height: 110px;
    width: 80px;
    object-fit: cover;
}

.wwap-refund-videos {
    height: 110px;
    width: 80px;
}

.wwap-refund-images img {
    max-height: 85px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wwap-refund-videos video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wwap-pay-refund-in-wallet-or-same-payment-mode {
    margin-top: 15px;
}

.wwap-refund-rejection-reason {
    width: 100%;
    margin-bottom: 20px;
}

.wwap-rejection-reason-title {
    margin-bottom: 10px;
    color: #000;
    font-weight: bold;
}

.wwap-account-table input[type="checkbox"].wwap-select-affiliate-referral {
    width: 24px;
    height: 24px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #f0f0f0;
    border: 2px solid #d1d1d1;
    border-radius: 4px;
    outline: none;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.wwap-account-table input[type="checkbox"].wwap-select-affiliate-referral:checked {
    background-color: #4CAF50;
    border: 2px solid #4CAF50;
}

.wwap-account-table input[type="checkbox"].wwap-select-affiliate-referral:checked::before {
    content: '✔';
    color: #fff;
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
}

.wwap-profile-title-container .wwap-transfer-affiliate-referrals-btn {
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
    min-height: 32px;
    border-radius: 8px;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    cursor: pointer;
}

.wwap-account-table, #generated_links_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #333;
    background-color: #F0F0F3;
    box-shadow: -8px -8px 24px #FFFFFF, 8px 8px 24px rgba(174, 174, 192, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.wwap-account-table th,
#generated_links_table th {
    border-bottom: 1px solid #fff;
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
}

.wwap-account-table td,
#generated_links_table td {
    border-bottom: none;
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
}

.wwap-account-table th {
    font-weight: bold;
    text-transform: uppercase;
}

.wwap-account-table tbody tr {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.wwap-account-table tbody tr:hover {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.wwap-account-table .status, .wwap-account-table .payment-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
}

.wwap-account-table .status.pending,
.wwap-account-table .status.just-visit {
    background-color: #e3e3e3;
    color: #414552;
}

.wwap-account-table .status.approved,
.wwap-account-table .status.converted {
    background-color: #d7f7c2;
    color: #006908;
}

.wwap-account-table .status.rejected {
    background-color: #fbd0d0;
    color: #ff0000;
}

.wwap-account-table .payment-status.unpaid {
    background-color: #cff5f6;
    color: #0055bc;
}

.wwap-account-table .payment-status.paid {
    background-color: #d7f7c2;
    color: #006908;
}

.wwap-account-table .payment-status.declined {
    background-color: #fbd0d0;
    color: #ff0000;
}

.wwap-referrals-summary,
.wwap-visits-summary,
.wwap-reports-summary,
.wwap-dashboard-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.wwap-referrals-summary-item,
.wwap-visits-summary-item,
.wwap-reports-summary-item,
.wwap-dashboard-summary-item {
    flex: 1;
    padding: 20px;
    margin: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    min-width: 250px;
    background-color: #F0F0F3;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
}

.wwap-affiliate-referral-approved-amount,
.wwap-affiliate-referral-pending-amount,
.wwap-affiliate-referrals-total,
.wwap-affiliate-link-clicks-count,
.wwap-affiliate-link-conversion-count,
.wwap-affiliate-link-conversion-percentage,
.wwap-affiliate-referral-approved-count,
.wwap-affiliate-referral-withdraw-amount,
.wwap-affiliate-referrals-balance-amount,
.wwap-affiliate-total-referral-count,
.wwap-affiliate-paid-referral-count,
.wwap-affiliate-unpaid-referral-count,
.wwap-affiliate-payout-count,
.wwap-affiliate-earnings-amount {
    font-size: 24px;
    margin-bottom: 10px;
}

.wwap-dashboard-description {
    font-size: 14px;
}

.wwap-dashboard-description-two {
    font-size: 13px;
    font-weight: 400;
}

.wwap-wallet-topup {
    border-radius: 20px;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
    padding: 30px;
    margin: 20px;
    color: #333;
    text-align: center;
}

.wwap-wallet-summary {
    background-color: #f6f9fc;
    padding: 20px;
    border-radius: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.wwap-total-balance .wallet-balance {
    font-size: 28px;
    font-weight: 600;
    color: #1a54e7;
    margin-bottom: 5px;
}

.wwap-total-balance .wallet-balance-text {
    font-size: 16px;
    color: #7a7f9a;
    margin-bottom: 15px;
}

.wwap-detailed-balance {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.wwap-detailed-balance > div {
    background-color: #e8effe;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wwap-wallet-balance .wallet-amount,
.wwap-affiliate-earnings .affiliate-earnings {
    font-size: 22px;
    font-weight: 600;
    color: #1a54e7;
}

.wwap-wallet-balance .wallet-amount-text,
.wwap-affiliate-earnings .affiliate-earnings-text {
    font-size: 14px;
    color: #7a7f9a;
}

.wallet-topup-input-submit-button {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.wwap-wallet-topup input[type="number"] {
    border: 2px solid #d7e1ec;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    color: #333;
    min-height: 45px;
    background-color: #ffffff;
}

.wwap-wallet-topup input[type="number"]:focus {
    border-color: #0071a1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.wwap-wallet-topup input[type="submit"] {
    background-color: #0071a1;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wwap-wallet-topup input[type="submit"]:hover {
    background-color: #0056b3;
}

.wwap-wallet-topup input::placeholder {
    color: #9aa5b1;
}

.wwap-wallet-withdrawal-container {
        padding: 20px;
        border-radius: 12px;
        box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
        margin: 20px auto;
    }

    .wwap-wallet-withdrawal-container h3 {
        text-align: center;
        color: #333;
        margin-bottom: 20px;
    }

    .wwap-wallet-withdrawal-form-content {
        display: flex;
        gap: 10px;
    }
    
    .wwap-wallet-withdrawal-form-input {
        width: 80%;
    }
    
    .wwap-wallet-minimum-withdrawal-limit-info {
        text-align: center;
    }

    .wwap-wallet-withdrawal-container input[type="number"] {
        padding: 10px;
        border: 2px solid #d7e1ec;
        border-radius: 12px;
        font-size: 16px;
        background-color: #fff;
    }

    .wwap-wallet-withdrawal-container input[type="submit"] {
        padding: 10px 20px;
        background-color: #0071a1;
        border: none;
        border-radius: 12px;
        color: white;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .wwap-wallet-withdrawal-container input[type="submit"]:hover {
        background-color: #005f8a;
    }

    .wwap-wallet-withdrawal-container p {
        text-align: center;
        font-style: italic;
        color: #666;
        font-size: 14px;
        margin: 10px 0;
    }
    
    .wwap-wallet-transfer {
    border-radius: 20px;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
    margin: 40px auto;
    padding: 30px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    text-align: center;
}

#wallet-transfer-form {
    display: flex;
    gap: 10px;
}

.wwap-wallet-transfer input[type="number"],
.wwap-wallet-transfer input[type="email"] {
    padding: 12px;
    border: 2px solid #d7e1ec;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    background-color: #ffffff;
    text-align: center;
}

.wwap-wallet-transfer input[type="number"]:focus,
.wwap-wallet-transfer input[type="email"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

.wwap-wallet-transfer input[type="submit"] {
    padding: 12px;
    background-color: #0071a1;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wwap-wallet-transfer input[type="submit"]:hover {
    background-color: #0056b3;
}

.wwap-wallet-transfer input::placeholder {
    color: #9aa5b1;
}

.wwap-wallet-form input[type="email"],
.wwap-wallet-form input[type="number"] {
    width: calc(100% - 30px); /* Adjust width to fit padding */
    margin-bottom: 20px; /* Space between inputs */
    border: 2px solid #d7e1ec;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    color: #333;
    background-color: #ffffff;
}

.wwap-wallet-form input[type="email"]:focus,
.wwap-wallet-form input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.wwap-wallet-form input[type="submit"] {
    width: 100%; /* Make submit button full width */
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 0; /* Adjust padding for better visual */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wwap-wallet-form input[type="submit"]:hover {
    background-color: #0056b3;
}

.wwap-wallet-form input::placeholder {
    color: #9aa5b1;
}

    /* Base styles for the table */
.wwap-wallet-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em auto;
}

/* Header styles */
.wwap-wallet-table thead {
    background-color: #f7f9fc;
    color: #333;
}

.wwap-wallet-table th {
    text-align: left;
    padding: 15px;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

/* Body styles */
.wwap-wallet-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.wwap-wallet-table td {
    padding: 15px;
    color: #495057;
    font-weight: 400;
}

/* Hover effect for rows */
.wwap-wallet-table tbody tr:hover {
    background-color: #eff2f7;
}

/* Status Pill Styles */
.wwap-wallet-table .status {
    padding: 0.25em 0.75em;
    border-radius: 1em;
    font-size: 0.875em;
    font-weight: 600;
    text-transform: capitalize;
}

/* Dynamic color for status pills */
.status-approved {
    color: #38c172;
    background-color: #e6f8ec;
}

.status-rejected {
    color: #e3342f;
    background-color: #fcebea;
}

/* Styles for the wallet tabs */
.woocommerce-myaccount-wallet-content .wwap-wallet-tabs ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    border-bottom: 1px solid #ddd;
}

.woocommerce-myaccount-wallet-content .wwap-wallet-tabs ul li {
    margin: 0;
    padding: 0;
}

.woocommerce-myaccount-wallet-content .wwap-wallet-tabs ul li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-bottom: none;
    background: #f7f7f7;
    color: #333;
    margin-right: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.woocommerce-myaccount-wallet-content .wwap-wallet-tabs ul li.active a {
    background: #fff;
    border-bottom: 1px solid #fff;
}

.wwap-affiliate-banner-image-content {
    position: relative;
    overflow: hidden;
}

.wwap-affiliate-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.wwap-affiliate-banner-actions {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wwap-affiliate-camera-icon,
.wwap-affiliate-banner-actions .wwap-affiliate-banner-save {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.wwap-affiliate-camera-icon:hover,
.wwap-affiliate-banner-actions .wwap-affiliate-banner-save:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: scale(1.05);
}

.wwap-affiliate-camera-icon {
    position: static;
}

.wwap-affiliate-banner-save i {
    font-size: 18px;
    line-height: 1;
}

.wwap-affiliate-banner-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wwap-affiliate-top-banner-image-container {
    position: relative;
    z-index: 1;
}

.wwap-affiliate-profile-image-container {
    margin-top: -60px;
    z-index: 1;
}

.wwap-affiliate-profile-image {
    border: 5px solid #fff;
}

.wwap-affiliate-camera-icon {
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.wwap-affiliate-camera-icon::before {
    content: '\f030';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #fff;
    font-size: 20px;
}

.wwap-affiliate-tracking-details-container {
    border-radius: 8px;
    margin-bottom: 30px;
    align-items: center;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
}

.wwap-tracking-details,
.wwap-generate-affiliate-form-options {
    padding: 15px;
}

.wwap-affiliate-tracking-code-container,
.wwap-default-affiliate-link {
    margin-bottom: 10px;
}

.wwap-profile-title-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
}

.wwap-profile-title {
    color: #2b425b;
    font-weight: 600;
    font-size: 16px;
}

.wwap-affiliate-tracking-code-text,
.wwap-default-affiliate-link-text {
    display: block;
    color: #666;
    margin-bottom: 5px;
}

.wwap-affiliate-tracking-code,
.wwap-default-affiliate-link a {
    display: inline-block;
    border: 1px solid #eee;
    padding: 8px 12px;
    border-radius: 4px;
    color: #333;
    box-shadow: inset -10px -10px 15px rgba(255, 255, 255, 0.5), inset 10px 10px 15px rgba(70, 70, 70, 0.12);
    text-decoration: none;
    transition: all 0.3s ease;
}

.wwap-tacking-code-info {
    color: #999;
    font-size: 14px;
}

.wwap-affiliate-qr-code-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wwap-affiliate-qr-code-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a2538;
}

.wwap-affiliate-qr-code {
    margin-top: 10px;
    margin-bottom: 23px;
    border-radius: 8px;
    padding: 10px;
    width: fit-content;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
}

.wwap-affiliate-qr-code img {
    max-height: 115px;
    border-radius: 4px;
}

.wwap-affiliate-qr-code-download-btn {
    border-radius: 8px;
    color: #1a2538;
    padding: 10px 20px;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
}

.wwap-affiliate-link-generator-container {
    border-radius: 8px;
    color: #1a2538;
    margin-bottom: 10px;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
}

#link_generator_form label {
    font-weight: bold;
    color: #555;
}

#link_generator_form select,
#link_generator_form input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    box-shadow: inset -10px -10px 15px rgba(255, 255, 255, 0.5), inset 10px 10px 15px rgba(70, 70, 70, 0.12);
    border-radius: 8px;
}

#generate_link_button {
    padding: 10px 20px;
    border: none;
    text-transform: capitalize;
    color: #1a2538;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
    transition: background-color 0.3s ease;
}

.affiliate-link-action-btn {
    display: flex;
    gap: 7px;
}

.wwap-affiliate-generated-link-container .copy_affiliate_link_button {
    background-color: #337ab7;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 12px;
    text-align: center;
    line-height: 1.5;
    min-height: 30px;
}

.wwap-affiliate-generated-link-container .remove_affiliate_link_button {
    background-color: #d9534f;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 12px; /* Adjust the font size if necessary */
    text-align: center;
    vertical-align: middle;
    line-height: 1.5;
    display: inline-block; /* To allow proper spacing and alignment */
    min-height: 30px;
}

.wwap-affiliate-generated-link-container .copy_affiliate_link_button:hover,
.wwap-affiliate-generated-link-container .remove_affiliate_link_button:hover {
    background-color: #286090;
    color: #f5f5f5;
}

#wwap-affiliate-update-profile-form {
  max-width: 500px;
}

.wwap-affiliate-member-profile-image img {
    object-fit: cover;
}

/* Style for input fields */
#wwap-affiliate-update-profile-form input[type="text"],
#wwap-affiliate-update-profile-form input[type="email"],
#wwap-affiliate-update-profile-form input[type="tel"],
#wwap-affiliate-update-profile-form select {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  display: inline-block;
  border: none;
  box-shadow: inset -10px -10px 15px rgba(255, 255, 255, 0.5), inset 10px 10px 15px rgba(70, 70, 70, 0.12);
  border-radius: 8px;
  box-sizing: border-box;
}

.upload-profile-image {
    margin-top: 10px;
}

/* Style for the submit button */
#wwap-affiliate-update-profile-form button {
  width: 100%;
  margin-top: 20px;
  border: none;
  box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
  border-radius: 8px;
  cursor: pointer;
}

.wwap-affiliate-dashboard {
    background-color: #F0F0F3;
}

.wwap-affiliate-dashboard-tabs {
    list-style-type: none;
    padding: 0;
    margin-left: 0;
    overflow: hidden;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
}

.wwap-affiliate-dashboard-tab-content {
    padding: 20px;
}

.wwap-affiliate-dashboard-has-submenu>a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.wwap-affiliate-dashboard-has-submenu:hover .wwap-affiliate-dashboard-submenu {
    display: block;
}

.wwap-affiliate-dashboard-has-submenu li {
    float: none;
}

.wwap-affiliate-dashboard-submenu {
    position: absolute;
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 999;
    background-color: #F0F0F3;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.wwap-affiliate-dashboard-submenu a {
    text-decoration: none;
    color: #333;
    padding: 12px 20px;
    transition: background-color 0.3s ease;
}

.wwap-affiliate-dashboard-tabs li {
    float: left;
    margin-bottom: 0;
}

.wwap-affiliate-dashboard-tabs a {
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: background-color 0.3s ease;
}

.wwap-affiliate-dashboard-tabs a:hover,
.wwap-affiliate-dashboard-tabs a.active {
    background-color: #e2e2e2;
    color: #333;
}

.wwap-affiliate-profile-img-details {
    display: flex;
    gap: 12px;
}

.wwap-affiliate-member-name-medal-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

.wwap-affiliate-member-achievement-medal img {
    width: 30px;
}

.wwap-affiliate-member-name {
    font-size: 26px;
    font-weight: 600;
    color: #111;
    text-transform: capitalize;
}

.wwap-affiliate-country-flag-container {
    margin-right: 5px;
}

.wwap-affiliate-country-flag {
    border-radius: 50%;
    height: 20px;
    width: 20px;
}

.wwap-affiliate-member-since {
    color: #333;
    font-size: 15px;
    margin-bottom: 10px;
}

.wwap-affiliate-rank-info {
    width: fit-content;
}

.wwap-affiliate-rank-name {
    color: #fff;
    padding: 2px 6px;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 4px;
}

.wwap-referrals-earnings-container {
    display: flex;
    gap: 25px;
    margin-bottom: 10px;
    text-align: center;
}

.wwap-affiliate-total-referrals-container,
.wwap-affiliate-total-earnings-container {
    padding: 10px;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
    border-radius: 8px;
}

.wwap-affiliate-total-referrals-title, .wwap-affiliate-total-earnings-title {
    font-size: 15px;
}

.wwap-affiliate-total-referrals, .wwap-affiliate-total-earnings {
    font-size: 25px;
    font-weight: 600;
}

.wwap-affiliate-next-rank-name {
    font-weight: 600;
}

.wwap-affiliate-next-rank-progress-bar-container {
    position: relative;
    background-color: #badfaf;
    height: 10px;
    border-radius: 10px;
}

.wwap-affiliate-next-rank-progress-bar {
    background-color: #75c37d;
    height: 100%;
    border-radius: 10px;
    position: relative;
}

.wwap-affiliate-next-rank-progress-bar::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wwap-affiliate-next-rank-progress-bar:hover::after {
    opacity: 1;
}

#affiliateLoginForm, #affiliateRegistrationForm {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.wwap-affiliate-login-form-container, .wwap-affiliate-register-form-container {
    margin-bottom: 15px;
}

#affiliateLoginForm input, #affiliateRegistrationForm input,
#affiliateRegistrationForm select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#affiliateLoginForm button, #affiliateRegistrationForm button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

#affiliateLoginForm button:hover, #affiliateRegistrationForm button:hover {
    background-color: #0056b3;
}

#affiliateLoginForm p, #affiliateRegistrationForm p {
    text-align: center;
}

#affiliateLoginForm a, #affiliateRegistrationForm a {
    color: #007bff;
    text-decoration: none;
}

#affiliateLoginForm a:hover, #affiliateRegistrationForm a:hover {
    text-decoration: underline;
}

.affiliate-link-qr-code-container img {
    height: 80px;
    width: 80px;
}

.affiliate-link-qr-code-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-affiliate-link-qr-code {
    border-radius: 5px;
    color: #1a2538;
    padding: 5px 10px;
    box-shadow: -8px -8px 24px 0 #FFFFFF, 8px 8px 24px 0 rgba(174, 174, 192, 0.4);
    text-align: center;
}

.wwap-checkout-use-wallet-balance {
    margin-bottom: 0;
}

.wwap-checkout-use-wallet-balance label {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .wwap-affiliate-tracking-details-container {
        display: flex;
        justify-content: space-between;
    }
    
    .tracking-details-content {
        width: 75%;
        border-right: 1px solid #fff;
    }
    
    .wwap-affiliate-qr-code-content {
        flex: 1;
    }
    
    .wwap-affiliate-details-container {
        display: flex;
        justify-content: space-between;
        margin: 15px 0px 20px;
        padding: 0 20px;
    }
    
    .wwap-affiliate-profile-image {
        height: 150px;
        width: 150px;
    }
    
    .wwap-affiliate-profile-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        background-color: #fff;
    }
    .wwap-affiliate-banner-image-content {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .wwap-affiliate-banner-image-content {
        height: 150px;
    }
    .wwap-affiliate-profile-image {
        height: 80px;
        width: 80px;
    }
    .wwap-affiliate-profile-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        background-color: #fff;
    }
    .wwap-affiliate-details-container {
        margin: 15px 0px 20px;
        padding: 0 15px;
    }
    .wwap-affiliate-profile-image-container {
        margin-top: -40px;
        height: fit-content;
    }
    
    .wwap-affiliate-member-name {
        font-size: 18px;
    }
    
    .wwap-affiliate-member-since {
        font-size: 13px;
    }
    
    .wwap-affiliate-country-flag {
        height: 15px;
        width: 15px;
    }
    
    .wwap-wallet-withdrawal-form-content,
    .wallet-topup-input-submit-button,
    #wallet-transfer-form {
        flex-direction: column;
        align-items: center;
    }
    
    .wwap-wallet-withdrawal-form-input {
        width: 100%;
    }
}

/* Product-wise wallet rule badge on shop and single product pages */
.wwap-product-wallet-rule-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    margin: 12px 0 8px;
    padding: 12px 14px;
    background: #c7e36d;
    border: 1px solid rgba(0, 0, 0, 0.14);
    color: #16220a;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}

.wwap-product-wallet-rule-badge-icon {
    font-size: 20px;
    line-height: 1;
}

.wwap-product-wallet-rule-badge .amount,
.wwap-product-wallet-rule-badge bdi {
    font-weight: 800;
}

.woocommerce ul.products li.product .wwap-product-wallet-rule-badge {
    font-size: 14px;
    padding: 10px 12px;
    margin-top: 10px;
}

.woocommerce div.product .summary .wwap-product-wallet-rule-badge {
    max-width: 420px;
    justify-content: flex-start;
    text-align: left;
}

/* Wallet checkout custom amount popup */
.wwap-wallet-checkout-box {
    margin: 14px 0 18px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.wwap-wallet-checkout-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wwap-wallet-checkbox-wrap .form-row {
    margin: 0;
    padding: 0;
}

.wwap-wallet-checkbox-wrap label.checkbox {
    font-weight: 700;
    color: #111827;
}

.wwap-wallet-checkout-box .wwap-change-wallet-amount-btn {
    border-radius: 999px;
    padding: 8px 18px;
    line-height: 1.2;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.wwap-wallet-checkout-box .wwap-change-wallet-amount-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}

.wwap-available-wallet-balance {
    margin: 0;
    color: #4b5563;
}

.wwap-wallet-change-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.wwap-wallet-change-modal.is-open {
    display: flex;
}

.wwap-wallet-change-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.wwap-wallet-change-modal-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    color: #111827;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
    animation: wwapWalletPopupIn 0.18s ease-out;
}

@keyframes wwapWalletPopupIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wwap-wallet-change-modal .wwap-wallet-change-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    font-size: 24px;
    line-height: 30px;
    cursor: pointer;
}

.wwap-wallet-change-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 35px;
    margin-bottom: 20px;
}

.wwap-wallet-user-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
}

.wwap-wallet-change-header h3 {
    margin: 0 0 5px;
    font-size: 22px;
    line-height: 1.2;
    color: #111827;
}

.wwap-wallet-change-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.wwap-wallet-change-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.wwap-wallet-change-stats > div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.wwap-wallet-change-stats span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.wwap-wallet-change-stats strong {
    display: block;
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
}

.wwap-wallet-admin-note {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 13px;
    font-weight: 600;
}

.wwap-wallet-change-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.wwap-wallet-change-input-row {
    display: flex;
    align-items: center;
    border: 2px solid #dbeafe;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wwap-wallet-change-input-row:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.wwap-wallet-change-input-row span {
    min-width: 48px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 900;
    font-size: 18px;
}

.wwap-wallet-change-input-row input[type="text"] {
    width: 100%;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 14px 16px;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    min-height: 54px;
}

.wwap-wallet-change-help {
    margin: 9px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.wwap-wallet-change-error {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

.wwap-wallet-change-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.wwap-wallet-change-actions .button {
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 800;
}

.wwap-wallet-change-modal .wwap-wallet-change-apply {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

@media (max-width: 520px) {
    .wwap-wallet-checkout-main-row,
    .wwap-wallet-change-header,
    .wwap-wallet-change-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wwap-wallet-change-stats {
        grid-template-columns: 1fr;
    }

    .wwap-change-wallet-amount-btn,
    .wwap-wallet-change-actions .button {
        width: 100%;
        text-align: center;
    }
}

.wwap-wallet-shortcode {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 999px;
    background: #ffffff;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.2;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.wwap-wallet-shortcode:hover,
.wwap-wallet-shortcode:focus {
    color: #1a54e7;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.14);
}

.wwap-wallet-shortcode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #e8effe;
    color: #1a54e7;
}

.wwap-wallet-shortcode-icon svg {
    width: 19px;
    height: 19px;
    display: block;
}

.wwap-wallet-shortcode-content {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.wwap-wallet-shortcode-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.wwap-wallet-shortcode-amount {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.wwap-wallet-shortcode:hover .wwap-wallet-shortcode-amount,
.wwap-wallet-shortcode:focus .wwap-wallet-shortcode-amount {
    color: #1a54e7;
}

.wwap-wallet-shortcode-guest .wwap-wallet-shortcode-content {
    justify-content: center;
}

.wwap-wallet-shortcode-guest .wwap-wallet-shortcode-label {
    font-size: 13px;
    color: #111827;
}

@media (max-width: 480px) {
    .wwap-wallet-shortcode {
        padding: 8px 12px;
        gap: 8px;
    }

    .wwap-wallet-shortcode-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .wwap-wallet-shortcode-amount {
        font-size: 14px;
    }
}