/* Dobare My Account Fields Styling */

.dobare-account-fields {
	margin-top: 2em;
	padding: 1.5em;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #f9f9f9;
}

.dobare-account-fields legend {
	font-size: 1.2em;
	font-weight: 600;
	padding: 0 10px;
	color: #333;
}

/* Make all labels consistent */
.dobare-account-fields label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: 400;
	color: #555;
}

.dobare-readonly-field {
	position: relative;
}

.dobare-readonly-value {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75em 1em;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	width: 100%;
	box-sizing: border-box;
	color: #333;
	gap: 10px;
}

.dobare-points-unavailable {
	color: #999;
	font-style: italic;
}

.dobare-referral-code {
	font-family: monospace;
	font-size: 1.1em;
	font-weight: 600;
	letter-spacing: 1px;
	flex: 1;
}

.dobare-copy-btn {
	padding: 0.5em 1em;
	background-color: #0073aa;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 0.9em;
	transition: background-color 0.3s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.dobare-copy-btn:hover {
	background-color: #005177;
}

.dobare-copy-btn:active {
	background-color: #003d5c;
}

/* Date field wrapper for positioning icon */
.dobare-date-field-wrapper {
	position: relative;
	width: 100%;
}

/* Style date inputs to look active and consistent */
.dobare-account-fields input[type="text"].dobare-date-input,
.dobare-account-fields input[type="date"] {
	direction: rtl;
	text-align: right;
	background-color: #fff;
	color: #333;
	border: 1px solid #ddd;
	padding: 0.75em 1em 0.75em 3em;
	border-radius: 4px;
	width: 100%;
	box-sizing: border-box;
	font-size: 1em;
	cursor: pointer;
}

.dobare-account-fields input[type="text"].dobare-date-input:focus,
.dobare-account-fields input[type="date"]:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 1px #0073aa;
}

/* Calendar icon positioned at left (end for RTL) */
.dobare-calendar-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #666;
	cursor: pointer;
	pointer-events: all;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
	z-index: 10;
}

.dobare-calendar-icon:hover {
	color: #0073aa;
}

.dobare-calendar-icon svg {
	display: block;
}

/* For webkit browsers (Chrome, Safari, Edge) - move calendar icon to right */
.dobare-account-fields input[type="date"]::-webkit-calendar-picker-indicator {
	margin-left: auto;
	margin-right: 0;
	order: -1;
	cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.dobare-account-fields {
		padding: 1em;
	}

	.dobare-readonly-value {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5em;
	}

	.dobare-copy-btn {
		width: 100%;
	}
}

