.quiqqer-coupons-couponcodeinput { --_qui-error-text-color: var(--qui-error-text-color, red); --_qui-error-input-border-color: var(--qui-error-input-border-color, red); container-type: inline-size; } :where(.quiqqer-coupons-couponcodeinput label) { display: block; margin-bottom: 0.25em; } .quiqqer-coupons-couponcodeinput__inputGroup { display: inline-grid; grid-template-columns: 1fr auto; gap: 1rem; } .quiqqer-coupons-couponcodeinput-input { min-width: min(200px, 100cqi); } .quiqqer-coupons-remove { margin-left: 1rem; } /* error handling */ input.quiqqer-coupons-couponcodeinput-input[data-invalid] { border-color: var(--_qui-error-input-border-color) } .quiqqer-coupons-couponcodeinput__errorMsg:not([data-show]) { display: none; } :where(.quiqqer-coupons-couponcodeinput__errorMsg[data-show]) { font-size: 0.875rem; color: var(--_qui-error-text-color); margin-top: 0.25rem; } /** * Simple Checkout */ .quiqqer-coupons-field-simpleCheckout { margin-top: 1rem; } .quiqqer-coupons-field-simpleCheckout .quiqqer-coupons-couponcodeinput { background: var(--_sectionBgColor); padding: var(--_sectionPadding); } .quiqqer-coupons-field-simpleCheckout .quiqqer-coupons-couponcodeinput__inputGroup { width: 100%; } /*****************************/ /* media / container queries */ /*****************************/ @media screen and (max-width: 767px) { .quiqqer-coupons-couponcodeinput__inputGroup { width: 100%; } } @container (max-inline-size: 400px) { .quiqqer-coupons-couponcodeinput__inputGroup { grid-template-columns: 1fr; } }