/**
 * Discreet Profiles — minimal RTL stylesheet.
 *
 * Inherits theme fonts, colours and box-sizing.  Only adds what the
 * plugin-specific elements need.  Mobile-first; usable at 360px.
 */

/* Direction ---------------------------------------------------------------- */
.dp-wrap {
	direction: rtl;
	text-align: right;
}

/* Honeypot ----------------------------------------------------------------- */
.dp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Notices ------------------------------------------------------------------ */
.dp-notice {
	padding: 12px 16px;
	margin-block-end: 18px;
	border-radius: 6px;
	font-size: 0.95rem;
	border-inline-start: 4px solid currentColor;
}

.dp-notice--ok {
	background: rgba(29, 107, 43, 0.15);
	color: #6bcb77;
}

.dp-notice--err {
	background: rgba(139, 26, 26, 0.15);
	color: #f87171;
}

.dp-notice--warn {
	background: rgba(122, 92, 14, 0.15);
	color: #fbbf24;
}

.dp-notice--info {
	background: rgba(26, 74, 122, 0.15);
	color: #7dd3fc;
}

/* Forms -------------------------------------------------------------------- */
.dp-form {
	max-width: 620px;
}

.dp-field {
	margin-block-end: 16px;
}

.dp-field label {
	display: block;
	margin-block-end: 5px;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--color-text, inherit);
}

.dp-field input[type="text"],
.dp-field input[type="email"],
.dp-field input[type="tel"],
.dp-field input[type="url"],
.dp-field input[type="number"],
.dp-field input[type="password"],
.dp-field textarea,
.dp-field select {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--color-border-light, #3a3a3a);
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
	background: var(--color-bg-elevated, #242424);
	color: var(--color-text, #f5f5f5);
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dp-field input::placeholder,
.dp-field textarea::placeholder {
	color: var(--color-text-light, #808080);
}

.dp-field input:focus,
.dp-field textarea:focus,
.dp-field select:focus {
	border-color: var(--color-rose, #C46B8A);
	outline: none;
	box-shadow: 0 0 0 2px rgba(var(--color-rose-rgb, 196, 107, 138), 0.25);
}

/* File input dark theme */
.dp-field input[type="file"] {
	padding: 8px;
	border: 1px dashed var(--color-border-light, #3a3a3a);
	border-radius: 6px;
	background: var(--color-bg-alt, #151515);
	color: var(--color-text-muted, #b0b0b0);
	cursor: pointer;
}

.dp-field input[type="file"]:hover {
	border-color: var(--color-rose, #C46B8A);
}

/* Checkbox dark theme */
.dp-field input[type="checkbox"],
.dp-field--check input[type="checkbox"] {
	accent-color: var(--color-rose, #C46B8A);
}

.dp-field--check label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	cursor: pointer;
}

.dp-field--check input[type="checkbox"] {
	margin-block-start: 3px;
	flex-shrink: 0;
}

.dp-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
}

.dp-checkbox-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
	cursor: pointer;
}

.dp-hint {
	margin: 4px 0 0;
	font-size: 0.82rem;
	color: var(--color-text-light, #808080);
}

.dp-req {
	color: #f87171;
}

/* Turnstile widget --------------------------------------------------------- */
.cf-turnstile {
	margin-block: 14px;
}

/* Buttons ------------------------------------------------------------------ */
.dp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.dp-btn--primary {
	background: #333;
	color: #fff;
}

.dp-btn--primary:hover {
	background: #111;
}

.dp-btn--ghost {
	background: transparent;
	border-color: #999;
	color: inherit;
}

.dp-btn--ghost:hover {
	border-color: #333;
}

.dp-btn--danger {
	background: #a00;
	color: #fff;
	margin-inline-start: 8px;
}

.dp-btn--danger:hover {
	background: #800;
}

/* Form link row ------------------------------------------------------------ */
.dp-form-links {
	margin-block-start: 14px;
	display: flex;
	gap: 16px;
	font-size: 0.92rem;
	flex-wrap: wrap;
}

/* Dashboard ---------------------------------------------------------------- */
.dp-dashboard hr {
	margin-block: 24px;
	border: none;
	border-block-start: 1px solid var(--color-border, #2a2a2a);
}

.dp-profile-summary {
	border: 1px solid var(--color-border, #2a2a2a);
	border-radius: 8px;
	padding: 18px 20px;
	margin-block-end: 20px;
	background: var(--color-bg-card, #1a1a1a);
}

.dp-profile-summary h2 {
	margin-block-start: 0;
	font-size: 1.1rem;
}

/* Price row --------------------------------------------------------------- */
.dp-price-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dp-price-row input[type="number"] {
	width: 110px;
	padding: 10px 14px;
	border: 1px solid var(--color-border-light, #3a3a3a);
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
	background: var(--color-bg-elevated, #242424);
	color: var(--color-text, #f5f5f5);
	box-sizing: border-box;
}

.dp-price-row select {
	padding: 10px 14px;
	border: 1px solid var(--color-border-light, #3a3a3a);
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
	background: var(--color-bg-elevated, #242424);
	color: var(--color-text, #f5f5f5);
}

.dp-price-sep {
	font-size: 1.1rem;
	color: var(--color-text-light, #808080);
}

/* Checkbox columns for long lists ----------------------------------------- */
.dp-checkboxes--cols {
	column-count: 2;
	column-gap: 20px;
}

@media (min-width: 480px) {
	.dp-checkboxes--cols {
		column-count: 3;
	}
}

.dp-checkboxes--cols .dp-checkbox-label {
	break-inside: avoid;
}

/* Submit button — inherits theme accent when available -------------------- */
.dp-btn--submit {
	background: var(--color-rose, #333);
	border-color: var(--color-rose, #333);
	min-width: 180px;
	font-size: 1.05rem;
	padding: 12px 24px;
	margin-block-start: 8px;
}

.dp-btn--submit:hover {
	background: var(--color-accent, #111);
	border-color: var(--color-accent, #111);
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 480px) {
	.dp-form {
		max-width: 100%;
	}

	.dp-btn {
		width: 100%;
		justify-content: center;
	}

	.dp-btn--danger {
		margin-inline-start: 0;
		margin-block-start: 8px;
	}
}
