:root {
	--ds-app-white: #fff;
	--ds-app-light-gray: #f5f5f5;
	--ds-app-bubble1: #db0000;
	--ds-app-bubble2: #169f00;
	--ds-app-bubble3: #fbc300;
}

.loading-spinner {
	align-items: center;
	color: #333;
	display: flex;
	font-size: 16px;
	justify-content: center;
	min-height: 200px;
}

.loading-spinner::after {
	animation: spin 1s linear infinite;
	border: 4px solid #ccc;
	border-radius: 50%;
	border-top-color: #333;
	content: '';
	height: 32px;
	margin-left: 10px;
	width: 32px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

#apelos-budget-bubble-container {
	bottom: 12px;
	position: fixed;
	right: 12px;
	z-index: 2147483647;
}

.apelos-budget-bubble {
	background: #f1f1f1;
	border-radius: 999px;
	bottom: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	color: #222;
	font-size: 1.4rem;
	line-height: 1.2;
	padding: 8px 12px;
	position: fixed;
	right: 12px;
	z-index: 9999;
}

.apelos-budget-bubble .label {
	margin-right: 6px;
	opacity: 0.7;
}

.apelos-budget-bubble.over {
	background: #dc3545;
}

.apelos-budget-bubble .value {
	font-weight: 700;
}

/* Budget Override Field Styling */
#budget_override_field {
	animation: slideIn 0.3s ease-out;
}

#budget_override_field textarea {
	border: 2px solid #fdcb6e !important;
}

#budget_override_field textarea:focus {
	border-color: #e17055 !important;
	box-shadow: 0 0 0 2px rgba(225, 112, 85, 0.2) !important;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#app-preview-modal .modal-content {
	margin: 0 auto;
	max-width: 90% !important;
	width: 800px !important;
}

#preview-container img {
	max-height: 450px !important;
}

#preview-container button.button {
	display: inline-block;
    width: fit-content;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    padding: 12px 20px;
}
#preview-container button.button:hover {
	background-color: #c60053;
	color: #fff;
}

.order-status {
	border-radius: 4px;
	display: inline-block;
	font-size: 11px;
	padding: 2px 6px;
}

.order-status.status-awaiting-approval {
	background: #f0ad4e;
	color: #222;
}
.order-status.status-processing {
	background: #5cb85c;
	color: var(--ds-app-white);
}
.order-status.status-rejected {
	background: #d9534f;
	color: var(--ds-app-white);
}

.action-buttons {
	align-items: center;
	display: flex;
	min-height: 75px;
}

.action-buttons button {
	min-width: 0 !important;
}

/* Checkout Button aus dem Cart-Hover entfernen */
.wc-block-mini-cart__footer-checkout,
.woocommerce-mini-cart__buttons.buttons {
	display: none !important;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table {
	border: none;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table thead {
	background-color: var(--ds-color-pri);
	border-radius: 5px 5px 0 0;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table thead th {
	border: none;
	color: var(--ds-color-white);
	font-size: 1.4rem;
	padding: 20px 10px;
	text-transform: initial;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table thead th[data-sort='date']:hover,
.woocommerce .woocommerce-MyAccount-content table.shop_table thead th[data-sort='category']:hover {
	background-color: var(--ds-color-d1);
}

.woocommerce .woocommerce-MyAccount-content table.shop_table thead th[data-sort='date'] svg,
.woocommerce .woocommerce-MyAccount-content table.shop_table thead th[data-sort='category'] svg {
	position: relative;
	top: 5px;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table thead th[data-sort='date'] {
	white-space: nowrap;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table thead th[data-sort='category'] {
	text-align: center;
	white-space: nowrap;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table td.item-order-info,
.woocommerce .woocommerce-MyAccount-content table.shop_table thead th:first-of-type {
	border-radius: 5px 0 0 0;
	min-width: 235px;
	padding-left: 18px;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table thead th:last-of-type {
	border-radius: 0 5px 0 0;
}

.woocommerce .woocommerce-MyAccount-content .action-buttons button.button,
.woocommerce .woocommerce-MyAccount-content .action-buttons a.button {
	background-color: transparent;
	border: none;
	padding: 0 10px;
	height: 50px;
	border-radius: 5px;
    display: flex;
    align-items: center;
}

.woocommerce .woocommerce-MyAccount-content .action-buttons button svg,
.woocommerce .woocommerce-MyAccount-content .action-buttons a.button svg {
	transition: all 0.3s ease-in-out;
	pointer-events: none;
}

.woocommerce .woocommerce-MyAccount-content .action-buttons button:hover svg,
.woocommerce .woocommerce-MyAccount-content .action-buttons a.button:hover svg {
	transform: scale(1.2);
	transition: all 0.3s ease-in-out;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(even) {
	background-color: var(--ds-app-light-gray);
}

.woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(even) .action-buttons button:hover,
.woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(even) .action-buttons a.button:hover {
	background-color: var(--ds-app-white);
}

/* lub co drugi wiersz nieparzysty */
.woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(odd) {
	background-color: transparent;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(odd) .action-buttons button:hover,
.woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(odd) .action-buttons a.button:hover {
	background-color: var(--ds-app-light-gray);
}

.woocommerce .woocommerce-MyAccount-content table.shop_table td strong {
	font-size: 1.4rem;
	font-weight: 400;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table td small {
	color: #2c2c2c;
	font-size: 1.4rem;
	font-weight: 400;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table td, .woocommerce .woocommerce-MyAccount-content table.shop_table th {
	border: none;
	color: #2c2c2c;
	font-size: 1.4rem;
	padding: 10px;
}

.woocommerce table.shop_table td .amount {
	color: #2c2c2c;
	font-size: 1.4rem;
}

.action-buttons {
	gap: 0;
	justify-content: space-between;
}

.sortable-header {
	position: relative;
}

.sort-indicator {
	font-size: 18px;
	margin-left: 5px;
}

.pagination-wrapper {
	align-items: center;
	display: flex;
	gap: 5px;
	justify-content: center;
	margin: 20px 0;
}

.pagination-wrapper .button {
	background-color: var(--ds-app-light-gray);
	border: 1px solid var(--ds-app-light-gray);
	color: #000;
	min-width: 40px;
	text-align: center;
	text-decoration: none;
}

.pagination-wrapper .button:hover {
	color: var(--ds-app-white);
}

.pagination-wrapper .button-primary {
	background: var(--ds-color-pri);
	border-color: var(--ds-color-pri);
	color: var(--ds-app-white);
}

.pagination-info {
	color: #666;
	font-size: 14px;
	padding-bottom: 10px;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table .item-categories {
	color: transparent;
	height: 0;
	line-height: 0;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table .item-categories::before {
	aspect-ratio: 1 / 1;
	border-radius: 100%;
	content: '';
	display: block;
	display: none;
	margin: 0 auto;
	width: 30px;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table .item-categories.item-cat-Marketing:before {
	background-color: var(--ds-app-bubble1);
	display: block;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table .item-categories.item-cat-Recruiting:before {
	background-color: var(--ds-app-bubble2);
	display: block;
}

.woocommerce .woocommerce-MyAccount-content table.shop_table .item-categories.item-cat-Kleines:before {
	background-color: var(--ds-app-bubble3);
	display: block;
}

.show_table_wrapper {
	overflow: auto;
}

@media (min-width: 1440px) {
	.woocommerce .woocommerce-MyAccount-content table.shop_table thead th {
		font-size: 1.8rem;
	}
}

@media (max-width: 1599px) {
	.woocommerce .woocommerce-MyAccount-content form p {
		margin-bottom: 20px !important;
	}
}

/* Reorder Funktionalität */
.reorder-item-wrapper {
    padding-block: 10px;
	display: flex;
}

.reorder-item-btn {
    min-width: 0 !important;
}

.reorder-status {
    font-size: 16px;
    font-weight: bold;
	display: flex;
    align-items: center;
}

.reorder-status.success {
    color: #46b450;
}

.reorder-status.error {
    color: #dc3232;
}
