/* Proximedia Desistimiento — Frontend Styles */

.pmd-form-wrap {
	max-width: 640px;
	margin: 0 auto;
	padding: 0;
}

/* ─── Fields ─────────────────────────────────────────────────────────────── */

.pmd-field {
	margin-bottom: 20px;
}

.pmd-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.pmd-field input[type="text"],
.pmd-field input[type="email"],
.pmd-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 15px;
	line-height: 1.4;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.pmd-field input[type="text"]:focus,
.pmd-field input[type="email"]:focus,
.pmd-field textarea:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.pmd-field textarea {
	resize: vertical;
	min-height: 100px;
}

.pmd-field--checkbox label {
	font-weight: normal;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.pmd-field--checkbox input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.pmd-required {
	color: #c00;
}

.pmd-required-note {
	margin-top: 12px;
	font-size: 13px;
	color: #666;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.pmd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.pmd-btn {
	display: inline-block;
	padding: 11px 24px;
	border: none;
	border-radius: 3px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.15s ease;
	line-height: 1.4;
}

.pmd-btn-primary {
	background-color: #2271b1;
	color: #fff;
}

.pmd-btn-primary:hover,
.pmd-btn-primary:focus {
	background-color: #135e96;
	color: #fff;
}

.pmd-btn-secondary {
	background-color: #f0f0f1;
	color: #3c3c3c;
}

.pmd-btn-secondary:hover,
.pmd-btn-secondary:focus {
	background-color: #dcdcde;
	color: #1d2327;
}

.pmd-btn-danger {
	background-color: #c0392b;
	color: #fff;
}

.pmd-btn-danger:hover,
.pmd-btn-danger:focus {
	background-color: #922b21;
	color: #fff;
}

/* ─── Preview step (confirmation table) ──────────────────────────────────── */

.pmd-preview-step h2 {
	margin-top: 0;
}

.pmd-summary {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 15px;
}

.pmd-summary th,
.pmd-summary td {
	padding: 10px 14px;
	border: 1px solid #ddd;
	text-align: left;
	vertical-align: top;
}

.pmd-summary th {
	background: #f8f8f8;
	font-weight: 600;
	width: 38%;
	color: #333;
}

/* ─── Success state ───────────────────────────────────────────────────────── */

.pmd-success {
	text-align: center;
	padding: 32px 16px;
}

.pmd-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: #46b450;
	color: #fff;
	border-radius: 50%;
	font-size: 36px;
	line-height: 1;
	margin-bottom: 20px;
}

.pmd-timestamp {
	display: inline-block;
	background: #f8f8f8;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
	padding: 8px 16px;
	font-size: 14px;
	margin-bottom: 16px;
}

/* ─── Expired state ───────────────────────────────────────────────────────── */

.pmd-expired {
	background: #fce4e4;
	border-left: 4px solid #c0392b;
	padding: 20px 24px;
	border-radius: 2px;
}

.pmd-expired h2 {
	margin-top: 0;
	color: #c0392b;
}

/* ─── Error notice ────────────────────────────────────────────────────────── */

.pmd-error-notice {
	background: #fce4e4;
	border: 1px solid #c0392b;
	border-radius: 3px;
	padding: 10px 16px;
	margin-bottom: 16px;
	color: #c0392b;
	font-size: 14px;
}

.pmd-error-notice p {
	margin: 0;
}

/* ─── Disabled state ─────────────────────────────────────────────────────── */

.pmd-disabled {
	color: #888;
	font-style: italic;
}

/* ─── WooCommerce: order detail button ───────────────────────────────────── */

.pmd-order-withdrawal {
	margin-top: 24px;
	padding: 16px 20px;
	background: #fffbf0;
	border-left: 4px solid #e0a000;
	border-radius: 2px;
}

.pmd-withdrawal-notice {
	margin: 0 0 12px;
	color: #555;
	font-size: 14px;
}

/* ─── WooCommerce: orders list — withdrawal button ──────────────────────── */

a.pmd-withdrawal {
	margin-left: 6px;
	background-color: #c0392b !important;
	color: #fff !important;
	border-color: #c0392b !important;
}

a.pmd-withdrawal:hover,
a.pmd-withdrawal:focus {
	background-color: #922b21 !important;
	color: #fff !important;
	border-color: #922b21 !important;
}

/* ─── WooCommerce: order detail — withdrawal button ─────────────────────── */

.pmd-btn-withdrawal {
	display: inline-block;
	margin-top: 4px;
	background-color: #c0392b !important;
	color: #fff !important;
	border-color: #c0392b !important;
	font-size: 14px;
}

.pmd-btn-withdrawal:hover,
.pmd-btn-withdrawal:focus {
	background-color: #922b21 !important;
	color: #fff !important;
	border-color: #922b21 !important;
}

/* ─── Shortcode legal notice ─────────────────────────────────────────────── */

.pmd-aviso-legal {
	padding: 14px 18px;
	background: #f8f8f8;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
	font-size: 14px;
	line-height: 1.6;
}

.pmd-aviso-legal p {
	margin: 0;
}
