.variations_form.cart .reset_variations,
.variations_form.cart .reset_variations_alert {
display: none !important;
}
.variations_form.cart {
display: grid !important;
grid-template-columns: 1fr !important;
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box;
}
.variations_form .woocommerce-variation-price {
display: none !important;
}
.variations_form .variations {
margin-bottom: 0 !important;
}
.variations th,
.variations td {
vertical-align: top !important;
}
.variations_form .variations th {
width: 175px;
min-width: 175px;
box-sizing: border-box;
white-space: nowrap;
padding-bottom: 0 !important;
}
@media (max-width: 1024px) {
.variations_form .variations th {
width: 135px;
min-width: 135px;
}
}
.variations select {
width: 100%;
height: auto !important;
overflow-wrap: anywhere !important;
box-sizing: border-box;
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
border: 1px solid var(--wp--preset--color--custom-schwarz-text, #000) !important;
border-radius: 4px !important;
background-color: var(--wp--preset--color--custom-wei-bg, #fff) !important;
color: var(--wp--preset--color--custom-schwarz-text, #000) !important;
-webkit-appearance: none !important;
-moz-appearance: none !important;
appearance: none !important;
}
.wc-block-next-previous-buttons__button {
color: var(--wp--preset--color--custom-schwarz-text, #000) !important;
}
.product-price-tag del {
opacity: 0.6;
margin-right: 6px;
}
.product-price-tag ins {
text-decoration: none;
}
.wp-block-woocommerce-add-to-cart-form .variations_button {
grid-template-columns: min-content auto;
}
.woocommerce div.product form.cart table td {
padding-left: 2px !important;
}
.voucher-design-row,
.voucher-message-row {
display: none;
}
.voucher-message-row td {
padding-left: 2px !important;
padding-right: 2px !important;
}
.voucher-fields {
display: table !important;
table-layout: fixed !important;
width: 100% !important;
max-width: 100% !important;
margin-bottom: 2em;
}
.voucher-fields th {
width: 30%;
text-align: left;
padding: 6px 0;
vertical-align: top;
white-space: nowrap;
line-height: 1.25em !important;
}
.voucher-fields td {
width: 100%;
padding: 6px 2px;
vertical-align: top;
overflow: hidden;
box-sizing: border-box;
line-height: 1.25em !important;
}
.voucher-slider-wrapper {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.voucher-slider-wrapper input[type="range"] {
width: 100%;
height: 10px;
border-radius: 3px;
background: #ddd;
outline: none;
cursor: pointer;
}
#voucher_value {
flex: 1;
max-width: 85%;
accent-color: #000;
cursor: pointer;
}
.voucher-value-display {
min-width: 60px;
text-align: right;
white-space: nowrap;
padding-right: 5px;
font-weight: 600;
}
.voucher-quick-select {
display: flex;
gap: 6px;
margin-bottom: 10px;
}
.voucher-quick-btn,
.voucher-person-btn,
.voucher-night-btn {
padding: 10px 0px;
border: 1px solid #000;
background-color: #fff;
cursor: pointer;
flex: 1;
border-radius: 4px;
transition: background-color 0.2s ease-in-out;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
-webkit-touch-callout: none;
-webkit-text-size-adjust: none;
}
.voucher-quick-btn:not(.active):not(:hover),
.voucher-person-btn:not(.active):not(:hover),
.voucher-night-btn:not(.active):not(:hover) {
color: inherit !important;
text-decoration: none !important;
}
.voucher-quick-btn:hover,
.voucher-person-btn:hover,
.voucher-night-btn:hover {
background-color: #000;
color: #fff;
transition: background-color 0.2s ease-in-out;
}
.voucher-quick-btn.active,
.voucher-person-btn.active,
.voucher-night-btn.active {
background-color: #000;
color: #fff;
}
#voucher_message {
width: 100%;
resize: vertical;
box-sizing: border-box;
max-height: 200px;
overflow-y: auto;
font-family: inherit;
font-size: var(--wp--preset--font-size--custom-1, 1rem);
line-height: 1.5em;
padding: 0.25em 0.5em;
border-radius: 4px;
}
#voucher_message_counter {
font-size: var(--wp--preset--font-size--custom-1, 1rem);
line-height: 1em;
color: #555;
text-align: right;
}
.voucher-selector-wrapper {
position: relative;
overflow: hidden;
}
.voucher-selector-wrapper::before,
.voucher-selector-wrapper::after {
content: '';
position: absolute;
top: 0;
height: 100%;
pointer-events: none;
transition: opacity 0.3s ease;
z-index: 5;
}
.voucher-selector-wrapper::before {
left: -1px;
width: 60px;
background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
opacity: 0;
}
.voucher-selector-wrapper::after {
right: -1px;
width: 60px;
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
opacity: 1;
}
.voucher-selector-wrapper.scrolled-left::before {
opacity: 1;
}
.voucher-selector-wrapper.scrolled-right::after {
opacity: 0;
}
.voucher-arrow {
position: absolute;
top: 35%;
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--wp--preset--color--custom-gr-n, #000);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
z-index: 10;
opacity: 0.75;
transition: opacity 0.25s ease, transform 0.2s ease;
transform-origin: center;
}
@media (hover: none) and (pointer: coarse) {
.voucher-arrow {
display: none;
}
}
.voucher-arrow svg {
width: 16px;
height: 16px;
color: #fff;
}
.voucher-arrow:hover {
opacity: 1;
transform: scale(1.2);
}
.voucher-arrow-left svg {
padding: 0 2px 0 0;
}
.voucher-arrow-right svg {
padding: 0 0 0 2px;
}
.voucher-arrow-left {
left: 10px;
}
.voucher-arrow-right {
right: 10px;
}
.voucher-selector-wrapper:not(.scrolled-left) .voucher-arrow-left {
opacity: 0;
pointer-events: none;
}
.voucher-selector-wrapper.scrolled-right .voucher-arrow-right {
opacity: 0;
pointer-events: none;
}
.voucher-design-row .voucher-selector {
display: flex;
gap: 10px;
flex-wrap: nowrap;
overflow-x: auto;
scrollbar-width: thin;
-ms-overflow-style: none;
scroll-behavior: smooth;
padding-right: 12px;
padding-bottom: 1rem;
}
.voucher-selector::-webkit-scrollbar {
display: none;
}
.voucher-design-option {
flex: 0 0 auto;
width: 150px;
box-sizing: border-box;
text-align: center;
cursor: pointer;
position: relative;
z-index: 1;
}
.voucher-design-option img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
border-radius: 4px;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25);
object-fit: cover;
aspect-ratio: 1 / 1.41;
}
.voucher-design-option .voucher-design-label {
display: block;
font-size: var(--wp--preset--font-size--custom-1, 1rem);
}
.voucher-design-option .voucher-image-wrapper {
position: relative;
display: inline-block;
border: 2px solid transparent;
}
.voucher-design-option.selected .voucher-image-wrapper {
border: 2px solid #000;
border-radius: 5px;
transition: border-color 0.5s ease-in-out;
}
.voucher-design-option.selected .voucher-design-label {
font-weight: 700;
transition: font-weight 0.25s ease;
}
.voucher-zoom-btn {
position: absolute;
top: 7px;
right: 7px;
width: 28px;
height: 28px;
padding: 0;
background: none;
border: none;
cursor: pointer;
opacity: 0;
transition: opacity 0.25s ease, transform 0.2s ease;
pointer-events: auto;
}
.voucher-zoom-btn svg {
width: 100%;
height: 100%;
color: white;
transition: fill 0.25s ease, transform 0.2s ease;
}
.voucher-zoom-btn path {
fill: currentColor;
}
.voucher-zoom-btn:focus {
outline: none;
}
.voucher-design-option:hover .voucher-zoom-btn {
opacity: 1;
}
.voucher-zoom-btn:hover svg {
transform: scale(1.25);
}
#voucher-zoom-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
cursor: zoom-out;
}
#voucher-zoom-modal img {
max-width: 90%;
max-height: 90%;
border-radius: 8px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
@media (max-width: 767px) {
.variations {
display: table !important;
}
.voucher-fields th,
.voucher-fields td,
.variations th,
.variations td {
display: block !important;
width: 100% !important;
max-width: 100% !important;
white-space: normal !important;
box-sizing: border-box;
}
.variations select,
input[type="range"],
textarea {
width: 100% !important;
max-width: 100% !important;
}
.voucher-selector-wrapper {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.voucher-design-option {
width: 120px;
}
#voucher_message {
font-size: 1rem;
width: 100%;
min-height: 150px !important;
}
#voucher-zoom-modal {
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
#voucher-zoom-modal img {
max-height: 90%;
width: auto;
object-fit: contain;
}
}
@media (max-width: 599px),
(min-width: 782px) and (max-width: 1249px) {
.voucher-person-btn > * {
display: none !important;
}
.voucher-night-btn > * {
display: none !important;
}
}