/* Hide product elements until loaded - EXCLUDE button container */
.product-short-description,
.schilcher-data-sheets--product-short-attributes,
.schilcher-data-sheets--product-short-description,
.shop_attributes {
	opacity:0;
}

/* Ensure print buttons are always visible regardless of loaded state */
.woocommerce-print-products {
	opacity: 1 !important;
}
.schilcher-data-sheets--product-labels,
.schilcher-data-sheets--product-short-description,
.schilcher-data-sheets--product-short-attributes {
    display:none;
}
.schilcher-data-sheets--product-short-label img {
    max-width:70px;
    margin-right:10px;
    border-radius:4px;
}
.product-short-description.loaded,
.shop_attributes.loaded {
	opacity:1;
}
/* Print Button Styles - Datenblatt & Etikett */
.woocommerce-print-products a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	font-family: "Open Sans", sans-serif;
	font-size: 1.125rem; /* BODY size from brand guide */
	font-weight: 600; /* Semibold */
	color: #49391b; /* Primary text brown */
	background-color: #fef8e7; /* Primary teal */
	border: 1px solid #bda77f; /* Light brown border */
	border-radius: 0.375rem; /* Modern rounded corners */
	text-decoration: none;
	transition: all 0.2s ease;
	margin-right: 0.75rem;
	margin-bottom: 0.5rem;
	box-shadow: 0 1px 3px rgba(73, 57, 27, 0.1);
}

.woocommerce-print-products a:last-child {
	margin-right: 0;
}

.woocommerce-print-products a:hover {
	background-color: #f5f0e6; /* Cream on hover */
	border-color: #876c4b; /* Warm brown border */
	box-shadow: 0 2px 6px rgba(73, 57, 27, 0.15);
	transform: translateY(-1px);
}

.woocommerce-print-products a:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(73, 57, 27, 0.1);
}

.woocommerce-print-products a i {
	font-size: 1rem;
	opacity: 0.8;
}

.woocommerce-print-products a span {
	line-height: 1;
}
/* Modal background overlay - hidden by default */
#schilcher-data-sheets--setup-bg {
	display: none !important;
	position: fixed;
	z-index: var(--schilcher-z-modal-backdrop, 1040);
    top: 0;
    left: 0;
    right: 0;
	bottom: 0;
    background: rgba(73, 57, 27, 0.5); /* Primary brown with transparency */
}

/* Modal popup container - hidden by default */
#schilcher-data-sheets--setup {
	display: none !important;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 500px;
    max-width: 90%;
    height: auto;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 30px;
    z-index: 1050;
	color: #49391b;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(73, 57, 27, 0.2);
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* Modal title (if needed in future) */
#schilcher-data-sheets--setup h3 {
    font-size: 20px;
    font-weight: 600;
    color: #49391b;
    margin: 0 0 20px 0;
}

/* Form fields container */
#schilcher-data-sheets--setup .form-field {
    margin-bottom: 20px;
}

#schilcher-data-sheets--setup .form-field:last-of-type {
    margin-bottom: 0;
}

/* Form labels */
#schilcher-data-sheets--setup label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #49391b;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Submit button */
#schilcher-data-sheets--setup button {
	background: #fef8e7;
    color: #49391b;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Open Sans', Arial, sans-serif;
    padding: 12px 20px;
    width: 100%;
    height: auto;
    min-height: 44px;
    margin-top: 24px;
    border: 1px solid #bda77f;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(73, 57, 27, 0.08);
}

#schilcher-data-sheets--setup button:hover {
    background: #f5f0e6;
    border-color: #876c4b;
    box-shadow: 0 4px 8px rgba(73, 57, 27, 0.12);
    transform: translateY(-1px);
}

#schilcher-data-sheets--setup button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(73, 57, 27, 0.1);
}

/* Input fields and select dropdowns */
#schilcher-data-sheets--setup input,
#schilcher-data-sheets--setup select {
    width: 100%;
    height: auto;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 400;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #49391b;
    background: #ffffff;
    border: 1px solid #bda77f;
    border-radius: 6px;
    transition: all 0.15s ease;
    box-sizing: border-box;
    line-height: 1.4;
}

#schilcher-data-sheets--setup input:focus,
#schilcher-data-sheets--setup select:focus {
    outline: none;
    border-color: #876c4b;
    box-shadow: 0 0 0 3px rgba(135, 108, 75, 0.1);
}

/* Ensure select dropdowns show text properly */
#schilcher-data-sheets--setup select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2349391b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}
/* Show modal and background when visible class is added */
#schilcher-data-sheets--setup-bg.visible,
#schilcher-data-sheets--setup.visible {
	display: block !important;
}
.format-90.hide {
	display:none;
}
#schilcher_data_sheets_generate_hidden {
	display:none;
}