/**
 * Woodmart theme integration.
 * Uses CSS variables from Theme Settings (colors, forms, buttons, typography).
 */

.euw-withdrawal.euw-woodmart {
	font-family: var(--wd-text-font, inherit);
	color: var(--wd-text-color, inherit);
}

.euw-withdrawal.euw-woodmart h2 {
	font-family: var(--wd-title-font, inherit);
	color: var(--wd-title-color, inherit);
	font-weight: var(--wd-title-font-weight, 600);
}

.euw-withdrawal.euw-woodmart label {
	font-family: var(--wd-text-font, inherit);
	color: var(--wd-entities-title-color, var(--wd-title-color, inherit));
	font-weight: 600;
}

.euw-withdrawal.euw-woodmart input[type="text"],
.euw-withdrawal.euw-woodmart input[type="email"] {
	width: 100%;
	max-width: 100%;
	height: var(--wd-form-height, 42px);
	padding: 0 15px;
	border: var(--wd-form-brd-width, 1px) solid var(--wd-form-brd-color, rgba(0, 0, 0, 0.1));
	border-radius: var(--wd-form-brd-radius, 0);
	background-color: var(--wd-form-bg, transparent);
	box-shadow: none;
	color: var(--wd-form-color, inherit);
	font-size: 14px;
	vertical-align: middle;
	transition: border-color 0.4s ease;
}

.euw-withdrawal.euw-woodmart input[type="text"]:focus,
.euw-withdrawal.euw-woodmart input[type="email"]:focus {
	outline: none;
	border-color: var(--wd-form-brd-color-focus, rgba(0, 0, 0, 0.15));
	box-shadow: none;
}

.euw-withdrawal.euw-woodmart .required {
	color: var(--notices-warning-color, #b32d2e);
}

.euw-withdrawal.euw-woodmart .button.euw-continue,
.euw-withdrawal.euw-woodmart .button.euw-confirm {
	border: 0;
	border-radius: var(--btn-accented-brd-radius, 0);
	color: var(--btn-accented-color, #fff) !important;
	box-shadow: var(--btn-accented-box-shadow, none);
	background-color: var(--btn-accented-bgcolor, var(--wd-primary-color, #333)) !important;
	text-transform: var(--btn-accented-transform, var(--btn-transform, uppercase));
	font-weight: var(--btn-accented-font-weight, var(--btn-font-weight, 600));
	font-family: var(--btn-accented-font-family, var(--btn-font-family, inherit));
	font-style: var(--btn-accented-font-style, var(--btn-font-style, unset));
	font-size: 13px;
	line-height: 1.2;
	min-height: 42px;
	padding: 5px 20px;
	width: auto;
	transition: all 0.25s ease;
}

.euw-withdrawal.euw-woodmart .button.euw-continue:hover,
.euw-withdrawal.euw-woodmart .button.euw-confirm:hover {
	color: var(--btn-accented-color-hover, #fff) !important;
	box-shadow: var(--btn-accented-box-shadow-hover, none);
	background-color: var(--btn-accented-bgcolor-hover, var(--wd-primary-color, #333)) !important;
}

.euw-withdrawal.euw-woodmart .button.euw-continue:active,
.euw-withdrawal.euw-woodmart .button.euw-confirm:active {
	box-shadow: var(--btn-accented-box-shadow-active, none);
}

/*
 * Secondary CTA. It deliberately uses the theme's neutral greyscale tokens rather
 * than --btn-default-*: a site can configure the theme's default button in the same
 * accent colour as the accented button, which would leave two identical CTAs.
 */
.euw-withdrawal.euw-woodmart .button.euw-back {
	border: 0;
	border-radius: var(--btn-default-brd-radius, 0);
	color: var(--color-gray-800, #333) !important;
	box-shadow: none;
	background-color: var(--bgcolor-gray-200, #f3f3f3) !important;
	text-transform: var(--btn-default-transform, var(--btn-transform, uppercase));
	font-weight: var(--btn-default-font-weight, var(--btn-font-weight, 600));
	font-family: var(--btn-default-font-family, var(--btn-font-family, inherit));
	font-style: var(--btn-default-font-style, var(--btn-font-style, unset));
	font-size: 13px;
	line-height: 1.2;
	min-height: 42px;
	padding: 5px 20px;
	width: auto;
	transition: all 0.25s ease;
}

.euw-withdrawal.euw-woodmart .button.euw-back:hover {
	color: var(--color-gray-900, #222) !important;
	box-shadow: none;
	background-color: var(--bgcolor-gray-300, #e9e9e9) !important;
}

.euw-withdrawal.euw-woodmart .euw-continue:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.euw-withdrawal.euw-woodmart .euw-legal-notice {
	background: var(--bgcolor-gray-100, #f9f9f9);
	border: 1px solid var(--brdcolor-gray-300, #e0e0e0);
	border-left: 3px solid var(--wd-primary-color, #2271b1);
	color: var(--wd-text-color, inherit);
}

.euw-withdrawal.euw-woodmart .euw-summary {
	background: var(--bgcolor-gray-100, #f9f9f9);
	border: 1px solid var(--brdcolor-gray-300, #e0e0e0);
}

/*
 * Note: --notices-success-color is the theme's *text* colour for success notices
 * (white by default), so it is only safe on top of --notices-success-bg. It must
 * never be used as a foreground colour on the plain page/modal background.
 */
.euw-withdrawal.euw-woodmart .euw-notice--success {
	background-color: var(--notices-success-bg, #edfaef);
	border-color: var(--notices-success-bg, #46b450);
	color: var(--notices-success-color, inherit);
}

.euw-withdrawal.euw-woodmart .euw-notice--warning {
	background-color: var(--notices-warning-bg, #fff8e5);
	border-color: var(--notices-warning-color, #ffb900);
	color: var(--notices-warning-color, inherit);
}

.euw-withdrawal.euw-woodmart .euw-notice--error {
	background-color: var(--notices-error-bg, #fef1f1);
	border-color: var(--euw-color-error, var(--notices-error-color, #dc3232));
	color: var(--euw-color-error, var(--notices-error-color, inherit));
}

.euw-withdrawal.euw-woodmart .euw-notice--info {
	background-color: var(--bgcolor-gray-100, #f0f6fc);
	border-color: var(--wd-primary-color, #72aee6);
	color: var(--wd-text-color, inherit);
}

.euw-withdrawal.euw-woodmart.euw-confirmed {
	background: var(--notices-success-bg, #edfaef);
	border: 1px solid var(--notices-success-bg, #46b450);
	color: var(--notices-success-color, inherit);
}

.euw-withdrawal.euw-woodmart.euw-confirmed h2,
.euw-withdrawal.euw-woodmart.euw-confirmed p {
	color: inherit;
}

/* Success tick sits on the plain modal background, so it uses the plugin's own
   success colour instead of the theme's notice text colour. */
.euw-withdrawal.euw-woodmart .euw-confirmed-icon {
	color: var(--euw-color-success, #16a34a);
}

.euw-modal.euw-woodmart .euw-modal__dialog {
	border-radius: var(--wd-brd-radius, 16px);
	font-family: var(--wd-text-font, inherit);
	color: var(--wd-text-color, inherit);
}

.euw-modal.euw-woodmart .euw-modal__title {
	font-family: var(--wd-title-font, inherit);
	color: var(--wd-title-color, inherit);
	font-weight: var(--wd-title-font-weight, 600);
}

.euw-modal.euw-woodmart .euw-withdrawal input[type="text"],
.euw-modal.euw-woodmart .euw-withdrawal input[type="email"] {
	height: var(--wd-form-height, 42px);
	border: var(--wd-form-brd-width, 1px) solid var(--wd-form-brd-color, rgba(0, 0, 0, 0.1));
	border-radius: var(--wd-form-brd-radius, 0);
	background-color: var(--wd-form-bg, transparent);
	color: var(--wd-form-color, inherit);
	padding: 0 15px;
	font-size: 14px;
	box-shadow: none;
}

.euw-modal.euw-woodmart .euw-withdrawal input[type="text"]:focus,
.euw-modal.euw-woodmart .euw-withdrawal input[type="email"]:focus {
	border-color: var(--wd-form-brd-color-focus, rgba(0, 0, 0, 0.15));
	box-shadow: none;
	outline: none;
}

.euw-modal.euw-woodmart .euw-withdrawal label {
	font-size: inherit;
	color: var(--wd-entities-title-color, var(--wd-title-color, inherit));
}

.euw-modal.euw-woodmart .euw-order-items__toggle,
.euw-withdrawal.euw-woodmart .euw-order-items__toggle {
	text-transform: none !important;
	font-weight: 500 !important;
	border-radius: var(--euw-radius-button, var(--btn-default-brd-radius, 3px)) !important;
}

.euw-modal.euw-woodmart .euw-withdrawal .euw-order-item__qty-btn,
.euw-withdrawal.euw-woodmart .euw-order-item__qty-btn {
	width: auto !important;
	min-width: 2.5rem !important;
	min-height: 2.5rem !important;
	height: 2.5rem !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-transform: none !important;
	font-weight: 500 !important;
	color: inherit;
}

.euw-modal.euw-woodmart .euw-withdrawal .euw-order-item__qty-btn:hover:not(:disabled),
.euw-modal.euw-woodmart .euw-withdrawal .euw-order-item__qty-btn:focus-visible:not(:disabled),
.euw-withdrawal.euw-woodmart .euw-order-item__qty-btn:hover:not(:disabled),
.euw-withdrawal.euw-woodmart .euw-order-item__qty-btn:focus-visible:not(:disabled) {
	background: var(--wd-form-bg, #f1f5f9) !important;
	box-shadow: none !important;
	color: inherit;
}

.euw-modal.euw-woodmart .euw-withdrawal .euw-order-item__qty-btn:disabled,
.euw-withdrawal.euw-woodmart .euw-order-item__qty-btn:disabled {
	opacity: 0.4;
}

.euw-modal.euw-woodmart .euw-withdrawal .euw-order-item__qty-input,
.euw-withdrawal.euw-woodmart .euw-order-item__qty-input {
	width: 2.75rem !important;
	max-width: 3.5rem !important;
	height: 2.5rem !important;
	padding: 0 0.2rem !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.euw-modal.euw-woodmart .button,
.euw-modal.euw-woodmart .euw-continue,
.euw-modal.euw-woodmart .euw-confirm,
.euw-modal.euw-woodmart .euw-back {
	border-radius: var(--btn-accented-brd-radius, 10px);
	padding: 5px 20px;
	font-size: 13px;
	font-weight: var(--btn-accented-font-weight, 600);
	width: auto;
	min-width: 0;
}

.euw-modal.euw-woodmart .euw-continue,
.euw-modal.euw-woodmart .euw-confirm {
	color: var(--btn-accented-color, #fff) !important;
	background-color: var(--btn-accented-bgcolor, var(--wd-primary-color, #0f172a)) !important;
	border: var(--euw-btn-confirm-border-width, 0px) solid var(--euw-color-btn-confirm-border, var(--btn-accented-bgcolor, var(--wd-primary-color, #0f172a)));
	box-shadow: var(--btn-accented-box-shadow, none);
}

.euw-modal.euw-woodmart .euw-continue {
	border-width: var(--euw-btn-primary-border-width, 0px);
}

.euw-modal.euw-woodmart .euw-continue:hover,
.euw-modal.euw-woodmart .euw-confirm:hover {
	color: var(--btn-accented-color-hover, #fff) !important;
	background-color: var(--btn-accented-bgcolor-hover, var(--wd-primary-color, #0f172a)) !important;
	box-shadow: var(--btn-accented-box-shadow-hover, none);
}

.euw-modal.euw-woodmart .euw-back {
	color: var(--color-gray-800, #334155) !important;
	background-color: var(--bgcolor-gray-200, #f1f5f9) !important;
	border: var(--euw-btn-secondary-border-width, 0px) solid var(--euw-color-btn-secondary-border, var(--bgcolor-gray-200, #f1f5f9));
	box-shadow: none;
}

.euw-modal.euw-woodmart .euw-back:hover {
	color: var(--color-gray-900, #0f172a) !important;
	background-color: var(--bgcolor-gray-300, #e9e9e9) !important;
}

.euw-modal.euw-woodmart .euw-legal-notice {
	background: var(--bgcolor-gray-100, #f8fafc);
	border: 1px solid var(--brdcolor-gray-300, #e2e8f0);
	border-left: 3px solid var(--wd-primary-color, #3b82f6);
	color: var(--wd-text-color, #475569);
}

.euw-modal.euw-woodmart .euw-summary {
	background: var(--bgcolor-gray-100, #f8fafc);
	border: 1px solid var(--brdcolor-gray-300, #e2e8f0);
}

.euw-modal.euw-woodmart.euw-modal--confirmed .euw-modal__title {
	color: var(--euw-color-success, #16a34a);
}
