/* Extracted from custom-frontend.css — only rules used by [user_requests_dashboard] */

/* Headings and meta (from custom-frontend.css) */
.horse-info {
	flex: 1 1 auto !important;
	width: auto !important;
	padding: 20px 25px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.horse-info h3 {
	margin: 5px 25px 25px 25px;
	font-size: 22px;
	color: #333;
}

.horse-meta {
	display: grid;
	line-height: 1.2em;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px 20px;
	list-style: none;
	padding: 0;
	margin: 20px 0 20px 0;
}

.horse-meta li::before {
	content: none !important;
	display: none !important;
}

.horse-meta li {
	font-size: 15px;
	color: #555;
}

/* Scoped card tweak */
.user-horse-dashboard-wrap .horse-card {
	border-radius: 10px 10px 0 0;
	margin-bottom: 0;
}

/* Controls section (from custom-frontend.css) */
.user-horse-dashboard-wrap .horse-controls-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 15px 25px;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 10px 10px;
	background: #f9f9f9;
	font-size: 14px;
	margin-top: 0;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.user-horse-dashboard-wrap .status-toggle-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
	flex-grow: 1;
}

.user-horse-dashboard-wrap .horse-action-buttons {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.user-horse-dashboard-wrap .horse-controls-row a.delete-button {
	font-size: 12px;
	font-weight: 500;
	color: #a00;
	text-decoration: none;
	padding: 1px 8px;
	border: 1px solid #a00;
	border-radius: 3px;
	transition: background-color 0.2s;
}

.user-horse-dashboard-wrap .horse-controls-row a.delete-button:hover {
	background-color: #a00;
	color: #fff;
}

/* Status lines and labels */
.user-horse-dashboard-wrap .status-line {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.user-horse-dashboard-wrap .status-label {
	font-weight: 500;
}

/* Status color classes */
.user-horse-dashboard-wrap .status-label.status-unpublished { color: #c00; }
.user-horse-dashboard-wrap .status-label.status-published { color: #2b9e44; }
.user-horse-dashboard-wrap .status-label.status-under-review { color: #0073aa; }
.user-horse-dashboard-wrap .status-label.status-rejected { color: #cc7a00; }
.user-horse-dashboard-wrap .status-label.status-sold { color: #0073aa; }

/* Mini status action buttons */
.user-horse-dashboard-wrap .status-action {
	font-size: 12px;
	color: #0073aa;
	text-decoration: none;
	border: 1px solid #0073aa;
	padding: 6px 10px;
	border-radius: 3px;
	background-color: #f2f9ff;
	display: inline-block;
	line-height: 1.2em;
	font-weight: 500;
	transition: background-color 0.2s, color 0.2s;
}

.user-horse-dashboard-wrap .status-action:hover {
	background-color: #0073aa;
	color: #fff;
}

/* Footer alignment */
.user-horse-dashboard-wrap .horse-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding-right: 25px;
	margin-top: auto;
}

/* Default spacing inside shortcode container */
.user-horse-dashboard-wrap .horse-archive-grid { gap: 0px; }

/* === Matches & Updated Row (from custom-frontend.css) === */
.horse-footer .matches-updated-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	font-size: 15px;
	color: #333;
	padding: 8px 20px;
	flex-wrap: nowrap;
	justify-content: flex-start;
	overflow-x: auto;
}

.matches-item,
.updated-item { white-space: nowrap; }

.horse-footer .matches-item a {
	text-decoration: underline;
	margin-left: 5px;
}

.horse-footer .updated-item {
	font-size: 14px;
	color: #666;
}

.matches-updated-row {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 15px;
	color: #333;
	padding: 10px 20px;
}

.matches-item,
.updated-item { display: inline-flex; align-items: center; gap: 6px; }
.matches-item a { text-decoration: underline; }

.my-request-block .horse-footer {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	padding-right: 0;
	margin-top: 0;
}

.my-request-block .matches-item strong {
	font-weight: 600;
	color: #ed7313;
	font-size: 17px;
	text-transform: none;
}

.my-request-block .matches-item a {
	font-weight: 600;
	color: #ed7313;
	font-size: 17px;
}

.my-request-block .updated-item strong {
	font-weight: 500;
	color: #888;
	font-size: 11px;
	text-transform: none;
}

.my-request-block .updated-item {
	color: #555;
	font-size: 11px;
	font-style: italic;
}

/* Notification and contact lines inside the card */
.horse-dashboard-block li.notify-method { font-size: 12px; font-weight: 500; margin-top: 15px; margin-left: 8px; }
.horse-dashboard-block li.contact-email { font-size: 12px; font-weight: 500; margin-top: 15px; margin-left: 8px; }
.horse-dashboard-block li.contact-phone { font-size: 12px; font-weight: 500; margin-top: 15px; margin-left: 8px; }

/* Height fix only (no layout changes) */
.user-horse-dashboard-wrap .horse-dashboard-block,
.user-horse-dashboard-wrap .horse-card,
.user-horse-dashboard-wrap .horse-info {
  min-height: unset !important;
  height: auto !important;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .user-horse-dashboard-wrap .horse-controls-row {
	flex-direction: column;
	gap: 10px;
	padding: 12px 15px;
	margin-bottom: 20px;
  }
  .user-horse-dashboard-wrap .status-toggle-row { gap: 15px; }
  .user-horse-dashboard-wrap .horse-action-buttons {
	gap: 8px;
	justify-content: flex-end;
	width: 100%;
  }
  .user-horse-dashboard-wrap .status-line { gap: 3px !important; }
}

@media (max-width: 768px) {
  .horse-dashboard-block li.notify-method { font-size: 12px !important; margin-top: 15px !important; margin-left: 0 !important; }
  .horse-dashboard-block li.contact-email,
  .horse-dashboard-block li.contact-phone { font-size: 12px !important; margin-top: 0px !important; margin-left: 0 !important; }
}

@media (max-width: 768px) {
  .user-horse-dashboard-wrap.horse-archive-grid { gap: 30px; }
  .user-horse-dashboard-wrap .horse-dashboard-block { display: flex; flex-direction: column; gap: 0; }
}

@media (max-width: 600px) {
  .matches-updated-row {
	display: block;
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
	white-space: normal;
  }
  .matches-updated-row .matches-item {
	display: block;
	background: #ddfbce;
	border: 1px solid #ffeeba;
	padding: 6px 10px;
	border-radius: 4px;
	margin-bottom: 6px;
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
	white-space: normal;
  }
  .matches-updated-row .updated-item {
	display: block;
	font-size: 0.9em;
	line-height: 0.9em;
	color: #555;
	max-width: 100%;
	overflow-wrap: break-word;
	white-space: normal;
  }
  .matches-updated-row .matches-item a { display: inline; white-space: normal; }
}

/* Ensure no list bullets inside the dashboard meta list */
.user-horse-dashboard-wrap .horse-meta,
.user-horse-dashboard-wrap .horse-meta li { list-style: none !important; }
.user-horse-dashboard-wrap .horse-meta { padding-left: 0 !important; }
.user-horse-dashboard-wrap .horse-meta li::before,
.user-horse-dashboard-wrap .horse-meta li::marker { content: none !important; }

