/* ==========================================================
   MORANI PRODUCT MANAGER
   PANEL PRIVADO
   ========================================================== */


/* ==========================================================
   BASE
   ========================================================== */

.mpm-panel,
.mpm-login,
.mpm-access-denied {
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 20px 48px;
	box-sizing: border-box;
	color: #17233b;
}

.mpm-panel h1,
.mpm-panel h2,
.mpm-panel h3,
.mpm-panel h4,
.mpm-login h1,
.mpm-login h2 {
	color: #10244a;
}

.mpm-panel a,
.mpm-login a {
	text-decoration: none;
}


/* ==========================================================
   HEADER
   ========================================================== */

.mpm-panel__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-bottom: 28px;
	padding: 22px 24px;
	border: 1px solid #e0e6ef;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(16, 36, 74, 0.07);
	box-sizing: border-box;
}

.mpm-panel__header > div:first-child {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mpm-panel__header span {
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
}

.mpm-panel__header h1 {
	margin: 0;
	font-size: 30px;
	line-height: 1.15;
}

.mpm-panel__user {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	text-align: right;
}

.mpm-panel__user a {
	font-size: 13px;
	font-weight: 700;
	color: #ff4f19;
}


/* ==========================================================
   BIENVENIDA
   ========================================================== */

.mpm-panel__welcome {
	margin-bottom: 22px;
	padding: 20px 22px;
	border: 1px solid #e6ebf2;
	border-radius: 14px;
	background: #f8fafc;
	box-sizing: border-box;
}

.mpm-panel__welcome h2 {
	margin: 0 0 6px;
	font-size: 22px;
}

.mpm-panel__welcome p {
	margin: 0;
	color: #64748b;
	line-height: 1.55;
}


/* ==========================================================
   HERRAMIENTAS
   ========================================================== */

.mpm-panel-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}


/* ==========================================================
   BOTONES
   ========================================================== */

.mpm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 42px;
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mpm-button:hover {
	transform: translateY(-1px);
}

.mpm-button--primary {
	background: #10244a;
	color: #ffffff;
}

.mpm-button--primary:hover {
	background: #172f60;
	color: #ffffff;
	-webkit-text-fill-color: #ffffff;
	box-shadow: 0 6px 16px rgba(16, 36, 74, 0.18);
}

.mpm-button--secondary {
	border: 1px solid #cad4e1;
	background: #ffffff;
	color: #10244a;
}

.mpm-button--secondary:hover {
	background: #f4f7fb;
	color: #10244a;
}

.mpm-button--danger {
	background: #ff4f19;
	color: #ffffff;
}

.mpm-button--danger:hover {
	background: #e84410;
	color: #ffffff;
}

.mpm-button[disabled],
.mpm-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}


/* ==========================================================
   MENSAJES
   ========================================================== */

.mpm-message {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	box-sizing: border-box;
}

.mpm-message--success {
	border: 1px solid #bbf7d0;
	background: #ecfdf3;
	color: #166534;
}

.mpm-message--error {
	border: 1px solid #fecdd3;
	background: #fff1f2;
	color: #9f1239;
}


/* ==========================================================
   PRODUCTOS
   ========================================================== */

.mpm-products {
	margin-top: 20px;
}

.mpm-products__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 16px;
}

.mpm-products__header h2 {
	margin: 0 0 4px;
	font-size: 22px;
}

.mpm-products__header p {
	margin: 0;
	color: #64748b;
}

.mpm-products-table-wrapper {
	width: 100%;
	overflow-x: auto;
	border: 1px solid #dfe6ef;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(16, 36, 74, 0.05);
	box-sizing: border-box;
}

.mpm-products-table {
	width: 100%;
	min-width: 850px;
	border-collapse: collapse;
}

.mpm-products-table th {
	padding: 14px 16px;
	border-bottom: 1px solid #dfe6ef;
	background: #f8fafc;
	color: #10244a;
	font-size: 13px;
	font-weight: 800;
	text-align: left;
}

.mpm-products-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #edf1f5;
	vertical-align: middle;
}

.mpm-products-table tbody tr:last-child td {
	border-bottom: 0;
}

.mpm-products-table tbody tr:hover {
	background: #fbfcfe;
}


/* ==========================================================
   PRODUCTO
   ========================================================== */

.mpm-product-cell__content {
	display: flex;
	align-items: center;
	gap: 14px;
}

.mpm-product-cell__image {
	width: 74px;
	height: 74px;
	flex: 0 0 74px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f4f6f8;
	box-sizing: border-box;
}

.mpm-product-cell__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mpm-product-cell__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mpm-product-cell__info strong {
	color: #10244a;
	font-size: 14px;
}

.mpm-product-cell__info span {
	color: #64748b;
	font-size: 12px;
}


/* ==========================================================
   PRECIO / STOCK / ESTADO
   ========================================================== */

.mpm-price {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.mpm-price del {
	color: #94a3b8;
	font-size: 12px;
}

.mpm-price strong {
	color: #ff4f19;
}

.mpm-stock,
.mpm-status {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.mpm-stock--ok,
.mpm-status--publish {
	background: #ecfdf3;
	color: #15803d;
}

.mpm-stock--out {
	background: #fff1f2;
	color: #b91c1c;
}

.mpm-status--draft {
	background: #fff7ed;
	color: #c2410c;
}

.mpm-status--pending {
	background: #eff6ff;
	color: #1d4ed8;
}

.mpm-status--private {
	background: #f1f5f9;
	color: #475569;
}


/* ==========================================================
   ACCIONES
   ========================================================== */

.mpm-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}


/* ==========================================================
   FORMULARIOS
   ========================================================== */

.mpm-product-form,
.mpm-taxonomies {
	margin-top: 10px;
	padding: 26px;
	border: 1px solid #dfe6ef;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(16, 36, 74, 0.06);
	box-sizing: border-box;
}

.mpm-product-form__header,
.mpm-taxonomies__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid #edf1f5;
}

.mpm-product-form__header h2,
.mpm-taxonomies__header h2 {
	margin: 0 0 5px;
	font-size: 24px;
}

.mpm-product-form__header p,
.mpm-taxonomies__header p {
	margin: 0;
	color: #64748b;
}


/* ==========================================================
   GRID
   ========================================================== */

.mpm-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.mpm-form-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.mpm-form-field--full {
	grid-column: 1 / -1;
}

.mpm-form-field label {
	color: #10244a;
	font-size: 13px;
	font-weight: 800;
}

.mpm-form-field input[type="text"],
.mpm-form-field input[type="number"],
.mpm-form-field input[type="email"],
.mpm-form-field input[type="password"],
.mpm-form-field select,
.mpm-form-field textarea {
	width: 100%;
	min-height: 42px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: none;
	color: #17233b;
	font-size: 14px;
	box-sizing: border-box;
}

.mpm-form-field textarea {
	min-height: 120px;
	resize: vertical;
}

.mpm-form-field input:focus,
.mpm-form-field select:focus,
.mpm-form-field textarea:focus {
	outline: none;
	border-color: #10244a;
	box-shadow: 0 0 0 3px rgba(16, 36, 74, 0.08);
}

.mpm-form-field small {
	color: #64748b;
	font-size: 12px;
	line-height: 1.45;
}


/* ==========================================================
   CATEGORÍA / MARCA INLINE
   ========================================================== */

.mpm-taxonomy-inline {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
}

.mpm-taxonomy-inline select {
	min-width: 0;
}

.mpm-taxonomy-inline__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mpm-taxonomy-inline__actions .mpm-button {
	min-height: 42px;
	white-space: nowrap;
}


/* ==========================================================
   ATRIBUTOS
   ========================================================== */

.mpm-attributes-section {
	margin-top: 4px;
	margin-bottom: 6px;
	padding: 20px;
	border: 1px solid #d8e0e9;
	border-radius: 12px;
	background: #f8fafc;
	box-sizing: border-box;
}

.mpm-attributes-section__header {
	margin-bottom: 18px;
}

.mpm-attributes-section__header h3 {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 800;
}

.mpm-attributes-section__header p {
	margin: 0;
	color: #64748b;
	font-size: 13px;
}

.mpm-attribute-card {
	margin-bottom: 16px;
	padding: 16px;
	border: 1px solid #dbe3ec;
	border-radius: 10px;
	background: #ffffff;
	box-sizing: border-box;
}

.mpm-attribute-card__top {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: flex-end;
	gap: 14px;
	margin-bottom: 16px;
}

.mpm-attribute-name-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mpm-attribute-name-field label {
	font-size: 13px;
	font-weight: 800;
}

.mpm-attribute-name-field input {
	width: 100%;
	min-height: 42px;
	padding: 9px 11px;
	border: 1px solid #cfd8e3;
	border-radius: 8px;
	background: #ffffff;
	color: #17233b;
	box-sizing: border-box;
}

.mpm-attribute-name-field input:focus {
	outline: none;
	border-color: #10244a;
	box-shadow: 0 0 0 3px rgba(16, 36, 74, 0.08);
}

.mpm-attribute-values {
	padding-top: 14px;
	border-top: 1px solid #edf1f5;
}

.mpm-attribute-values__header {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 10px;
}

.mpm-attribute-values__header strong {
	font-size: 14px;
}

.mpm-attribute-values__header span {
	color: #64748b;
	font-size: 12px;
}

.mpm-attribute-values-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
}

.mpm-attribute-value-row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 10px;
}

.mpm-attribute-value-row input {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #cfd8e3;
	border-radius: 8px;
	background: #ffffff;
	color: #17233b;
	box-sizing: border-box;
}

.mpm-attribute-value-row input:focus {
	outline: none;
	border-color: #10244a;
	box-shadow: 0 0 0 3px rgba(16, 36, 74, 0.08);
}

.mpm-attributes-add {
	margin-top: 10px;
}


/* ==========================================================
   MEDIA
   ========================================================== */

.mpm-media-section {
	padding: 20px;
	border: 1px solid #dfe6ef;
	border-radius: 12px;
	background: #f8fafc;
	box-sizing: border-box;
}

.mpm-media-section__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.mpm-media-section__header h3 {
	margin: 0 0 5px;
	color: #10244a;
	font-size: 18px;
	font-weight: 800;
}

.mpm-media-section__header p {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.5;
}


/* ==========================================================
   SELECTOR DE ARCHIVOS
   ========================================================== */

.mpm-file-picker {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.mpm-file-input {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

/*
 * Botón real <button>, no label.
 * Esto evita que Astra o WordPress oculten el texto hasta hover.
 */
html body .mpm-panel .mpm-product-form button.mpm-file-button,
html body .mpm-product-form button.mpm-file-button,
.mpm-panel .mpm-file-button,
.mpm-product-form .mpm-file-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	background: #10244a;
	color: #ffffff;
	-webkit-text-fill-color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-sizing: border-box;
	opacity: 1;
	visibility: visible;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

html body .mpm-panel .mpm-product-form button.mpm-file-button:hover,
html body .mpm-product-form button.mpm-file-button:hover,
.mpm-panel .mpm-file-button:hover,
.mpm-product-form .mpm-file-button:hover {
	background: #172f60;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 5px 14px rgba(16, 36, 74, 0.15);
}

.mpm-panel .mpm-file-button:disabled,
.mpm-product-form .mpm-file-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.mpm-file-info {
	display: flex;
	flex: 1 1 220px;
	align-items: center;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid #d5dde7;
	border-radius: 8px;
	background: #ffffff;
	color: #64748b;
	font-size: 13px;
	word-break: break-word;
	box-sizing: border-box;
}

.mpm-media-help {
	display: block;
	margin-top: 9px;
	color: #64748b;
	font-size: 12px;
	line-height: 1.45;
}


/* ==========================================================
   IMAGEN PRINCIPAL
   ========================================================== */

.mpm-current-image {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 12px 0 4px;
	padding: 10px;
	border: 1px solid #dfe6ef;
	border-radius: 12px;
	background: #ffffff;
	box-sizing: border-box;
}

.mpm-current-image img {
	display: block;
	width: 150px;
	height: 150px;
	border-radius: 9px;
	object-fit: cover;
}


/* ==========================================================
   GALERÍA
   ========================================================== */

.mpm-gallery-empty {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 12px 0 14px;
	padding: 16px;
	border: 1px dashed #c9d4e1;
	border-radius: 10px;
	background: #ffffff;
	box-sizing: border-box;
}

.mpm-gallery-empty strong {
	color: #10244a;
	font-size: 14px;
}

.mpm-gallery-empty span {
	color: #64748b;
	font-size: 12px;
	line-height: 1.45;
}

.mpm-gallery-current {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
	margin: 14px 0 18px;
}

.mpm-gallery-item {
	padding: 10px;
	border: 1px solid #dfe6ef;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 3px 10px rgba(16, 36, 74, 0.04);
	box-sizing: border-box;
	transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.mpm-gallery-item--remove {
	opacity: 0.55;
	border-color: #fecaca;
	background: #fff7f7;
}

.mpm-gallery-item img {
	display: block;
	width: 100%;
	height: 150px;
	margin-bottom: 9px;
	border-radius: 8px;
	object-fit: cover;
}

.mpm-gallery-remove {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: #b91c1c;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.mpm-gallery-remove input {
	margin: 0;
}


/* ==========================================================
   VIDEO
   ========================================================== */

.mpm-current-video {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 12px 0 16px;
	padding: 12px;
	border: 1px solid #dfe6ef;
	border-radius: 12px;
	background: #ffffff;
	box-sizing: border-box;
}

.mpm-current-video video {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 320px;
	margin-bottom: 12px;
	border-radius: 10px;
	background: #000000;
	object-fit: contain;
}

.mpm-video-remove {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: #b91c1c;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.mpm-video-remove input {
	margin: 0;
}

@media (max-width: 700px) {

	.mpm-current-video {
		align-items: stretch;
	}

	.mpm-current-video video {
		width: 100%;
		height: auto;
		max-height: 300px;
		object-fit: contain;
	}
}


/* ==========================================================
   ACCIONES FORMULARIO
   ========================================================== */

.mpm-product-form__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #edf1f5;
}


/* ==========================================================
   CATEGORÍAS Y MARCAS
   ========================================================== */

.mpm-taxonomies-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.mpm-taxonomy-box {
	padding: 20px;
	border: 1px solid #e0e6ef;
	border-radius: 14px;
	background: #f8fafc;
	box-sizing: border-box;
}

.mpm-taxonomy-box h3 {
	margin-top: 0;
}

.mpm-taxonomy-list {
	margin-top: 20px;
}

.mpm-taxonomy-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mpm-taxonomy-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #e6ebf2;
}

.mpm-taxonomy-list li:last-child {
	border-bottom: 0;
}

.mpm-taxonomy-list li > div {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 5px;
}

.mpm-taxonomy-list span {
	color: #64748b;
	font-size: 12px;
}

.mpm-taxonomy-list form {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.mpm-taxonomy-list form input[type="text"] {
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	color: #17233b;
	box-sizing: border-box;
}


/* ==========================================================
   LOGIN
   ========================================================== */

.mpm-login {
	max-width: 680px;
}

.mpm-login h1 {
	margin-bottom: 8px;
}

.mpm-login > p {
	margin-bottom: 22px;
	color: #64748b;
}

.mpm-login form {
	padding: 24px;
	border: 1px solid #dfe6ef;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(16, 36, 74, 0.06);
	box-sizing: border-box;
}

.mpm-login form p {
	margin-bottom: 16px;
}

.mpm-login form label {
	display: block;
	margin-bottom: 6px;
	color: #10244a;
	font-size: 13px;
	font-weight: 700;
}

.mpm-login input[type="text"],
.mpm-login input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	color: #17233b;
	box-sizing: border-box;
}

.mpm-login input[type="text"]:focus,
.mpm-login input[type="password"]:focus {
	outline: none;
	border-color: #10244a;
	box-shadow: 0 0 0 3px rgba(16, 36, 74, 0.08);
}

.mpm-login input[type="submit"] {
	min-height: 42px;
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	background: #10244a;
	color: #ffffff;
	font-weight: 700;
	cursor: pointer;
}

.mpm-login input[type="submit"]:hover {
	background: #172f60;
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.mpm-empty-state {
	padding: 30px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	text-align: center;
	box-sizing: border-box;
}


/* ==========================================================
   VIDEO EN LA FICHA PÚBLICA
   ========================================================== */

.mpm-public-product-video {
	clear: both;
	margin: 28px 0;
	padding: 20px;
	border: 1px solid #dfe6ef;
	border-radius: 14px;
	background: #ffffff;
	box-sizing: border-box;
}

.mpm-public-product-video h2 {
	margin: 0 0 14px;
	color: #10244a;
	font-size: 22px;
}

.mpm-public-product-video video {
	display: block;
	width: 100%;
	max-width: 760px;
	max-height: 560px;
	margin: 0 auto;
	border-radius: 12px;
	background: #000000;
}


/* ==========================================================
   RESPONSIVE TABLET
   ========================================================== */

@media (max-width: 900px) {

	.mpm-form-grid,
	.mpm-taxonomies-grid {
		grid-template-columns: 1fr;
	}

	.mpm-form-field--full {
		grid-column: auto;
	}

	.mpm-panel__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.mpm-panel__user {
		align-items: flex-start;
		text-align: left;
	}
}


/* ==========================================================
   RESPONSIVE MÓVIL
   ========================================================== */

@media (max-width: 700px) {

	.mpm-panel,
	.mpm-login,
	.mpm-access-denied {
		padding: 20px 14px 36px;
	}

	.mpm-panel__header,
	.mpm-product-form,
	.mpm-taxonomies {
		padding: 18px;
		border-radius: 12px;
	}

	.mpm-products__header,
	.mpm-product-form__header,
	.mpm-taxonomies__header {
		flex-direction: column;
		align-items: stretch;
	}

	.mpm-products__header .mpm-button,
	.mpm-product-form__header .mpm-button,
	.mpm-taxonomies__header .mpm-button {
		width: 100%;
	}

	.mpm-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.mpm-actions .mpm-button {
		width: 100%;
	}

	.mpm-taxonomy-inline {
		grid-template-columns: 1fr;
	}

	.mpm-taxonomy-inline__actions {
		width: 100%;
	}

	.mpm-taxonomy-inline__actions .mpm-button {
		flex: 1 1 0;
	}

	.mpm-attribute-card__top {
		grid-template-columns: 1fr;
	}

	.mpm-attribute-card__actions {
		width: 100%;
	}

	.mpm-attribute-card__actions .mpm-button {
		width: 100%;
	}

	.mpm-attribute-value-row {
		grid-template-columns: 1fr;
	}

	.mpm-attribute-value-row .mpm-button {
		width: 100%;
	}

	.mpm-attribute-values__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	.mpm-media-section {
		padding: 16px;
	}

	.mpm-file-picker {
		flex-direction: column;
		align-items: stretch;
	}

	.mpm-panel .mpm-file-button,
	.mpm-product-form .mpm-file-button,
	.mpm-file-info {
		width: 100%;
	}

	.mpm-file-info {
		flex: none;
	}

	.mpm-gallery-current {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mpm-gallery-item img {
		height: 130px;
	}

	.mpm-current-image {
		width: 100%;
	}

	.mpm-current-image img {
		width: 100%;
		height: auto;
		max-height: 280px;
		object-fit: contain;
	}

	.mpm-product-form__actions {
		flex-direction: column;
	}

	.mpm-product-form__actions .mpm-button {
		width: 100%;
	}

	.mpm-taxonomy-list li {
		align-items: stretch;
		flex-direction: column;
	}

	.mpm-taxonomy-list form {
		align-items: stretch;
		flex-direction: column;
	}

	.mpm-taxonomy-list form input[type="text"],
	.mpm-taxonomy-list form .mpm-button {
		width: 100%;
	}
}
/* =========================================================
   GALERIA PUBLICA TIPO MERCADO LIBRE
========================================================= */

.mpm-public-gallery {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.mpm-public-gallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mpm-public-gallery__thumb {
	position: relative;
	width: 72px;
	height: 72px;
	border: 2px solid #dbe4f0;
	border-radius: 10px;
	background: #ffffff;
	padding: 4px;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.mpm-public-gallery__thumb:hover,
.mpm-public-gallery__thumb.is-active {
	border-color: #2962ff;
	box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.12);
}

.mpm-public-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 6px;
}

.mpm-public-gallery__video-badge {
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: rgba(17, 34, 68, 0.9);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.mpm-public-gallery__stage {
	min-width: 0;
}

.mpm-public-gallery__viewport {
	width: 100%;
	min-height: 420px;
	border: 1px solid #dbe4f0;
	border-radius: 16px;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	overflow: hidden;
}

.mpm-public-gallery__media {
	width: 100%;
	max-width: 100%;
	max-height: 620px;
	object-fit: contain;
	display: block;
}

.mpm-public-gallery__video {
	background: #000000;
	border-radius: 12px;
}

/* =========================================================
   BOTONES DE SUBIDA - TEXTO SIEMPRE VISIBLE
========================================================= */

.mpm-file-button,
.mpm-file-upload-button,
.mpm-upload-button,
.mpm-media-button,
.mpm-image-button,
.mpm-gallery-button {
	background: #132a63 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 10px !important;
	font-weight: 700 !important;
	padding: 12px 18px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	opacity: 1 !important;
}

.mpm-file-button:hover,
.mpm-file-upload-button:hover,
.mpm-upload-button:hover,
.mpm-media-button:hover,
.mpm-image-button:hover,
.mpm-gallery-button:hover {
	background: #0f214d !important;
	color: #ffffff !important;
}

.mpm-file-button *,
.mpm-file-upload-button *,
.mpm-upload-button *,
.mpm-media-button *,
.mpm-image-button *,
.mpm-gallery-button * {
	color: #ffffff !important;
	fill: #ffffff !important;
	opacity: 1 !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
	.mpm-public-gallery {
		grid-template-columns: 1fr;
	}

	.mpm-public-gallery__thumbs {
		order: 2;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.mpm-public-gallery__viewport {
		min-height: 300px;
	}
}

/* ==========================================================
   DETALLES PARA EL ENVÍO
   ========================================================== */

.mpm-shipping-details {
    grid-column: 1 / -1;
    padding: 20px;
    border: 1px solid #dfe6f1;
    border-radius: 14px;
    background: #f5f8fc;
}

.mpm-shipping-details__header {
    margin-bottom: 16px;
}

.mpm-shipping-details__header h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #10244a;
}

.mpm-shipping-details__header p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.mpm-shipping-details__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mpm-shipping-details__grid .mpm-form-field {
    margin: 0;
}

@media (max-width: 800px) {
    .mpm-shipping-details__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .mpm-shipping-details {
        padding: 16px;
    }

    .mpm-shipping-details__grid {
        grid-template-columns: 1fr;
    }
}
