/* Frontend Styles for Registration Form */
.register-container { 
    max-width: 400px; 
    margin: auto; 
    padding: 20px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    margin-top: 200px;
}

.register-container h2 { 
    text-align: center; 
    color: white;
}

.register-container label {
    color: white;
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.register-container input[type="text"],
.register-container input[type="email"],
.register-container input[type="password"] { 
    width: 100%; 
    padding: 12px; 
    margin: 5px 0 15px 0; 
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    font-size: 14px;
}

.register-container input.error-input {
    border-color: #ff6b6b;
    border-width: 2px;
}

.register-container .field-error {
    color: red;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.register-container .terms-container.error-container {
    border: 2px solid #ff6b6b;
    padding: 10px;
    border-radius: 4px;
}

.register-container .terms-error {
    margin-top: 5px;
}

.register-container button { 
    width: 100%; 
    padding: 12px; 
    background: white; 
    color: black; 
    border: none; 
    border-radius: 4px;
    cursor: pointer; 
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
}

.register-container button:hover {
    background: #f0f0f0;
}

.register-container .error,
.register-container .registration-errors {
    color: red; 
    background: #ffe6e6;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    list-style: none;
}

.register-container .error li,
.register-container .registration-errors li {
    margin: 5px 0;
}

.register-container .success { 
    color: green;
    background: #e6ffe6;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.terms-container {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
}

.terms-container input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 2px;
    height: 18px;
    width: 18px;
    accent-color: #555;
    flex-shrink: 0;
}

.terms-label {
    color: white;
    font-size: 14px;
    line-height: 1.4;
}

.terms-label a {
    color: #4da6ff;
    text-decoration: none;
}

.terms-label a:hover {
    text-decoration: underline;
}

.register-container .login-link {
    color: white;
}

.register-container .login-link a {
    color: #4da6ff;
    text-decoration: none;
}

.register-container .login-link a:hover {
    text-decoration: underline;
}

/* Social Login Styles - Enhanced and Blended */
.social-login-section {
    margin-bottom: 25px;
}

.social-login-section .nsl-container {
    text-align: center;
    width: 100%;
}

.social-login-section .nsl-button,
.social-login-section a.nsl-button {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0 !important;
    padding: 12px 20px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    text-align: center !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    font-family: inherit !important;
}

.social-login-section .nsl-button-google,
.social-login-section a.nsl-button-google {
    background: white !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.social-login-section .nsl-button-google:hover,
.social-login-section a.nsl-button-google:hover {
    background: #f0f0f0 !important;
    border-color: #999 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
    transform: translateY(-1px) !important;
}

.social-login-section .nsl-button-facebook,
.social-login-section a.nsl-button-facebook {
    background: #1877f2 !important;
    color: white !important;
    border: 1px solid #1877f2 !important;
    box-shadow: 0 1px 2px rgba(24,119,242,0.2) !important;
}

.social-login-section .nsl-button-facebook:hover,
.social-login-section a.nsl-button-facebook:hover {
    background: #166fe5 !important;
    border-color: #166fe5 !important;
    box-shadow: 0 2px 4px rgba(24,119,242,0.3) !important;
    transform: translateY(-1px) !important;
}

/* Button text and icon styling */
.social-login-section .nsl-button span,
.social-login-section a.nsl-button span {
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
}

.social-login-section .nsl-button .nsl-button-icon,
.social-login-section a.nsl-button .nsl-button-icon {
    margin-right: 12px !important;
    width: 18px !important;
    height: 18px !important;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #555;
}

.divider span {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0 15px;
    font-size: 14px;
    position: relative;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Override any inline styles from the plugin */
.social-login-section .nsl-container-buttons a {
    width: 100% !important;
    display: block !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .register-container {
        margin-top: 50px;
        padding: 15px;
    }
    
    .social-login-section .nsl-button,
    .social-login-section a.nsl-button {
        padding: 14px 16px !important;
        font-size: 15px !important;
        min-height: 44px !important;
    }
}

/* ============================================================================
   WOOCOMMERCE ACCOUNT NAVIGATION STYLES
   Originally from: class-woocommerce-handler.php inline CSS
   ============================================================================ */

.woocommerce-MyAccount-navigation .has-children {
    position: relative;
}

.woocommerce-MyAccount-navigation .has-children .parent-menu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.woocommerce-MyAccount-navigation .has-children .toggle-icon {
    font-weight: bold;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.woocommerce-MyAccount-navigation .has-children.is-open .toggle-icon {
    transform: rotate(0deg);
}

.woocommerce-MyAccount-navigation .has-children:not(.is-open) .toggle-icon {
    transform: rotate(0deg);
}

.woocommerce-MyAccount-navigation .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding-left: 1.5em;
}

.woocommerce-MyAccount-navigation .has-children.is-open .sub-menu {
    display: block;
}

.woocommerce-MyAccount-navigation .sub-menu li {
    margin: 0.5em 0;
}

.woocommerce-MyAccount-navigation .sub-menu a {
    padding-left: 1em;
    font-size: 0.9em;
    opacity: 0.9;
}

.woocommerce-MyAccount-navigation .sub-menu li.is-active a,
.woocommerce-MyAccount-navigation .sub-menu li.is-active {
    font-weight: bold;
    opacity: 1;
}

/* Unread count badge in navigation menu */
.woocommerce-MyAccount-navigation .unread-count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
}

/* ============================================================================
   AUDIO/VIDEO LIGHTBOX STYLES
   Originally from: class-scripts-handler.php inline CSS
   ============================================================================ */

.av-file-column {
    position: relative;
    text-align: center;
    margin: 10px;
    padding: 15px;
}

.av-icon {
    font-size: 48px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
}

.av-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.av-lightbox.active {
    display: flex;
}

.av-lightbox-content {
    position: relative;
    width: calc(100% - 50%);
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
}

.av-close-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.av-file-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.av-original-player {
    display: none;
}

.av-lightbox video,
.av-lightbox audio {
    max-width: 100%;
    max-height: 80vh;
}

/* ============================================================================
   VERIFICATION ID PHOTO PREVIEW
   Originally from: class-user-handler.php inline styles
   ============================================================================ */

.id-photo-preview-img {
    max-width: 300px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.existing-pdf-preview {
    text-align: center;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.existing-pdf-preview p {
    margin: 10px 0;
    font-weight: 600;
    color: #333;
}

/* ============================================================================
   DRAG AND DROP UPLOAD AREA
   For verification ID photo upload
   ============================================================================ */

.id-photo-upload-area {
    margin: 15px 0;
}

/* ============================================================================
   RESELL PAYMENT PAGE - DOKAN WITHDRAW
   Override inline styles that hide dokan-panel-body
   ============================================================================ */

.phlex-resell-payment .dokan-panel-body,
.dokan-withdraw-content.phlex-resell-payment .dokan-panel-body,
.woocommerce-account .phlex-resell-payment .dokan-panel-body {
    display: block !important;
}

.phlex-resell-payment .dokan-panel,
.dokan-withdraw-content.phlex-resell-payment .dokan-panel {
    display: block !important;
}

.drag-drop-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drag-drop-area:hover {
    border-color: #0073aa;
    background-color: #f0f0f0;
}

.drag-drop-area.dragover {
    border-color: #0073aa;
    background-color: #e8f4f8;
    border-style: solid;
}

.drag-drop-content i {
    font-size: 48px;
    color: #999;
    margin-bottom: 15px;
    display: block;
}

.drag-drop-content p {
    margin: 10px 0;
    color: #666;
}

.select-file-button {
    margin-top: 15px;
}

.file-info {
    font-size: 12px;
    color: #999;
    margin-top: 10px !important;
}

.file-selected {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.file-selected i {
    font-size: 24px;
    color: #0073aa;
    margin-right: 10px;
}

.file-selected .file-name {
    flex: 1;
    color: #333;
}

.file-selected .remove-file {
    margin-left: 10px;
}

.upload-error {
    color: #dc3232;
    font-size: 14px;
    margin-top: 10px;
}

/* Vendor profile fields styles */
.banner-preview-img,
.gravatar-preview-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.banner-preview-img {
    width: 100%;
    max-width: 1300px;
    height: auto;
}

.gravatar-preview-img {
    max-width: 300px;
    border-radius: 50%;
}

.banner-upload-area,
.gravatar-upload-area {
    margin: 15px 0;
}

.file-selected .file-dimensions {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    font-style: italic;
}

/* Image crop modal styles */
#image-crop-modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-crop-modal > div {
    max-height: 90vh;
    overflow-y: auto;
}

#crop-image {
    max-height: 60vh;
}

/* ============================================================================
   SOCIAL PROFILES STYLES
   Originally from: class-shortcodes.php inline CSS
   ============================================================================ */

.social-profiles-title {
    color: #eee;
}

.social-profiles a {
    margin: 3px 6px;
    font-size: 16px;
    color: #eee;
    vertical-align: middle;
    text-decoration: none;
    background-color: #6B4922;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-profiles a:hover {
    color: #ebcc92;
}

/* ============================================================================
   MY MESSAGES STYLES
   Originally from: woocommerce/myaccount/my-messages.php inline CSS
   ============================================================================ */

/* My Messages Styles */
.woocommerce-my-messages {
    margin-bottom: 40px;
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #EBCC92;
}

.messages-header h2 {
    margin: 0;
    font-size: 1.75em;
}

.unread-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.unread-count-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.mark-all-read {
    padding: 8px 16px;
    font-size: 0.9em;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    transition: all 0.3s ease;
}

.message-item.unread {
    border-left: 4px solid #EBCC92;
    background: #fffef9;
}

.message-item.read {
    opacity: 0.85;
}

.message-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.message-title {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.message-title.unread-bold,
.message-body.unread-bold {
    font-weight: 700;
}

.message-date {
    font-size: 0.85em;
    color: #666;
    white-space: nowrap;
}

.messages-summary {
    margin-bottom: 15px;
    padding: 10px 0;
    color: #666;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
}

.message-body {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.message-action {
    margin-top: 15px;
}

.message-action .button {
    padding: 10px 20px;
    background-color: #EBCC92;
    color: #000;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.message-action .button:hover {
    background-color: #d4b67a;
    color: #000;
}

.mark-read-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mark-read-button:hover {
    background-color: #EBCC92;
    border-color: #EBCC92;
}

.mark-read-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #666;
}

.mark-read-button:hover .dashicons {
    color: #000;
}

/* Pagination Styles */
.messages-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.messages-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.messages-pagination .page-numbers li {
    margin: 0;
}

.messages-pagination .page-numbers a,
.messages-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.messages-pagination .page-numbers a:hover {
    background-color: #EBCC92;
    border-color: #EBCC92;
    color: #000;
}

.messages-pagination .page-numbers .current {
    background-color: #EBCC92;
    border-color: #EBCC92;
    color: #000;
    font-weight: 600;
}

.messages-pagination .page-numbers .prev,
.messages-pagination .page-numbers .next {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .messages-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .message-header {
        flex-direction: column;
        gap: 10px;
    }

    .message-date {
        white-space: normal;
    }

    .mark-read-button {
        position: static;
        margin-top: 10px;
        align-self: flex-start;
    }
}

/* Verified Badge Styles */
.tips.verified-badge {
    color: #598df8;
    font-size: 18px;
    display: inline-block;
}

.tips.verified-badge i {
    margin: 0 0 0 5px !important;
    text-shadow: 1px 1px 3px #07070766;
}

/* ============================================================================
   RESELL ITEMS STYLES
   ============================================================================ */

.woocommerce-resell-items {
    padding: 20px 0;
}

.resell-items-description {
    margin-bottom: 20px;
    color: #666;
}

.resell-items-table-wrapper {
    overflow-x: auto;
}

.resell-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.resell-items-table thead th {
    background-color: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.resell-items-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.resell-item-row:hover {
    background-color: #f9f9f9;
}

.resell-item-thumbnail {
    max-width: 60px;
    height: auto;
    border-radius: 4px;
}

.product-name strong {
    display: block;
    margin-bottom: 5px;
}

.original-auction-link {
    color: #666;
    font-size: 0.9em;
}

.original-auction-link a {
    color: #0073aa;
    text-decoration: none;
}

.original-auction-link a:hover {
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 500;
}

.status-badge.status-publish {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.status-draft {
    background-color: #f8d7da;
    color: #721c24;
}

.button-small {
    padding: 6px 12px;
    font-size: 0.9em;
    margin-right: 5px;
}

/* Resell Items Edit Form */
.woocommerce-resell-items-edit {
    padding: 20px 0;
}

.resell-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.resell-items-header h2 {
    margin: 0;
}

.back-button {
    text-decoration: none;
}

.resell-items-info {
    background-color: #f0f8ff;
    padding: 12px 15px;
    border-left: 4px solid #0073aa;
    margin-bottom: 20px;
    border-radius: 4px;
}

.resell-items-info p {
    margin: 0;
}

.resell-items-info a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.resell-items-info a:hover {
    text-decoration: underline;
}

.resold-product-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.resold-product-fields {
    max-width: 800px;
}

.form-field {
    margin-bottom: 25px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-field .required {
    color: #dc3232;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-field .description {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.readonly-field {
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
}

.field-note {
    font-size: 0.9em;
    color: #999;
    margin-left: 10px;
}

.form-field-group {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.form-field-group h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.pricing-fields .form-field {
    max-width: 300px;
}

/* Custom Drag & Drop Image Uploader */
.custom-image-upload-wrapper {
    margin-top: 10px;
}

.drag-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.drag-drop-zone:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.drag-drop-zone.dragover {
    border-color: #0073aa;
    background: #e6f3ff;
    transform: scale(1.02);
}

.drag-drop-content {
    pointer-events: none;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    color: #999;
    transition: color 0.3s ease;
}

.drag-drop-zone:hover .upload-icon {
    color: #0073aa;
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px;
}

.upload-hint {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.image-preview-container {
    margin-top: 20px;
}

.gallery-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-preview-item {
    position: relative;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
}

.image-wrapper img.preview-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-item:hover .image-overlay {
    opacity: 1;
}

.zoom-image,
.remove-image {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.zoom-image:hover {
    background: #fff;
    transform: scale(1.1);
}

.remove-image:hover {
    background: #dc3232;
    color: #fff;
    transform: scale(1.1);
}

.zoom-image svg,
.remove-image svg {
    width: 20px;
    height: 20px;
}

.upload-progress {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    display: block;
}

/* Image Zoom Modal */
.image-zoom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-zoom-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.zoom-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-image-full {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.zoom-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.zoom-close:hover {
    color: #ccc;
}

body.zoom-modal-open {
    overflow: hidden;
}

/* Upload Loader Overlay */
.resell-upload-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.resell-upload-loader .loader-content {
    text-align: center;
    color: #fff;
}

.loader-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loader-text {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #fff;
}

.loader-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

body.upload-in-progress {
    overflow: hidden;
}

body.upload-in-progress * {
    pointer-events: none;
}

body.upload-in-progress .resell-upload-loader,
body.upload-in-progress .resell-upload-loader * {
    pointer-events: auto;
}

/* 200x200 Image Display */
.image-wrapper {
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.image-wrapper img.preview-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-images-grid .image-preview-item {
    width: 200px;
    height: 200px;
}

.gallery-images-grid .image-wrapper {
    width: 200px;
    height: 200px;
}

.resell-item-thumbnail {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.resell-item-image-link {
    display: inline-block;
    cursor: pointer;
}

.resell-item-image-link:hover .resell-item-thumbnail {
    opacity: 0.9;
}

.no-image-placeholder {
    display: inline-block;
    width: 200px;
    height: 200px;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    line-height: 200px;
    color: #999;
}

/* ============================================================================
   PAYMENT SETTINGS STYLES
   ============================================================================ */

.payment-setup-notification {
    margin: 20px 0;
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.payment-setup-notification p {
    margin: 10px 0;
}

.payment-setup-notification .button {
    margin-top: 10px;
}

.woocommerce-payment-settings {
    padding: 20px 0;
}

.payment-settings-description {
    margin-bottom: 25px;
    color: #666;
    font-size: 14px;
}

.payment-not-configured-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.payment-configured-notice {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.payment-methods-section {
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.payment-methods-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.payment-methods-section h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.payment-methods-section h4:first-of-type {
    margin-top: 0;
}

.section-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.payment-methods-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-method-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.payment-method-item:hover {
    background: #f5f5f5;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payment-method-item.connected {
    background: #e8f5e9;
    border-color: #4caf50;
}

.payment-method-item.available {
    background: #fff;
    border-color: #ddd;
}

.method-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.method-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.method-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.method-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.method-details strong {
    font-size: 16px;
    color: #333;
}

.method-details small {
    font-size: 13px;
    color: #666;
}

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

.method-arrow {
    font-size: 20px;
    color: #0073aa;
    font-weight: bold;
}

.payment-settings-help {
    margin-top: 30px;
    padding: 20px;
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.payment-settings-help h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.payment-settings-help p {
    margin-bottom: 15px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-method-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .method-actions {
        width: 100%;
    }
    
    .method-actions .button {
        width: 100%;
        text-align: center;
    }
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    display: flex;
    gap: 10px;
}

.resold-product-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

.resold-product-messages.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.resold-product-messages.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.resold-product-messages p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .resell-items-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .resell-items-table {
        font-size: 0.9em;
    }
    
    .resell-items-table thead {
        display: none;
    }
    
    .resell-items-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 15px;
    }
    
    .resell-items-table tbody td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: left;
    }
    
    .resell-items-table tbody td:before {
        content: attr(data-title) ": ";
        font-weight: 600;
        display: inline-block;
        width: 120px;
    }
    
    .resold-product-form {
        padding: 20px 15px;
    }
    
    .form-field-group {
        padding: 15px;
    }
}

/* Incoming Orders Styles */
.order-status-filter {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.order-status-filter li {
    margin: 0;
}

.order-status-filter a {
    padding: 8px 15px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
}

.order-status-filter a.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Incoming Order Details Styles */
.woocommerce-incoming-order-details {
    max-width: 1200px;
    margin: 0 auto;
}

.order-details-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-details-header h2 {
    margin: 0;
}

.back-to-orders {
    margin-bottom: 0;
}

.order-details-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.order-details-left {
    flex: 1;
    min-width: 300px;
}

.order-details-right {
    width: 350px;
    min-width: 300px;
}

.order-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.order-section-header {
    padding: 15px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.order-section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.order-section-body {
    padding: 20px;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
}

.order-items-table th,
.order-items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.order-items-table th {
    background: #f9f9f9;
    font-weight: 600;
}

.order-items-table .item-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.order-items-table .item-meta {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: #666;
}

.order-items-table .item-meta li {
    margin: 3px 0;
}

.order-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.order-address {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.order-address address {
    font-style: normal;
    line-height: 1.6;
}

.order-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-details-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-details-list li:last-child {
    border-bottom: none;
}

.order-details-list strong {
    display: inline-block;
    min-width: 120px;
    margin-right: 10px;
}

.order-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 600;
}

.order-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.status-processing {
    background: #cfe2ff;
    color: #084298;
}

.order-status.status-on-hold {
    background: #fff3cd;
    color: #856404;
}

.order-status.status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.order-status.status-cancelled {
    background: #f8d7da;
    color: #842029;
}

.order-status.status-refunded {
    background: #e2e3e5;
    color: #41464b;
}

.edit-order-status-link {
    margin-left: 10px;
    font-size: 0.9em;
    text-decoration: none;
}

.order-status-edit-form {
    margin-top: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.order-status-select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.update-status-btn,
.cancel-status-edit {
    margin-right: 10px;
}

.customer-note {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
}

.note-content {
    margin-top: 5px;
    line-height: 1.6;
}

.order-notes-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notes-list li {
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-left: 3px solid #0073aa;
    border-radius: 4px;
}

.notes-list li.customer-note {
    background: #e7f3ff;
    border-left-color: #0073aa;
}

.note-meta {
    margin-top: 10px;
    font-size: 0.85em;
    color: #666;
}

.no-notes {
    color: #666;
    font-style: italic;
}

.add-order-note {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.add-order-note h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
}

.order-note-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 80px;
}

.add-note-btn,
.send-invoice-btn {
    margin-top: 10px;
}

.order-coupons {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.order-coupons ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.order-coupons li {
    padding: 5px 0;
}

/* Shipment Tracking Widget Styles */
.order-shipment-tracking-section {
    color: #333;
}

.order-shipment-tracking-section .order-section-body {
    color: #333;
}

.order-shipment-tracking-section .order-section-body * {
    color: inherit;
}

.order-shipment-tracking-section .order-section-body a {
    color: #0073aa;
}

.order-shipment-tracking-section .order-section-body a:hover {
    color: #005177;
}

.order-shipment-tracking-section .no-tracking-items {
    color: #666;
}

.order-shipment-tracking-section .tracking-item {
    color: #333;
}

.order-shipment-tracking-section .tracking-item * {
    color: inherit;
}

.order-shipment-tracking-section .tracking-item strong {
    color: #333;
}

.order-shipment-tracking-section .tracking-item .meta {
    color: #666;
}

.order-shipment-tracking-section .tracking-item .meta a {
    color: #0073aa;
}

.order-shipment-tracking-section .order-section-header h3 {
    color: #333;
}

/* Ensure all text in order sections is readable */
.order-section-body {
    color: #333;
}

.order-section-body * {
    color: inherit;
}

.order-section-body a {
    color: #0073aa;
}

.order-section-body a:hover {
    color: #005177;
}

.order-section-body strong {
    color: #333;
}

.order-section-body p {
    color: #333;
}

.order-section-body ul,
.order-section-body ol {
    color: #333;
}

.order-section-body li {
    color: #333;
}

.order-section-body label {
    color: #333;
}

.order-section-body address {
    color: #333;
}

.order-section-body .no-tracking-items,
.order-section-body .no-notes {
    color: #666;
}

/* Reseller Earnings Section */
.order-reseller-earnings-section {
    margin-top: 20px;
}

.reseller-earnings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.reseller-earnings-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.reseller-earnings-table tbody tr:last-child {
    border-bottom: none;
}

.reseller-earnings-table th {
    text-align: left;
    padding: 12px 0;
    font-weight: normal;
    color: #333;
}

.reseller-earnings-table td {
    text-align: right;
    padding: 12px 0;
}

.reseller-earnings-table .amount {
    font-weight: 500;
    color: #333;
}

.reseller-earnings-table .amount.deduction {
    color: #d32f2f;
}

.reseller-earnings-table .amount.net {
    color: #2e7d32;
    font-size: 1.1em;
}

.reseller-earnings-table .earnings-row.net-earning {
    border-top: 2px solid #e0e0e0;
    margin-top: 10px;
}

.reseller-earnings-table .earnings-row.net-earning th,
.reseller-earnings-table .earnings-row.net-earning td {
    padding-top: 16px;
}

/* Fix AST plugin slideout styles */
.slidout_container,
.add_inside_tracking_popup {
    color: #333;
}

.slidout_container *,
.add_inside_tracking_popup * {
    color: inherit;
}

.slidout_container label,
.add_inside_tracking_popup label {
    color: #333;
}

.slidout_container input[type="text"],
.slidout_container input[type="date"],
.slidout_container select,
.slidout_container textarea,
.add_inside_tracking_popup input[type="text"],
.add_inside_tracking_popup input[type="date"],
.add_inside_tracking_popup select,
.add_inside_tracking_popup textarea {
    color: #333;
}

.slidout_container h3,
.add_inside_tracking_popup h3 {
    color: #333;
}

.slidout_container .slidout_header,
.add_inside_tracking_popup .slidout_header {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.slidout_container .slidout_header .slidout_title,
.add_inside_tracking_popup .slidout_header .slidout_title {
    color: #333;
}

.slidout_container .slidout_body,
.add_inside_tracking_popup .slidout_body {
    background: #fff;
    color: #333;
}

.slidout_container .slidout_body *,
.add_inside_tracking_popup .slidout_body * {
    color: inherit;
}

.slidout_container .form-field label,
.add_inside_tracking_popup .form-field label {
    color: #333;
}

.slidout_container .form-field input,
.slidout_container .form-field select,
.slidout_container .form-field textarea,
.add_inside_tracking_popup .form-field input,
.add_inside_tracking_popup .form-field select,
.add_inside_tracking_popup .form-field textarea {
    color: #333;
    background: #fff;
}

.slidout_container fieldset,
.add_inside_tracking_popup fieldset {
    color: #333;
}

.slidout_container fieldset span,
.add_inside_tracking_popup fieldset span {
    color: #333;
}

.slidout_container .wc-radios li label,
.add_inside_tracking_popup .wc-radios li label {
    color: #333;
}

.slidout_container .popup_close_icon,
.add_inside_tracking_popup .popup_close_icon {
    color: #333;
}

@media (max-width: 768px) {
    .order-details-wrapper {
        flex-direction: column;
    }
    
    .order-details-right {
        width: 100%;
    }
    
    .order-addresses {
        grid-template-columns: 1fr;
    }
}

