/* Main form container */
.wcsm-reseller-registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);*/
}

/* Form title */
.wcsm-reseller-registration-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Form rows */
.wcsm-request-form .form-row {
    margin-bottom: 1.5em;
    padding: 0;
    position: relative;
}

/* Labels */
.wcsm-request-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #333;
}

.wcsm-request-form label .required {
    color: #e2401c;
    font-weight: 700;
    border: 0 !important;
    text-decoration: none;
}


.wcsm-request-form .input-text:focus {
    border-color: #d6d3db;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 1px #d6d3db;
}

/* Submit button */
.wcsm-request-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #96588a;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.wcsm-request-form input[type="submit"]:hover {
    background-color: #7c4d6f;
}

/* Error messages */
.wcsm-request-form .woocommerce-error {
    list-style: none;
    padding: 1em;
    margin-bottom: 1.5em;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
    color: #721c24;
}

.wcsm-request-form .woocommerce-error li {
    margin-bottom: 0.5em;
}

.wcsm-request-form .woocommerce-error li:last-child {
    margin-bottom: 0;
}

/* Success message */
.wcsm-request-form .woocommerce-message {
    padding: 1em;
    margin-bottom: 1.5em;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    color: #155724;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wcsm-reseller-registration-form {
        padding: 1.5em;
        margin: 0 1em;
    }
}

@media (max-width: 480px) {
    .wcsm-reseller-registration-form {
        padding: 1em;
    }
    
    .wcsm-request-form input[type="text"],
    .wcsm-request-form input[type="email"] {
        padding: 10px;
    }
    
    .wcsm-request-form input[type="submit"] {
        padding: 10px;
    }
}

/* Loading animation */
.wcsm-request-form .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading spinner */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

.wcsm-request-form.is-submitting .loading-spinner {
    display: inline-block;
}

.wcsm-request-form.is-submitting .btn-text {
    opacity: 0.7;
}
#wcsm-submit-btn {
    font-size: 20px;
    font-weight: 500;
    padding: 0.3em 1em;
    line-height: 1.7em !important;
}

/* AJAX notices */
.wcsm-notices {
    margin-bottom: 1.5em;
}

.wcsm-notice {
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 3px;
}

.wcsm-notice.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wcsm-notice.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.wcsm-reseller-notice {
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    padding: 12px;
    margin: 20px 0;
    border-radius: 3px;
}

/* Standard WooCommerce price styling for consistency */
.price del {
    opacity: 0.5;
    margin-right: 0.25em;
}

.price ins {
    text-decoration: none;
    font-weight: 700;
}

/* Single product page */
.single-product .price {
    font-size: 1.25em;
    color: #2c2c2c;
}

/* Loop items */
.products .price {
    font-size: 1em;
    margin-bottom: 0.5em;
    display: block;
}


/* Blogs list table */
.woocommerce-MyAccount-content-reseller-blogs table {
    margin-top: 20px;
}

/* Blog form styling */
.wcsm-blog-form .form-row {
    margin-bottom: 20px;
}

.wcsm-blog-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.wcsm-blog-form .input-text {
    width: 100%;
    padding: 8px;
}

.wcsm-blog-form .wp-editor-container {
    border: 1px solid #ddd;
}

/* Buttons */
.woocommerce-MyAccount-content-reseller-blogs .button {
    margin-bottom: 20px;
}

.wcsm-messages-container {
    max-width: 800px;
    margin: 0 auto;
}

.wcsm-messages-list {
    margin: 20px 0;
    border: 1px solid #ddd;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.wcsm-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
    animation: fadeIn 0.3s ease-in-out;
}

.wcsm-message.outgoing {
    background: #ffae002b;
    margin-left: auto;
}

.wcsm-message.incoming {
    background: #f1f1f1;
    margin-right: auto;
}

.wcsm-message.incoming:not(.read) {
    border-left: 3px solid #4CAF50;
}

.wcsm-message-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: black;
}
.wcsm-messages-list span {
    padding-left: 5px;
}

.wcsm-message-form textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 10px;
}

.wcsm-load-more-container {
    text-align: center;
    margin: 15px 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.woocommerce-MyAccount-navigation-link a .wcsm-unread-count {
    display: inline-block;
    background: #ff0000;
    color: #fff;
    font-size: 0.8em;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    text-align: center;
    line-height: 18px;
    margin-left: 5px;
    padding: 0 3px;
}



/* Admin menu badge */
#toplevel_page_wc-resellers-messages .wcsm-unread-count {
    display: inline-block;
    margin-left: 5px;
}

/* Admin messages list */
.wcsm-messages-list {
    max-height: 60vh;
}

/* Unread badge in table */
.wcsm-unread-badge {
    display: inline-block;
    background: #d63638;
    color: #fff;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1;
}

.wcsm-reply-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

@media screen and (max-width: 782px) {
    .wp-list-table td {
        padding: 8px 10px;
    }
    .wp-list-table .wcsm-unread-badge {
        margin-top: 5px;
    }
}



.grid--products.grid-reseller-products,
.blog-card-grid.grid-reseller-blogs {
    gap: 15px;
    justify-content: flex-start;
}
.grid-reseller-products .grid__item.grid-product,
.grid-reseller-blogs .grid__item {
    width: calc((100% / 3) - 15px);
    min-width: initial;
}

.wcsm-request-form .input-text {
    width: 100%;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f0eff2;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
}

.wcsm-request-form .input-text:hover{
	opacity: 1;
    color: #535252;
    background-color: #dcdae1;
    border-color: #d6d3db;
    -webkit-box-shadow: 0 0 0 0.2rem #bbb7c4;
    -moz-box-shadow: 0 0 0 0.2rem #bbb7c4;
    -ms-box-shadow: 0 0 0 0.2rem #bbb7c4;
    -o-box-shadow: 0 0 0 0.2rem #bbb7c4;
    box-shadow: 0 0 0 0.2rem #bbb7c4;
}

.wcsm-reseller-registration-form h2 {
    font-size: 40px !important;
}

/* d css close */