/**
 * Flor De Castillo Portal Styles
 */

.fdc-portal-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.fdc-ai-reorder-reminder-notice {
	background: #fff8e6;
	border: 1px solid #e6c200;
	border-radius: 4px;
	padding: 16px 20px;
	margin: 16px 0 0;
	position: relative;
}

.fdc-ai-reorder-reminder-notice__dismiss {
	position: absolute;
	top: 8px;
	right: 8px;
	margin: 0;
}

.fdc-ai-reorder-reminder-notice__close {
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: #666;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.fdc-ai-reorder-reminder-notice__close:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #222;
}

.fdc-ai-reorder-reminder-notice p {
	margin: 0.5em 0;
}

.fdc-portal-dashboard {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.fdc-portal-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.fdc-portal-card h3 {
	margin-top: 0;
}

.fdc-portal-pending-list {
	margin: 12px 0 0;
	padding-left: 1.25em;
	list-style: disc;
}

.fdc-portal-pending-list li {
	margin: 6px 0;
}

.fdc-portal-card-stat a {
	text-decoration: none;
}

.fdc-portal-card-stat a:hover strong {
	text-decoration: underline;
}

.fdc-portal-recent-orders {
	margin: 12px 0 0;
	padding-left: 1.25em;
	list-style: disc;
}

.fdc-portal-recent-orders li {
	margin: 6px 0;
}

.fdc-portal-recent-orders .fdc-portal-order-meta {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-top: 2px;
}

.fdc-regional-reports-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	margin: 16px 0 24px;
	padding: 16px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.fdc-regional-reports-filters label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 600;
}

.fdc-regional-reports-summary {
	margin-bottom: 24px;
}

.fdc-regional-stat {
	font-size: 28px;
	font-weight: 600;
	margin: 8px 0 0;
	line-height: 1.2;
}

.fdc-regional-table {
	margin-bottom: 28px;
	max-width: 100%;
}

.fdc-regional-reports-wrap h2 {
	margin-top: 28px;
}

.fdc-freight-charge {
	padding: 10px;
	background: #f5f5f5;
	border-left: 3px solid #0073aa;
	margin: 10px 0;
}

.fdc-document-upload {
	border: 2px dashed #ccc;
	border-radius: 4px;
	padding: 20px;
	text-align: center;
	margin: 20px 0;
}

.fdc-document-upload.dragover {
	border-color: #0073aa;
	background: #f0f8ff;
}

.fdc-private-assets {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.fdc-asset-item {
	text-align: center;
}

.fdc-asset-item img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.fdc-order-history table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.fdc-order-history th,
.fdc-order-history td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.fdc-order-history th {
	background: #f5f5f5;
	font-weight: 600;
}

.fdc-portal-muted {
	color: #646970;
	font-size: 0.95em;
}

.fdc-portal-resource-library__title {
	font-size: 1.75rem;
	line-height: 1.25;
	margin: 0 0 0.75rem;
}

.fdc-portal-section-title {
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 2rem 0 1rem;
}

.fdc-document-upload-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 2rem;
	align-items: start;
	margin-top: 1.5rem;
}

.fdc-document-upload-layout__form,
.fdc-document-upload-layout__list {
	min-width: 0;
}

.fdc-document-upload-layout .fdc-portal-section-title {
	margin-top: 0;
}

.fdc-portal-document-upload .fdc-document-upload {
	margin-top: 0;
}

.fdc-portal-document-upload .fdc-document-upload-layout__form input[type="text"],
.fdc-portal-document-upload .fdc-document-upload-layout__form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.fdc-document-uploads-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.fdc-document-uploads-table {
	margin-top: 0;
	font-size: 0.9rem;
}

@media (max-width: 782px) {
	.fdc-document-upload-layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

.fdc-doc-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 0.85em;
	font-weight: 600;
}

.fdc-resource-library-table .fdc-doc-status--pending {
	background: #5a4a00;
	color: #ffe082;
}

.fdc-resource-library-table .fdc-doc-status--approved {
	background: #1b4332;
	color: #b7e4c7;
}

.fdc-resource-library-table .fdc-doc-status--expired {
	background: #4a1515;
	color: #f8b4b4;
}

.fdc-resource-library-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
	background: #000;
	color: #fff;
}

.fdc-resource-library-table thead th,
.fdc-resource-library-table tbody td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #333;
	background-color: #000 !important;
	color: #fff !important;
}

.fdc-resource-library-table thead th {
	background-color: #111;
	font-weight: 600;
}

.fdc-resource-library-table tbody tr {
	background-color: #000;
}

.fdc-resource-library-table tbody tr:hover td {
	background-color: #1a1a1a;
}

.fdc-resource-library-table tbody td strong {
	color: #fff;
}

.fdc-resource-library-table a {
	color: #7ec8e3;
}

.fdc-resource-library-table a:hover {
	color: #fff;
}

.fdc-portal-resource-library .fdc-resource-library-table .fdc-portal-muted {
	color: #b0b0b0;
}

/* fdc_products shortcode: grid subtitle + grid/table toggle */
.fdc-products-shortcode .fdc-products-grid-subtitle {
	font-size: 0.9em;
	line-height: 1.3;
	color: #666;
	padding-bottom: 10px;
}

/* [fdc_shop_filters] — blends with page; gold Apply with rounded corners */
.fdc-shop-filters {
	margin: 0 0 1.5rem;
	padding: 0.25rem 0;
	color: inherit;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.fdc-shop-filters__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1.25rem 1.5rem;
}

.fdc-shop-filters__group {
	margin: 0;
	padding: 0;
	border: none;
	min-width: 0;
}

.fdc-shop-filters__legend {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: inherit;
	opacity: 0.65;
	margin: 0 0 0.55rem;
	padding: 0;
}

/* Ring / length row titles sit closer to the min–max fields than packaging blocks. */
.fdc-shop-filters__group--range > .fdc-shop-filters__legend {
	margin-bottom: 0.2rem;
}

.fdc-shop-filters__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: inherit;
	opacity: 0.65;
	margin: 0 0 0.55rem;
}

.fdc-shop-filters__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.1rem;
}

.fdc-shop-filters__check {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	cursor: pointer;
	font-size: 0.95rem;
	margin: 0;
	color: inherit;
}

.fdc-shop-filters__check input[type="checkbox"] {
	width: 1.05rem;
	height: 1.05rem;
	margin: 0;
	accent-color: #f2c752;
	flex-shrink: 0;
}

/* One row height for selects + number fields (themes often inflate number inputs). */
.fdc-shop-filters__group--select select,
.fdc-shop-filters__group--range input[type="number"] {
	box-sizing: border-box;
	height: 2.5rem;
	min-height: 2.5rem !important;
	max-height: 2.5rem;
	padding: 0 0.65em;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.2;
	color: inherit;
	border-radius: 8px;
	border: 1px solid rgba(127, 127, 127, 0.4);
	background: transparent;
	box-shadow: none;
	vertical-align: middle;
}

.fdc-shop-filters__group--select select {
	min-width: 12rem;
	max-width: 100%;
}

.fdc-shop-filters__group--range input[type="number"] {
	width: 100%;
	min-width: 5rem;
	max-width: 7rem;
	padding-right: 0.5em;
	-moz-appearance: textfield;
}

.fdc-shop-filters__group--range input[type="number"]::-webkit-outer-spin-button,
.fdc-shop-filters__group--range input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.fdc-shop-filters__group--select select:focus,
.fdc-shop-filters__group--range input[type="number"]:focus {
	outline: none;
	border-color: #f2c752;
	box-shadow: 0 0 0 1px rgba(242, 199, 82, 0.35);
}

.fdc-shop-filters__group--range .fdc-shop-filters__range {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: flex-end;
}

.fdc-shop-filters__range-field {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	min-width: 5.5rem;
}

.fdc-shop-filters__range-hint {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: inherit;
	opacity: 0.55;
}

.fdc-shop-filters__group--range input[type="number"]::placeholder {
	color: inherit;
	opacity: 0.35;
}

.fdc-shop-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.1rem;
	margin-left: auto;
}

form.fdc-shop-filters button.button.fdc-shop-filters__submit,
form.fdc-shop-filters .fdc-shop-filters__submit.button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0;
	padding: 0 1.35em !important;
	min-height: 2.5rem;
	height: 2.5rem;
	max-height: 2.5rem;
	box-sizing: border-box;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1 !important;
	color: #111 !important;
	background: #f2c752 !important;
	border: 1px solid #e8bd48 !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	transition: filter 0.15s ease, transform 0.12s ease;
}

form.fdc-shop-filters button.button.fdc-shop-filters__submit:hover,
form.fdc-shop-filters .fdc-shop-filters__submit.button:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
	color: #111 !important;
	border-radius: 10px !important;
}

form.fdc-shop-filters button.button.fdc-shop-filters__submit:focus,
form.fdc-shop-filters .fdc-shop-filters__submit.button:focus {
	outline: 2px solid rgba(242, 199, 82, 0.6);
	outline-offset: 2px;
	border-radius: 10px !important;
}

.fdc-shop-filters__clear {
	font-size: 0.9rem;
	font-weight: 500;
	color: inherit;
	opacity: 0.85;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(127, 127, 127, 0.5);
}

.fdc-shop-filters__clear:hover {
	opacity: 1;
	text-decoration-color: currentColor;
}

.fdc-products-layout-toolbar {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 1.25rem;
	padding: 4px;
	background: rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fdc-products-layout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0 12px;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	color: rgba(0, 0, 0, 0.55);
	background: #fff;
	border: none;
	border-radius: 8px;
	transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fdc-products-layout-btn:hover {
	color: rgba(0, 0, 0, 0.85);
	background: rgba(255, 255, 255, 0.65);
}

.fdc-products-layout-btn--active {
	color: rgba(0, 0, 0, 0.92);
	background: #f2c752;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fdc-products-layout-btn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.fdc-products-layout-btn__icon svg {
	display: block;
}

.fdc-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.fdc-products__panel {
	display: none;
}

.fdc-products__panel--active {
	display: block;
}

.fdc-products-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 0 1rem;
	background-color: #000;
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px #333;
}

/* Table bg + borders — WC / theme often set light borders on table, th, td */
.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table {
	border: none;
	border-collapse: collapse;
}

.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table thead,
.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table tbody,
.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table tr {
	background-color: #000;
}

/* No shop_table_responsive here — WC’s block layout for small screens often leaves a stray strip.
   Hide empty / invalid tbody rows if any theme or filter injects them. */
.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table tbody tr:empty {
	display: none !important;
}

.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table tbody tr:not(:has(> td)) {
	display: none !important;
}

.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table th,
.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table td {
	padding: 10px 12px;
	text-align: left;
	vertical-align: middle;
	background-color: #000;
	color: rgba(255, 255, 255, 0.92);
	border: 1px solid #333 !important;
	border-style: solid !important;
}

.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table th {
	background-color: #141414;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	border-color: #3a3a3a !important;
}

.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table a {
	color: #f2c752;
}

.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table .amount,
.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table .woocommerce-Price-amount {
	color: inherit;
}

.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table .button {
	background-color: #f2c752;
	color: #1a1a1a;
	border-color: #f2c752;
}

.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table .button:hover {
	filter: brightness(1.05);
}

.fdc-products-spec-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 0.95em;
}

.fdc-products-spec-table .fdc-col-thumb {
	width: 72px;
}

.fdc-products-spec-table .fdc-col-thumb img {
	max-width: 64px;
	height: auto;
	display: block;
}

.fdc-products-spec-table .fdc-col-cart .button {
	white-space: nowrap;
}

.fdc-products-shortcode.woocommerce .fdc-products-spec-table.shop_table .fdc-products-na {
	color: rgba(255, 255, 255, 0.45);
}
