/* Estilos públicos de WCMC */

.wcmc-vendor-register-form,
.wcmc-vendor-dashboard,
.wcmc-memberships-section,
.wcmc-affiliate-dashboard {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wcmc-vendor-dashboard-title {
    color: #ffffff;
}

/* Cabecera de tienda (mejora estética) */
.wcmc-shop-header {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: linear-gradient(90deg, rgba(0,115,170,0.08), rgba(118,75,162,0.04));
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
}

.wcmc-shop-logo {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.wcmc-shop-info h2 {
    margin: 0 0 6px 0;
    font-size: 20px;
}

.wcmc-shop-info p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.wcmc-table .btn {
    padding: 6px 10px;
    font-size: 13px;
}

/* Formularios */
.wcmc-form {
    display: grid;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Botones */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0073aa;
    color: white;
}

.btn-primary:hover {
    background-color: #005a87;
}

.btn-success {
    background-color: #46b450;
    color: white;
}

.btn-success:hover {
    background-color: #369c3b;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.wcmc-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: #1f6fff;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.wcmc-navbar-verify {
    border: none;
    background: #0d95bf;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 10px;
}

.wcmc-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.wcmc-modal-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    width: 92%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.wcmc-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.wcmc-modal-actions {
    margin-top: 16px;
}

.wcmc-whatsapp-buy {
    display: flex;
    width: auto;
    max-width: 420px;
    box-sizing: border-box;
    align-items: center;
    gap: 12px;
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #ffffff !important;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin: 0 0 5px 0;
}

.wcmc-whatsapp-buy:hover {
    opacity: 0.9;
}

.wcmc-telegram-buy {
    display: flex;
    width: auto;
    max-width: 420px;
    box-sizing: border-box;
    align-items: center;
    gap: 12px;
    background: #37aee2 !important; /* color Telegram */
    border-color: #37aee2 !important;
    color: #ffffff !important;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin: 0 0 5px 0;
    font-size: 14px;
}

/* Forzar que Telegram quede debajo de WhatsApp y mantener separacion de 5px */
.wcmc-whatsapp-buy + .wcmc-telegram-buy {
    display: flex;
    margin-top: 5px;
}

/* Asegurar que el contenedor de botones los muestre en columna y centrados */
.wcmc-network-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.wcmc-telegram-buy:hover {
    opacity: 0.95;
}

.wcmc-vendor-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-top: 12px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
}

.wcmc-vendor-cta:hover {
    border-color: #cfcfcf;
}

.wcmc-vendor-cta-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wcmc-vendor-cta-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcmc-vendor-cta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.wcmc-vendor-cta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b6b6b;
    font-weight: 600;
}

.wcmc-vendor-cta-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f1f1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wcmc-vendor-cta-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b6b6b;
}

.wcmc-vendor-stars {
    display: inline-flex;
    gap: 2px;
}

.wcmc-vendor-star {
    color: #d1d1d1;
    font-size: 14px;
    line-height: 1;
}

.wcmc-vendor-star.is-active,
.wcmc-vendor-star.is-half {
    color: #f5a623;
}

/* Ocultar agregar al carrito en single product (tema puede reinsertarlo) */
body.single-product .single_add_to_cart_button,
body.single-product form.cart,
body.single-product .woocommerce-variation-add-to-cart,
body.single-product .woocommerce-variation-add-to-cart-enabled {
    display: none !important;
}

.wcmc-view-stats {
    margin-top: 20px;
    padding: 16px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
}

.wcmc-view-stats-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.wcmc-view-stats-header h3 {
    margin: 0;
    font-size: 18px;
}

.wcmc-view-stats-header p {
    margin: 0;
    color: #666666;
    font-size: 13px;
}

.wcmc-view-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.wcmc-view-card {
    padding: 12px;
    background: #f7f9fb;
    border-radius: 8px;
    border: 1px solid #e1e7ee;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcmc-view-card-label {
    font-size: 12px;
    color: #667085;
}

.wcmc-view-card-number {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.wcmc-view-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 13px;
}

.wcmc-view-table th,
.wcmc-view-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #ececec;
}

.wcmc-view-chart {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fafafa;
    min-height: 220px;
    margin-bottom: 16px;
}

.wcmc-view-chart-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 10px;
    color: #6b6b6b;
    padding: 4px 0;
}

.wcmc-view-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.wcmc-view-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 34px;
}

.wcmc-view-bar-group.is-future .wcmc-view-bar-fill {
    background: #e5e7eb;
}

.wcmc-view-bar-group.is-future .wcmc-view-bar-stack {
    opacity: 0.7;
}

.wcmc-view-bar-group.is-future .wcmc-view-bar-label {
    color: #b0b0b0;
}

.wcmc-view-bar-stack {
    height: 140px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.wcmc-view-bar-fill {
    width: 12px;
    height: 0;
    border-radius: 6px 6px 2px 2px;
    transition: height 0.3s ease;
}

.wcmc-view-bar-product {
    background: #1f6fff;
}

.wcmc-view-bar-store {
    background: #f59e0b;
}

.wcmc-view-bar-label {
    font-size: 10px;
    color: #6b6b6b;
    white-space: nowrap;
}


.wcmc-view-chart-legend {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b6b6b;
    align-items: center;
}

.wcmc-view-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.wcmc-view-legend-product {
    background: #1f6fff;
}

.wcmc-view-legend-store {
    background: #f59e0b;
}

.wcmc-view-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wcmc-view-settings-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wcmc-view-settings-status {
    font-size: 13px;
    color: #6b6b6b;
    font-weight: 600;
}

.wcmc-notifications-list {
    display: grid;
    gap: 12px;
}

.wcmc-notifications-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.wcmc-notifications-status {
    font-size: 13px;
    color: #6b6b6b;
    font-weight: 600;
}

.wcmc-notification-item {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
}

.wcmc-notification-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.wcmc-notification-message {
    color: #444444;
    font-size: 14px;
}

.wcmc-notification-date {
    margin-top: 8px;
    font-size: 12px;
    color: #777777;
}

.wcmc-notification-success {
    border-color: #bfe6c6;
    background: #f1fbf3;
}

.wcmc-notification-error {
    border-color: #f1b7b7;
    background: #fff4f4;
}

.wcmc-notification-info {
    border-color: #c9ddff;
    background: #f4f8ff;
}

.wcmc-notification-unread {
    border-color: #86efac;
    background: #f0fdf4;
}

.wcmc-notification-unread .wcmc-notification-title {
    color: #15803d;
}

.wcmc-notification-unread .wcmc-notification-message {
    color: #166534;
}

.wcmc-notification-info.wcmc-notification-unread {
    border-color: #93c5fd;
    background: #eff6ff;
}

.wcmc-notification-info.wcmc-notification-unread .wcmc-notification-title {
    color: #1d4ed8;
}

.wcmc-notification-info.wcmc-notification-unread .wcmc-notification-message {
    color: #1e3a8a;
}

.wcmc-notification-read {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.wcmc-notification-read .wcmc-notification-title,
.wcmc-notification-read .wcmc-notification-message,
.wcmc-notification-read .wcmc-notification-date {
    color: #6b7280;
}

.wcmc-notifications-empty {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 10px;
    color: #777777;
}

.wcmc-navbar-notifications {
    position: relative;
}

.wcmc-notifications-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wcmc-view-settings input[type="number"] {
    width: 120px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.wcmc-whatsapp-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 12px !important;
    background: currentColor;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path fill="%23000" d="M20.52 3.48A11.91 11.91 0 0 0 12.03 0C5.39 0 .01 5.38.01 12.02c0 2.12.55 4.19 1.6 6.02L0 24l6.2-1.62a12.05 12.05 0 0 0 5.83 1.48h.01c6.64 0 12.02-5.38 12.02-12.02 0-3.21-1.25-6.23-3.54-8.36ZM12.04 21.9h-.01c-1.87 0-3.71-.5-5.33-1.44l-.38-.23-3.68.96.98-3.59-.25-.37a9.91 9.91 0 0 1-1.52-5.27c0-5.48 4.46-9.94 9.95-9.94a9.88 9.88 0 0 1 7.02 2.92 9.87 9.87 0 0 1 2.91 7.02c0 5.48-4.46 9.94-9.94 9.94Zm5.46-7.42c-.3-.15-1.77-.87-2.04-.97-.27-.1-.47-.15-.66.15-.2.3-.76.97-.93 1.16-.17.2-.34.22-.64.07-.3-.15-1.25-.46-2.38-1.46-.88-.79-1.48-1.77-1.65-2.07-.17-.3-.02-.46.13-.61.13-.13.3-.34.45-.51.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.07-.15-.66-1.59-.91-2.18-.24-.58-.48-.5-.66-.5-.17 0-.37 0-.57 0-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.49 0 1.47 1.07 2.9 1.22 3.1.15.2 2.1 3.2 5.08 4.48.71.31 1.26.49 1.69.63.71.23 1.36.2 1.87.12.57-.09 1.77-.72 2.02-1.42.25-.7.25-1.3.17-1.42-.07-.12-.27-.2-.57-.35Z"/></svg>') center/contain no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path fill="%23000" d="M20.52 3.48A11.91 11.91 0 0 0 12.03 0C5.39 0 .01 5.38.01 12.02c0 2.12.55 4.19 1.6 6.02L0 24l6.2-1.62a12.05 12.05 0 0 0 5.83 1.48h.01c6.64 0 12.02-5.38 12.02-12.02 0-3.21-1.25-6.23-3.54-8.36ZM12.04 21.9h-.01c-1.87 0-3.71-.5-5.33-1.44l-.38-.23-3.68.96.98-3.59-.25-.37a9.91 9.91 0 0 1-1.52-5.27c0-5.48 4.46-9.94 9.95-9.94a9.88 9.88 0 0 1 7.02 2.92 9.87 9.87 0 0 1 2.91 7.02c0 5.48-4.46 9.94-9.94 9.94Zm5.46-7.42c-.3-.15-1.77-.87-2.04-.97-.27-.1-.47-.15-.66.15-.2.3-.76.97-.93 1.16-.17.2-.34.22-.64.07-.3-.15-1.25-.46-2.38-1.46-.88-.79-1.48-1.77-1.65-2.07-.17-.3-.02-.46.13-.61.13-.13.3-.34.45-.51.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.07-.15-.66-1.59-.91-2.18-.24-.58-.48-.5-.66-.5-.17 0-.37 0-.57 0-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.49 0 1.47 1.07 2.9 1.22 3.1.15.2 2.1 3.2 5.08 4.48.71.31 1.26.49 1.69.63.71.23 1.36.2 1.87.12.57-.09 1.77-.72 2.02-1.42.25-.7.25-1.3.17-1.42-.07-.12-.27-.2-.57-.35Z"/></svg>') center/contain no-repeat;
}

.wcmc-featured-admin {
    margin: 12px 0;
}

.wcmc-featured-admin-open {
    border: none;
    background: #d4a017;
    color: #ffffff;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.wcmc-featured-admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.wcmc-featured-admin-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    width: 92%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.wcmc-featured-admin-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.wcmc-featured-admin-field {
    margin-top: 12px;
    display: grid;
    gap: 6px;
}

.wcmc-featured-admin-field select,
.wcmc-featured-admin-field input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.wcmc-featured-admin-available {
    margin-top: 12px;
    font-weight: 600;
    color: #555;
}

.wcmc-featured-admin-actions {
    margin-top: 16px;
    text-align: right;
}

.wcmc-featured-admin-save {
    border: none;
    background: #0d95bf;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Dashboard */
.wcmc-dashboard-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.wcmc-stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.wcmc-stat-box h3 {
    margin: 0 0 10px 0;
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
}

.wcmc-stat-box .number {
    font-size: 32px;
    font-weight: bold;
}

/* Tabs */
.wcmc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.wcmc-tab {
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.wcmc-tab:hover {
    color: #0073aa;
}

.wcmc-tab.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.wcmc-tab-content {
    display: none;
}

.wcmc-tab-content.active {
    display: block;
}

/* Tabla */
.wcmc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.wcmc-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.wcmc-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Mapa */
#wcmc-stores-map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.wcmc-stores-filters {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wcmc-filter-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.wcmc-search-row {
    margin-bottom: 12px;
    grid-template-columns: 1fr auto;
    align-items: end;
}

.wcmc-filter-item label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    color: #555;
}

.wcmc-filter-item input,
.wcmc-filter-item select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#wcmc-store-search {
    font-size: 16px;
    padding: 14px 16px;
    border: 2px solid #0073aa;
    border-radius: 10px;
    background: #f8fbff;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.12);
}

#wcmc-store-search-btn,
#wcmc-store-map-apply,
.wcmc-filter-toggle {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #0d95bf;
    background: #4147bf;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.wcmc-filter-toggle {
    background: #fff7ec;
    color: #d26a00;
    margin-bottom: 12px;
}

.wcmc-filter-panel {
    margin-bottom: 12px;
}

.wcmc-filter-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

.wcmc-map-panel {
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.wcmc-map-marker-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #555;
    background: #fff7ec;
    border: 1px solid #f2d5b0;
    border-radius: 8px;
    padding: 8px 10px;
}

.wcmc-shop-loading {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f5f7fa;
    border-radius: 6px;
    color: #555;
}

.wcmc-map-search label,
.wcmc-map-distance label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

#wcmc-store-location-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.wcmc-location-suggestions {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 200px;
    overflow: auto;
    display: none;
    z-index: 5;
}

.wcmc-suggestion {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
}

.wcmc-suggestion:hover {
    background: #f9f9f9;
}

/* Tiendas */
.wcmc-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wcmc-store-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.wcmc-store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.wcmc-store-banner {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.wcmc-store-info {
    padding: 15px;
}

.wcmc-store-header {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    margin: -28px 0 10px;
}

.wcmc-store-logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
    color: #555;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.wcmc-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcmc-store-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.wcmc-store-meta {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.wcmc-store-distance {
    color: #0073aa;
    font-weight: 600;
}

.wcmc-store-description {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.wcmc-store-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.wcmc-store-rating .star-rating {
    font-size: 12px;
    line-height: 1;
    color: #f2b233;
}

.wcmc-store-stars {
    display: flex;
    gap: 2px;
}

.wcmc-store-star {
    font-size: 12px;
    color: #d1d5db;
}

.wcmc-store-star.active {
    color: #f2b233;
}

.wcmc-store-star.half {
    background: linear-gradient(90deg, #f2b233 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.wcmc-store-rating-count {
    font-size: 12px;
    color: #6b7280;
}

.wcmc-store-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #1f6fff;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.wcmc-no-products {
    padding: 12px 0;
    color: #555;
}

.wcmc-map-popup {
    display: grid;
    gap: 8px;
    min-width: 180px;
}

.wcmc-map-popup-header {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 8px;
    align-items: center;
}

.wcmc-map-popup-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f2f4f8;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
    color: #555;
}

.wcmc-map-popup-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcmc-map-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.wcmc-map-popup-address {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wcmc-map-popup-rating .star-rating {
    font-size: 12px;
    line-height: 1;
    color: #f2b233;
}

.wcmc-map-popup-rating .wcmc-store-stars .wcmc-store-star.active {
    color: #f2b233;
}

.wcmc-map-popup-button {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    background: #ff8c00;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.wcmc-store-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.wcmc-store-actions button {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

/* Membresías */
.wcmc-membership-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.wcmc-membership-subtitle {
    color: #6b7280;
    margin: 6px 0 0 0;
    font-size: 14px;
}

.wcmc-membership-status {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    min-width: 220px;
}

.wcmc-membership-status-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-bottom: 6px;
}

.wcmc-membership-status-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.wcmc-membership-status-meta {
    font-size: 12px;
    color: #6b7280;
}

.wcmc-membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.wcmc-plan-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.wcmc-plan-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.wcmc-plan-card:hover {
    border-color: #0073aa;
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.2);
}

.wcmc-plan-card.featured {
    border-color: #0073aa;
    background-color: #f0f5ff;
    transform: scale(1.05);
}

.wcmc-plan-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.wcmc-plan-price {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

.wcmc-plan-price small {
    font-size: 14px;
    color: #666;
}

.wcmc-plan-free {
    color: #16a34a;
    font-weight: 700;
}

/* Checkout de membresias */
.wcmc-membership-checkout .woocommerce-checkout {
    background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 40%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e3ebff;
}

.wcmc-membership-checkout .woocommerce-checkout h3,
.wcmc-membership-checkout .woocommerce-checkout h2 {
    color: #0f2a5f;
    letter-spacing: 0.2px;
}

.wcmc-membership-checkout .woocommerce-checkout .form-row label {
    font-weight: 600;
    color: #17356f;
}

.wcmc-membership-checkout .woocommerce-checkout input[type="text"],
.wcmc-membership-checkout .woocommerce-checkout input[type="email"],
.wcmc-membership-checkout .woocommerce-checkout input[type="tel"],
.wcmc-membership-checkout .woocommerce-checkout select,
.wcmc-membership-checkout .woocommerce-checkout textarea {
    border-radius: 10px;
    border: 1px solid #d7e3ff;
    padding: 10px 12px;
    box-shadow: none;
}

.wcmc-membership-checkout .woocommerce-checkout #order_review {
    background: #ffffff;
    border: 1px solid #e3ebff;
    border-radius: 14px;
    padding: 16px;
}

.wcmc-membership-checkout .woocommerce-checkout table.shop_table {
    border: none;
}

.wcmc-membership-checkout .woocommerce-checkout table.shop_table th,
.wcmc-membership-checkout .woocommerce-checkout table.shop_table td {
    border: none;
}

.wcmc-membership-checkout .wcmc-membership-cart-item {
    background: #f6f9ff;
    border-radius: 12px;
    border: 1px solid #dbe7ff;
}

.wcmc-membership-checkout .wcmc-membership-line {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcmc-membership-checkout .wcmc-membership-line-badge {
    display: inline-flex;
    align-self: flex-start;
    background: #143c8a;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.wcmc-membership-checkout .wcmc-membership-line-title a,
.wcmc-membership-checkout .wcmc-membership-line-title {
    color: #0f2a5f;
    font-weight: 700;
    text-decoration: none;
}

.wcmc-membership-checkout .wcmc-membership-line-meta {
    color: #4b6cb7;
    font-size: 12px;
    font-weight: 600;
}

.wcmc-membership-checkout .woocommerce-checkout-review-order-table .cart_item td,
.wcmc-membership-checkout .woocommerce-checkout-review-order-table .cart_item th {
    padding-top: 14px;
    padding-bottom: 14px;
}

.wcmc-membership-checkout .woocommerce-checkout .woocommerce-checkout-review-order-table tr,
.wcmc-membership-checkout .woocommerce-checkout .woocommerce-checkout-review-order-table td,
.wcmc-membership-checkout .woocommerce-checkout .woocommerce-checkout-review-order-table th {
    background: transparent;
}

.wcmc-membership-checkout .woocommerce-checkout .order-total .amount,
.wcmc-membership-checkout .woocommerce-checkout .cart-subtotal .amount {
    color: #0f2a5f;
    font-weight: 700;
}

.wcmc-membership-checkout .woocommerce-checkout button.button,
.wcmc-membership-checkout .woocommerce-checkout .button,
.wcmc-membership-checkout .woocommerce-checkout #place_order {
    background: #f97316;
    border: none;
    color: #ffffff;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.25);
}

.wcmc-membership-checkout .woocommerce-checkout button.button:hover,
.wcmc-membership-checkout .woocommerce-checkout .button:hover,
.wcmc-membership-checkout .woocommerce-checkout #place_order:hover {
    background: #ea580c;
}

.wcmc-membership-checkout .woocommerce-checkout .woocommerce-info,
.wcmc-membership-checkout .woocommerce-checkout .woocommerce-message,
.wcmc-membership-checkout .woocommerce-checkout .woocommerce-error {
    border-radius: 10px;
}

.wcmc-membership-checkout a.wc-backward,
.wcmc-membership-checkout .woocommerce-error .button.wc-backward,
.wcmc-membership-checkout .woocommerce-message .button.wc-backward,
.wcmc-membership-checkout .woocommerce-info .button.wc-backward {
    display: none;
}

.wcmc-membership-checkout .woocommerce-message a.button,
.wcmc-membership-checkout .woocommerce-info a.button,
.wcmc-membership-checkout .woocommerce-error a.button,
.wcmc-membership-checkout .woocommerce-notices-wrapper a.button {
    display: none;
}

.wcmc-membership-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button {
    display: none;
}

.wcmc-membership-checkout .wcmc-simulate-pay {
    background: #0f2a5f;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    margin-right: 10px;
    box-shadow: 0 6px 14px rgba(15, 42, 95, 0.25);
}

.wcmc-membership-checkout .wcmc-simulate-pay:hover {
    background: #13346f;
}

.wcmc-plan-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(17, 24, 39, 0.85);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.wcmc-plan-description {
    margin-top: 10px;
    font-size: 14px;
    color: inherit;
}

.wcmc-plan-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.wcmc-plan-buy {
    text-decoration: none;
}

.wcmc-plan-features {
    list-style: none;
    padding: 20px 0;
    text-align: left;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.wcmc-plan-features li {
    padding: 8px 0;
    color: #666;
    font-size: 13px;
}

.wcmc-plan-features li:before {
    content: "✓ ";
    color: #46b450;
    font-weight: bold;
    margin-right: 8px;
}

/* Alertas */
.wcmc-alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

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

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

.wcmc-alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .wcmc-vendor-register-form,
    .wcmc-vendor-dashboard,
    .wcmc-memberships-section,
    .wcmc-affiliate-dashboard {
        padding: 15px;
    }

    .wcmc-membership-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wcmc-dashboard-header {
        grid-template-columns: 1fr;
    }

    .wcmc-membership-plans {
        grid-template-columns: 1fr;
    }

    .wcmc-stores-grid {
        grid-template-columns: 1fr;
    }

    .wcmc-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wcmc-search-row {
        grid-template-columns: 1fr;
    }

    .wcmc-plan-card.featured {
        transform: scale(1);
    }

    #wcmc-stores-map {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .wcmc-filter-row {
        grid-template-columns: 1fr;
    }
}

/* RECUADRO DEL VENDEDOR EN PÁGINA DE PRODUCTO */
.wcmc-product-vendor-box {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.wcmc-product-vendor-box:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 16px rgba(0, 115, 170, 0.15);
}

.wcmc-vendor-box-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.wcmc-vendor-box-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcmc-vendor-box-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    align-items: flex-start;
}

.wcmc-vendor-box-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border: 3px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.wcmc-vendor-box-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcmc-vendor-box-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wcmc-vendor-box-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.wcmc-vendor-box-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcmc-vendor-box-stars {
    display: flex;
    gap: 2px;
}

.wcmc-vendor-box-star {
    font-size: 14px;
    color: #ddd;
    transition: color 0.2s;
}

.wcmc-vendor-box-star.active {
    color: #ffc107;
}

.wcmc-vendor-box-star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wcmc-vendor-box-rating-text {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.wcmc-vendor-box-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.wcmc-vendor-box-button {
    display: inline-block;
    background-color: #0073aa;
    color: white !important;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 5px;
}

.wcmc-vendor-box-button:hover {
    background-color: #005a87;
    transform: translateX(3px);
}

/* Responsive para tablet */
@media (max-width: 768px) {
    .wcmc-product-vendor-box {
        padding: 15px;
        margin: 15px 0;
    }

    .wcmc-vendor-box-content {
        grid-template-columns: auto 1fr;
        gap: 12px;
    }

    .wcmc-vendor-box-logo {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }

    .wcmc-vendor-box-name {
        font-size: 14px;
    }

    .wcmc-vendor-box-star {
        font-size: 12px;
    }

    .wcmc-vendor-box-rating-text {
        font-size: 11px;
    }

    .wcmc-vendor-box-description {
        font-size: 12px;
    }

    .wcmc-vendor-box-button {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Responsive para móvil */
@media (max-width: 480px) {
    .wcmc-product-vendor-box {
        padding: 12px;
        margin: 12px 0;
    }

    .wcmc-vendor-box-header h3 {
        font-size: 12px;
    }

    .wcmc-vendor-box-content {
        gap: 10px;
    }

    .wcmc-vendor-box-logo {
        width: 60px;
        height: 60px;
    }

    .wcmc-vendor-box-name {
        font-size: 13px;
    }

    .wcmc-vendor-box-star {
        font-size: 11px;
    }

    .wcmc-vendor-box-rating-text {
        font-size: 10px;
    }

    .wcmc-vendor-box-description {
        font-size: 11px;
    }

    .wcmc-vendor-box-button {
        padding: 7px 10px;
        font-size: 11px;
    }
}

/* CSS para botón de guardar cambios */
#wcmc-guardar-cambios-btn {
    display: none !important;
    margin-top: 0;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background-color: #28a745 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

#wcmc-guardar-cambios-btn:hover {
    background-color: #218838 !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

#wcmc-guardar-cambios-btn:active {
    transform: translateY(0);
}

#wcmc-guardar-cambios-btn.wcmc-show {
    display: inline-block !important;
}

#wcmc-guardar-cambios-btn.wcmc-hidden-button {
    display: none !important;
}

.wcmc-cookie-notice {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: var(--wcmc-cookie-bg, #111827);
    color: var(--wcmc-cookie-text, #f9fafb);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.wcmc-cookie-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wcmc-cookie-notice__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wcmc-cookie-notice__text {
    font-size: 13px;
    line-height: 1.5;
}

.wcmc-cookie-notice__link {
    color: var(--wcmc-cookie-link, #93c5fd);
    text-decoration: underline;
}

.wcmc-cookie-notice__btn {
    align-self: flex-start;
    border: none;
    background: var(--wcmc-cookie-btn-bg, #22c55e);
    color: var(--wcmc-cookie-btn-text, #0f172a);
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
}

.wcmc-cookie-notice__btn:hover {
    filter: brightness(0.95);
}

@media (min-width: 640px) {
    .wcmc-cookie-notice {
        left: auto;
        right: 24px;
        bottom: 24px;
        max-width: 420px;
    }

    .wcmc-cookie-notice__content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .wcmc-cookie-notice__text {
        font-size: 14px;
    }
}
