 
:root {
--cartfly-primary: #177C59;
--cartfly-primary-dark: #0e6549;
--cartfly-primary-light: #aee6ca;
--cartfly-success: #4caf50;
--cartfly-error: #e53935;
--cartfly-warning: #ff9800;
--cartfly-bg: #ffffff;
--cartfly-bg-light: #f5f5f5;
--cartfly-bg-input: #ffffff;
--cartfly-text: #212121;
--cartfly-text-secondary: #757575;
--cartfly-text-muted: #9e9e9e;
--cartfly-border: #e0e0e0;
--cartfly-border-focus: #bdbdbd;
--cartfly-radius: 14px;
--cartfly-radius-sm: 10px;
--cartfly-radius-lg: 20px;
--cartfly-radius-pill: 50px;
--cartfly-shadow: 0 2px 8px rgba(0,0,0,0.08);
--cartfly-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
--cartfly-font: 'Cairo', sans-serif;
--cartfly-transition: all 0.2s ease;
}
.cartfly-form,
.cartfly-form *,
.cartfly-form input,
.cartfly-form select,
.cartfly-form textarea,
.cartfly-form button,
.cartfly-form label,
.cartfly-form span,
.cartfly-form h3,
.cartfly-form p {
font-family: var(--cartfly-font) !important;
}
.cartfly-form {
background: var(--cartfly-bg);
border-radius: var(--cartfly-radius-lg);
box-shadow: var(--cartfly-shadow-lg);
border: 1px solid rgba(0,0,0,0.05);
padding: 24px;
max-width: 700px;
margin: 20px auto 40px;
overflow-anchor: none;
}
.cartfly-form.cartfly_disabled .cartfly-submit {
opacity: 0.5;
pointer-events: none;
cursor: not-allowed;
}
.cartfly-form * {
box-sizing: border-box;
}
.cartfly-form input,
.cartfly-form select,
.cartfly-form textarea,
.cartfly-form button {
font-size: 16px !important;
touch-action: manipulation;
-webkit-text-size-adjust: 100%;
}
@supports (-webkit-touch-callout: none) {
.cartfly-form input,
.cartfly-form select,
.cartfly-form textarea {
font-size: 16px !important;
}
}
.cartfly-form.form-hide-desktop {
display: none !important;
}
.cartfly-form-header {
text-align: center;
margin-bottom: 24px;
}
.cartfly-form-title {
font-size: 18px;
font-weight: 600;
color: var(--cartfly-text);
margin: 0;
}
.cartfly-quantity-section {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 0;
border-bottom: 1px solid var(--cartfly-border);
margin-bottom: 20px;
}
.cartfly-quantity-label {
font-size: 14px;
font-weight: 500;
color: var(--cartfly-text);
}
.cartfly-quantity-control {
display: flex;
align-items: center;
gap: 0;
background: var(--cartfly-bg-light);
border: 1px solid var(--cartfly-border);
border-radius: var(--cartfly-radius-sm);
overflow: hidden;
}
.cartfly-qty-btn {
width: 40px;
height: 40px;
border: none;
background: var(--cartfly-primary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
transition: var(--cartfly-transition);
flex-shrink: 0;
}
.cartfly-qty-btn:hover {
background: var(--cartfly-primary-dark);
}
.cartfly-qty-btn:active {
transform: scale(0.95);
}
.cartfly-quantity-control input {
width: 60px;
height: 40px;
border: none;
border-left: 1px solid var(--cartfly-border);
border-right: 1px solid var(--cartfly-border);
background: var(--cartfly-bg);
text-align: center;
font-size: 18px;
font-weight: 700;
font-family: var(--cartfly-font) !important;
color: var(--cartfly-text);
-moz-appearance: textfield;
padding: 0;
margin: 0;
touch-action: manipulation;
}
.cartfly-quantity-control input::-webkit-outer-spin-button,
.cartfly-quantity-control input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.cartfly-quantity-control input:focus {
outline: none;
}
.cartfly-form-fields {
display: flex;
flex-direction: column;
gap: 0;
}
.cartfly-field {
position: relative;
margin-bottom: 6px;
}
.cartfly-label {
display: block !important;
font-size: 13px !important;
font-weight: 600 !important;
color: var(--cartfly-text, #212121) !important;
margin-bottom: 4px !important;
visibility: visible !important;
opacity: 1 !important;
background: none !important;
text-transform: none !important;
}
.cartfly-icon {
display: none;
}
.cartfly-input-wrap {
position: relative;
display: flex;
align-items: center;
}
.cartfly-field-icon-svg {
position: absolute;
inset-inline-end: 14px;
top: 50%;
transform: translateY(-50%);
color: var(--cartfly-text-muted);
pointer-events: none;
z-index: 1;
opacity: 0.5;
}
.cartfly-textarea-wrap .cartfly-field-icon-svg {
top: 16px;
transform: none;
}
.cartfly-field input,
.cartfly-field select,
.cartfly-field textarea {
width: 100% !important;
padding: 12px 14px !important;
padding-inline-end: 38px !important;
font-size: 15px !important;
font-family: var(--cartfly-font, 'Cairo', sans-serif) !important;
color: var(--cartfly-text, #212121) !important;
background: var(--cartfly-bg-input, #ffffff) !important;
border: 1px solid var(--cartfly-border, #e0e0e0) !important;
border-radius: var(--cartfly-radius, 14px) !important;
transition: var(--cartfly-transition, all 0.2s ease) !important;
-webkit-appearance: none !important;
appearance: none !important;
text-align: start !important;
touch-action: manipulation !important;
visibility: visible !important;
opacity: 1 !important;
display: block !important;
}
.cartfly-field input::placeholder,
.cartfly-field textarea::placeholder {
color: var(--cartfly-text-muted, #9e9e9e) !important;
opacity: 1 !important;
}
.cartfly-field input[type="text"]::placeholder,
.cartfly-field input[type="tel"]::placeholder,
.cartfly-field input[type="email"]::placeholder,
.cartfly-field input[type="number"]::placeholder,
.cartfly-field input[type="search"]::placeholder,
.cartfly-field textarea::placeholder {
color: var(--cartfly-text-muted, #9e9e9e) !important;
opacity: 1 !important;
-webkit-text-fill-color: var(--cartfly-text-muted, #9e9e9e);
}
.cartfly-field input:focus,
.cartfly-field select:focus,
.cartfly-field textarea:focus {
outline: none;
border-color: var(--cartfly-border-focus);
background: var(--cartfly-bg);
}
.cartfly-field-select .cartfly-input-wrap::after {
content: '';
position: absolute;
inset-inline-start: 16px;
top: 50%;
width: 8px;
height: 8px;
border-inline-start: 2px solid var(--cartfly-text-muted);
border-bottom: 2px solid var(--cartfly-text-muted);
transform: translateY(-50%) rotate(-45deg);
pointer-events: none;
}
.cartfly-field select {
padding-inline-start: 40px;
cursor: pointer;
}
.cartfly-field textarea {
resize: none;
min-height: 60px;
}
.cartfly-field.has-error input,
.cartfly-field.has-error select,
.cartfly-field.has-error textarea {
border-color: var(--cartfly-error);
animation: cartfly-shake 0.4s ease;
}
@keyframes cartfly-shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-5px); }
50% { transform: translateX(5px); }
75% { transform: translateX(-3px); }
}
.cartfly-field.has-error .cartfly-label {
color: var(--cartfly-error);
}
.cartfly-error {
display: none;
font-size: 12px;
color: var(--cartfly-error);
margin-top: 6px;
padding-inline-end: 4px;
}
/* what the customer's number is used for, under the phone field */
.cartfly-field-note {
margin: 6px 0 0;
font-size: 12px;
line-height: 1.5;
color: var(--cartfly-text-muted, #6b7280);
}
.cartfly-field.has-error .cartfly-field-note {
display: none;
}
.cartfly-field.has-error .cartfly-error {
display: flex;
align-items: center;
gap: 4px;
}
.cartfly-field.has-error .cartfly-error::before {
content: '';
width: 6px;
height: 6px;
background: var(--cartfly-error);
border-radius: 50%;
flex-shrink: 0;
}
.cartfly-variations {
display: flex;
flex-direction: column;
gap: 10px;
margin: 24px 0;
}
.cartfly-variation {
display: flex;
align-items: center;
gap: 12px;
padding: 16px;
background: var(--cartfly-bg);
border: 2px solid var(--cartfly-border);
border-radius: var(--cartfly-radius);
cursor: pointer;
transition: var(--cartfly-transition);
}
.cartfly-variation:hover {
border-color: var(--cartfly-border-focus);
}
.cartfly-variation.selected,
.cartfly-variation:has(input:checked) {
border-color: var(--cartfly-primary);
background: rgba(23, 124, 89, 0.02);
}
.cartfly-variation.out-of-stock {
opacity: 0.5;
cursor: not-allowed;
}
.cartfly-variation input {
display: none;
}
.cartfly-variation-radio {
width: 20px;
height: 20px;
border: 2px solid var(--cartfly-border);
border-radius: 50%;
flex-shrink: 0;
position: relative;
transition: var(--cartfly-transition);
}
.cartfly-variation.selected .cartfly-variation-radio,
.cartfly-variation:has(input:checked) .cartfly-variation-radio {
border-color: var(--cartfly-primary);
}
.cartfly-variation.selected .cartfly-variation-radio::after,
.cartfly-variation:has(input:checked) .cartfly-variation-radio::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 10px;
height: 10px;
background: var(--cartfly-primary);
border-radius: 50%;
}
.cartfly-variation-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
}
.cartfly-variation-name {
font-size: 14px;
font-weight: 500;
color: var(--cartfly-text);
}
.cartfly-out-of-stock {
font-size: 12px;
color: var(--cartfly-error);
}
.cartfly-variation-price {
font-size: 15px;
font-weight: 600;
color: var(--cartfly-primary);
white-space: nowrap;
}
.cartfly-variation-price del {
color: var(--cartfly-text-secondary);
font-weight: 400;
font-size: 13px;
margin-inline-start: 8px;
text-decoration: line-through;
}
.cartfly-summary {
background: var(--cartfly-bg-light);
border-radius: var(--cartfly-radius);
padding: 14px 16px;
margin: 16px 0;
}
.cartfly-summary-header {
display: flex;
align-items: center;
gap: 8px;
font-size: 15px;
font-weight: 600;
color: var(--cartfly-text);
margin-bottom: 10px;
padding-bottom: 8px;
border-bottom: 1px solid var(--cartfly-border);
}
.cartfly-summary-header svg {
color: var(--cartfly-primary);
}
.cartfly-summary-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 3px 0;
font-size: 14px;
}
.cartfly-summary-label {
color: var(--cartfly-text-secondary);
font-size: 14px;
}
.cartfly-summary-value {
color: var(--cartfly-text);
font-weight: 500;
display: flex;
align-items: center;
gap: 6px;
font-size: 14px;
}
.cartfly-summary-value .cartfly_price,
.cartfly-summary-value .cartfly_total {
font-size: 16px !important;
font-weight: 500;
}
.cartfly-order-qty {
color: var(--cartfly-text-muted);
font-size: 13px;
}
.cartfly-free {
color: var(--cartfly-success);
font-weight: 600;
font-size: 14px;
}
.cartfly-shipping-error {
color: var(--cartfly-error);
font-weight: 600;
font-size: 13px;
}
.cartfly-coupon {
margin: 8px 0 4px;
}
.cartfly-coupon-row {
display: flex;
gap: 8px;
}
.cartfly-coupon-row input {
flex: 1;
min-width: 0;
border: 1px solid var(--cartfly-border);
border-radius: var(--cartfly-radius, 8px);
padding: 8px 10px;
font-size: 13px;
background: var(--cartfly-bg);
color: var(--cartfly-text);
}
.cartfly-coupon-apply {
border: 0;
background: var(--cartfly-primary);
color: #fff;
border-radius: var(--cartfly-radius, 8px);
padding: 8px 12px;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
}
.cartfly-coupon-msg {
font-size: 12px;
margin-top: 4px;
color: var(--cartfly-success);
}
.cartfly-coupon-msg.is-error {
color: var(--cartfly-error);
}
.cartfly-summary-total {
border-top: 2px solid var(--cartfly-border);
margin-top: 4px;
padding-top: 10px;
}
.cartfly-summary-total .cartfly-summary-label {
font-weight: 700;
font-size: 12px;
color: var(--cartfly-text);
}
.cartfly-summary-total .cartfly-summary-value {
font-size: 16px !important;
font-weight: 700;
color: var(--cartfly-primary);
}
.cartfly-summary-total .cartfly_total {
font-size: 16px !important;
font-weight: 600;
}
.cartfly-summary .shipping_price,
.cartfly-summary .shipping_price span {
font-size: 12px !important;
}
.shipping_price_text {
color: var(--cartfly-text) !important;
}
.cartfly-shipping-methods {
display: flex;
flex-direction: column;
gap: 6px;
margin: 8px 0;
}
.cartfly-shipping-option {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
background: var(--cartfly-bg, #fff);
border: 2px solid var(--cartfly-border, #e0e0e0);
border-radius: var(--cartfly-radius-sm, 8px);
cursor: pointer;
transition: all 0.2s ease;
font-size: 13px;
}
.cartfly-shipping-option:hover {
border-color: var(--cartfly-border-focus, #bdbdbd);
}
.cartfly-shipping-option.selected,
.cartfly-shipping-option:has(input:checked) {
border-color: var(--cartfly-primary, #177C59);
background: rgba(23, 124, 89, 0.03);
}
.cartfly-shipping-option input[type="radio"] {
display: none;
}
.cartfly-shipping-name {
font-weight: 500;
color: var(--cartfly-text, #212121);
}
.cartfly-shipping-cost {
font-weight: 600;
color: var(--cartfly-primary, #177C59);
}
.cartfly_payment_methods {
margin: 12px 0;
}
.cartfly-payment-title {
font-size: 13px;
font-weight: 600;
color: var(--cartfly-text, #212121);
margin-bottom: 6px;
}
.cartfly-payment-icon {
display: inline-flex;
align-items: center;
gap: 4px;
}
.cartfly-payment-icon img {
max-height: 22px;
width: auto;
margin: 0;
}
.cartfly-prepaid #cartfly_otp_section {
display: none !important;
}
.cartfly_shipping_methods {
list-style: none;
padding: 0;
margin: 8px 0;
}
.cartfly_shipping_methods li {
padding: 8px 0;
font-size: 13px;
}
.cartfly_shipping_methods label {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.cartfly-submit {
width: 100%;
padding: 18px 24px;
font-size: 17px;
font-weight: 600;
font-family: var(--cartfly-font) !important;
color: #ffffff;
background: var(--cartfly-primary);
border: none;
border-radius: var(--cartfly-radius-pill);
cursor: pointer;
transition: var(--cartfly-transition);
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
position: relative;
overflow: hidden;
}
.cartfly-submit:hover {
background: var(--cartfly-primary-dark);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(23, 124, 89, 0.3);
}
.cartfly-submit:active {
transform: translateY(0);
}
.cartfly-submit:disabled {
background: var(--cartfly-text-muted);
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.cartfly-submit.loading {
    pointer-events: none;
}
.cartfly-submit.loading .cartfly-submit-text {
    opacity: 0;
}
.cartfly-submit-loader {
display: none;
position: absolute;
width: 24px;
height: 24px;
border: 3px solid rgba(255,255,255,0.3);
border-top-color: #ffffff;
border-radius: 50%;
animation: cartfly-spin 0.8s linear infinite;
}
.cartfly-submit.loading .cartfly-submit-loader {
display: block;
}
@keyframes cartfly-spin {
to { transform: rotate(360deg); }
}
.cartfly-sticky-footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 5px 10px;
padding-bottom: calc(5px + env(safe-area-inset-bottom));
background: var(--cartfly-bg);
box-shadow: 0 -1px 6px rgba(0,0,0,0.06);
z-index: 9999;
display: none;
border-top: 1px solid var(--cartfly-border);
transition: transform 0.3s ease, opacity 0.3s ease;
}
.cartfly-sticky-footer.cartfly-sticky-hidden {
transform: translateY(100%);
opacity: 0;
pointer-events: none;
}
.cartfly-sticky-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
width: 100%;
max-width: 700px;
margin: 0 auto;
padding: 7px 14px;
font-size: 13px;
font-weight: 600;
font-family: var(--cartfly-font) !important;
color: #ffffff;
background: var(--cartfly-primary);
border: none;
border-radius: 6px;
min-height: 44px;
line-height: 1.2;
text-align: center;
text-decoration: none;
transition: var(--cartfly-transition);
box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.cartfly-sticky-btn:hover {
background: var(--cartfly-primary-dark);
color: #ffffff;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.cartfly-sticky-btn:active {
transform: translateY(0);
}
.cartfly-sticky-footer.show,
.cartfly-sticky-footer.visible {
display: block;
}
@media (max-width: 768px) {
.cartfly-sticky-footer {
display: block;
}
.cartfly-form {
margin-bottom: 72px;
}
.cartfly-sticky-btn {
padding: 6px 12px;
font-size: 12px;
border-radius: 5px;
min-height: 42px;
}
}
@media (max-width: 480px) {
.cartfly-form {
padding: 20px 16px;
margin: 12px 12px 80px;
border-radius: var(--cartfly-radius);
}
.cartfly-form-title {
font-size: 16px;
}
.cartfly-field input,
.cartfly-field select,
.cartfly-field textarea {
padding: 12px 14px;
font-size: 16px;
}
.cartfly-submit {
padding: 14px 20px;
font-size: 15px;
}
}
.cartfly-hidden {
display: none !important;
}
.cartfly-otp-section {
background: var(--cartfly-bg-light);
border-radius: var(--cartfly-radius);
padding: 20px;
margin: 20px 0;
}
.cartfly-otp-header {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 600;
color: #25d366;
margin-bottom: 12px;
}
.cartfly-otp-input {
width: 100%;
padding: 14px;
font-size: 20px;
font-family: var(--cartfly-font) !important;
text-align: center;
letter-spacing: 8px;
border: 2px solid var(--cartfly-border);
border-radius: var(--cartfly-radius);
margin: 12px 0;
}
.cartfly-otp-input:focus {
outline: none;
border-color: #25d366;
}
.cartfly-otp-btn {
width: 100%;
padding: 12px;
font-size: 14px;
font-weight: 600;
font-family: var(--cartfly-font) !important;
color: #ffffff;
background: #25d366;
border: none;
border-radius: var(--cartfly-radius-sm);
cursor: pointer;
transition: var(--cartfly-transition);
}
.cartfly-otp-btn:hover {
background: #128c7e;
}
.cartfly-otp-btn:disabled {
background: #9e9e9e;
cursor: not-allowed;
}
.cartfly-otp-btn.sending {
position: relative;
color: transparent;
}
.cartfly-otp-btn.sending::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 18px;
height: 18px;
border: 2px solid rgba(255,255,255,0.3);
border-top-color: #ffffff;
border-radius: 50%;
animation: cartfly-spin 0.6s linear infinite;
}
.otp-success {
background: rgba(76, 175, 80, 0.1);
border: 1px solid #4caf50;
color: #2e7d32;
padding: 10px 14px;
border-radius: 8px;
font-size: 13px;
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 8px;
}
.otp-success::before {
content: '\2713';
font-weight: bold;
}
.otp-error {
background: rgba(229, 57, 53, 0.1);
border: 1px solid #e53935;
color: #c62828;
padding: 10px 14px;
border-radius: 8px;
font-size: 13px;
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 8px;
}
.otp-error::before {
content: '\2717';
font-weight: bold;
}
.cartfly-qty-offers {
margin-bottom: 24px;
background: transparent;
padding: 0;
}
.cartfly-qty-offers-title {
font-size: 15px;
font-weight: 700;
color: var(--cartfly-text);
margin-bottom: 12px;
text-align: center;
}
.cartfly-offer-item {
position: relative;
display: flex;
align-items: center;
padding: 8px 12px !important;
margin-bottom: 10px !important;
background: var(--cartfly-bg);
border: 2px solid var(--cartfly-border);
border-radius: 50px;
cursor: pointer;
transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
line-height: 1.2;
}
.cartfly-offer-item:hover {
border-color: var(--cartfly-primary);
}
.cartfly-offer-item.selected {
border: none !important;
border-radius: 50px;
background: var(--cartfly-bg);
outline: 2px dashed var(--cartfly-primary);
outline-offset: 0;
box-shadow: none !important;
}
.cartfly-offer-item:last-child {
margin-bottom: 0;
}
.cartfly-offer-radio {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.cartfly-offer-check {
width: 22px;
height: 22px;
border: 2px solid var(--cartfly-border);
border-radius: 50%;
margin-inline-end: 12px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.cartfly-offer-item.selected .cartfly-offer-check {
background: var(--cartfly-primary);
border-color: var(--cartfly-primary);
}
.cartfly-offer-check svg {
width: 12px;
height: 12px;
opacity: 0;
color: #fff;
transition: opacity 0.2s ease;
}
.cartfly-offer-item.selected .cartfly-offer-check svg {
opacity: 1;
}
.cartfly-offer-content {
flex: 1;
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
}
.cartfly-offer-info {
display: flex;
align-items: center;
gap: 6px;
}
.cartfly-offer-label {
font-size: 14px;
font-weight: 600;
color: var(--cartfly-text);
}
.cartfly-offer-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 8px;
font-size: 10px;
font-weight: 700;
border-radius: 6px;
}
.cartfly-offer-badge svg {
width: 11px;
height: 11px;
flex-shrink: 0;
}
.cartfly-offer-badge.popular {
background: linear-gradient(135deg, #FFD93D, #FF9500);
color: #1a1a1a;
}
.cartfly-offer-badge.best_value {
background: linear-gradient(135deg, #FF416C, #FF4B2B);
color: #fff;
}
.cartfly-offer-badge.save {
background: linear-gradient(135deg, #11998e, #38ef7d);
color: #fff;
}
.cartfly-offer-pricing {
text-align: start;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 1px;
}
.cartfly-offer-original {
font-size: 11px;
font-weight: 500;
color: var(--cartfly-text-secondary);
text-decoration: line-through;
}
.cartfly-offer-price {
font-size: 16px !important;
font-weight: 700;
color: var(--cartfly-primary);
}
.cartfly-offer-price .woocommerce-Price-amount,
.cartfly-offer-price bdi {
font-size: 16px !important;
}
.cartfly-offer-price .woocommerce-Price-currencySymbol {
font-size: 12px;
font-weight: 600;
}
.cartfly-offer-savings {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11px;
font-weight: 700;
color: #10b981;
}
.cartfly-offer-savings svg {
width: 12px;
height: 12px;
flex-shrink: 0;
}
@media (max-width: 480px) {
.cartfly-qty-offers {
padding: 0;
border-radius: 0;
}
.cartfly-offer-item {
padding: 8px 12px !important;
}
.cartfly-offer-check {
width: 22px;
height: 22px;
margin-inline-end: 12px;
}
.cartfly-offer-price {
font-size: 18px;
}
.cartfly-offer-label {
font-size: 14px;
}
}
.cartfly-loading {
position: relative;
pointer-events: none;
}
.cartfly-loading::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255,255,255,0.7);
border-radius: inherit;
z-index: 10;
}
.cartfly-loading::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 20px;
height: 20px;
border: 2px solid var(--cartfly-border);
border-top-color: var(--cartfly-primary);
border-radius: 50%;
animation: cartfly-spin 0.6s linear infinite;
z-index: 11;
}
.cartfly-skeleton {
background: linear-gradient(90deg, var(--cartfly-bg-light) 25%, var(--cartfly-bg) 50%, var(--cartfly-bg-light) 75%);
background-size: 200% 100%;
animation: cartfly-skeleton 1.2s ease-in-out infinite;
border-radius: 4px;
height: 16px;
width: 80px;
display: inline-block;
}
@keyframes cartfly-skeleton {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
.cartfly-btn-loading {
position: relative;
color: transparent !important;
}
.cartfly-btn-loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 18px;
height: 18px;
border: 2px solid rgba(255,255,255,0.3);
border-top-color: #ffffff;
border-radius: 50%;
animation: cartfly-spin 0.6s linear infinite;
}
.cartfly-field.is-valid input,
.cartfly-field.is-valid select,
.cartfly-field.is-valid textarea {
border-color: var(--cartfly-success);
}
.cartfly-field.is-valid .cartfly-field-icon-svg {
color: var(--cartfly-success);
opacity: 1;
}
@keyframes cartfly-pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
50% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
}
.cartfly-field.is-valid input:focus {
animation: cartfly-pulse 1s ease-out;
}
@keyframes cartfly-shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-5px); }
75% { transform: translateX(5px); }
}
.cartfly-field.has-error {
animation: cartfly-shake 0.3s ease;
}
@media print {
.cartfly-sticky-footer,
.cartfly-submit {
display: none !important;
}
}
.cartfly-form.light-mode {
--cartfly-bg: #ffffff;
--cartfly-bg-light: #f5f5f5;
--cartfly-bg-input: #ffffff;
--cartfly-text: #212121;
--cartfly-text-secondary: #757575;
--cartfly-text-muted: #9e9e9e;
--cartfly-border: #e0e0e0;
--cartfly-border-focus: #bdbdbd;
}
.cartfly-popup-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
z-index: 99999;
display: none;
align-items: flex-end;
justify-content: center;
padding: 0;
opacity: 0;
transition: opacity 0.3s ease;
}
.cartfly-popup-overlay.show {
display: flex;
opacity: 1;
}
.cartfly-popup-modal {
position: relative;
width: 100%;
max-width: 500px;
max-height: 90vh;
background: #ffffff;
border-radius: 20px 20px 0 0;
box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
overflow: hidden;
transform: translateY(100%);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
}
.cartfly-popup-overlay.show .cartfly-popup-modal {
transform: translateY(0);
}
.cartfly-popup-header {
position: relative;
display: flex !important;
align-items: center;
justify-content: center;
padding: 16px 20px;
min-height: 56px;
height: 56px;
background: #ffffff;
border-bottom: 1px solid #e5e5e5;
z-index: 100;
box-sizing: border-box;
flex-shrink: 0;
}
.cartfly-popup-close {
position: absolute;
inset-inline-start: 14px;
top: 50%;
transform: translateY(-50%);
width: 32px;
height: 32px;
min-width: 32px;
min-height: 32px;
display: flex !important;
align-items: center;
justify-content: center;
background: #f5f5f5;
border: none;
border-radius: 50%;
cursor: pointer;
z-index: 101;
transition: all 0.2s ease;
color: #333333;
padding: 0;
margin: 0;
-webkit-tap-highlight-color: transparent;
}
.cartfly-popup-close:hover,
.cartfly-popup-close:active {
background: #e8e8e8;
}
.cartfly-popup-close svg {
width: 16px;
height: 16px;
display: block;
stroke: currentColor;
stroke-width: 2.5;
}
.cartfly-popup-title {
font-size: 17px;
font-weight: 600;
color: #1a1a1a;
margin: 0;
text-align: center;
white-space: nowrap;
font-family: var(--cartfly-font, 'Cairo', sans-serif);
}
.cartfly-popup-content {
flex: 1;
overflow-y: auto;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
}
.cartfly-popup-content .cartfly-form,
.cartfly-popup-content .cartfly_instant_order_form,
.cartfly-popup-content #cartfly_instant_order {
margin: 0 !important;
padding: 16px !important;
border-radius: 0 !important;
box-shadow: none !important;
max-width: 100% !important;
border: none !important;
}
.cartfly-popup-content .cartfly-sticky-footer {
display: none !important;
}
@media (max-width: 768px) {
.cartfly-popup-modal {
max-width: 100%;
max-height: 88vh;
border-radius: 16px 16px 0 0;
}
.cartfly-popup-header {
padding: 14px 16px;
min-height: 54px;
height: 54px;
}
.cartfly-popup-close {
inset-inline-start: 12px;
width: 34px;
height: 34px;
min-width: 34px;
min-height: 34px;
}
.cartfly-popup-close svg {
width: 18px;
height: 18px;
}
.cartfly-popup-title {
font-size: 16px;
}
.cartfly-popup-content .cartfly-form,
.cartfly-popup-content .cartfly_instant_order_form,
.cartfly-popup-content #cartfly_instant_order {
padding: 16px 14px !important;
}
}
body.cartfly-popup-open {
    overflow: hidden !important;
    overflow-anchor: none !important;
}
.cartfly-popup-overlay,
.cartfly-popup-overlay * {
    overflow-anchor: none !important;
}

