:root {
    --zs-primary: #73a38c;
    --zs-primary-hover: #017878;
    --zs-primary-light: #e6f7f7;
    --zs-primary-lighter: #f0fafa;
    --zs-dark: #1a1a2e;
    --zs-text: #333;
    --zs-text-light: #666;
    --zs-text-lighter: #999;
    --zs-border: #e0e0e0;
    --zs-border-light: #f0f0f0;
    --zs-bg: #f7f8fa;
    --zs-white: #fff;
    --zs-danger: #e74c3c;
    --zs-success: #27ae60;
    --zs-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --zs-shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
    --zs-radius: 8px;
    --zs-radius-lg: 12px;
    --zs-transition: all 0.3s ease;
    --zs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Base */
.zs-checkout-page,
.zs-cart-page { background: var(--zs-bg) !important; }
.zs-checkout-wrapper *, .zs-cart-wrapper * { box-sizing: border-box; }
.zs-checkout-wrapper, .zs-cart-wrapper { font-family: var(--zs-font); color: var(--zs-text); line-height: 1.6; }

/* Container */
.zs-checkout-container, .zs-cart-container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }

/* Header Steps */
.zs-checkout-header { text-align: center; margin-bottom: 40px; }
.zs-page-title { font-size: 32px; font-weight: 700; color: var(--zs-dark); margin: 0 0 24px; }
.zs-checkout-steps { display: flex; align-items: center; justify-content: center; max-width: 500px; margin: 0 auto; }
.zs-step { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 14px; color: var(--zs-text-lighter); font-weight: 500; text-decoration: none; transition: var(--zs-transition); }
.zs-step.zs-step-active { color: var(--zs-primary); }
.zs-step.zs-step-done { color: var(--zs-primary); }
a.zs-step:hover { color: var(--zs-primary-hover); text-decoration: none; }
.zs-step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--zs-border-light); color: var(--zs-text-lighter); font-weight: 700; font-size: 14px; }
.zs-step-active .zs-step-num { background: var(--zs-primary); color: var(--zs-white); box-shadow: 0 2px 8px rgba(1,154,154,0.3); }
.zs-step-done .zs-step-num { background: var(--zs-primary-light); color: var(--zs-primary); }
.zs-step-divider { width: 40px; height: 2px; background: var(--zs-border); margin: 0 4px; }

/* Section */
.zs-section { background: var(--zs-white); border-radius: var(--zs-radius-lg); padding: 28px 32px; margin-bottom: 24px; box-shadow: var(--zs-shadow); border: 1px solid var(--zs-border-light); }
.zs-section-title { font-size: 20px; font-weight: 700; color: var(--zs-dark); margin: 0 0 24px; padding-bottom: 16px; border-bottom: 2px solid var(--zs-primary); display: flex; align-items: center; gap: 10px; }
.zs-title-icon { color: var(--zs-primary); flex-shrink: 0; }
.zs-sticky { position: sticky; top: 30px; }

/* Layout */
.zs-checkout-columns { display: grid; grid-template-columns: 1fr 440px; gap: 30px; align-items: start; }
.zs-cart-content { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }

/* Form */
.zs-fields-wrapper { display: flex; flex-wrap: wrap; gap: 0 20px; }
.zs-checkout-page .woocommerce-billing-fields__field-wrapper,
.zs-checkout-page .woocommerce-shipping-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 0 20px; width: 100%; }

.zs-form-row, .zs-checkout-page .form-row { margin-bottom: 18px !important; padding: 0 !important; width: 100%; }
.zs-form-row-first, .zs-checkout-page #billing_first_name_field, .zs-checkout-page #shipping_first_name_field { flex: 0 0 calc(50% - 10px) !important; max-width: calc(50% - 10px) !important; }
.zs-form-row-last, .zs-checkout-page #billing_last_name_field, .zs-checkout-page #shipping_last_name_field { flex: 0 0 calc(50% - 10px) !important; max-width: calc(50% - 10px) !important; }
.zs-form-row-wide { flex: 0 0 100% !important; max-width: 100% !important; }

.zs-form-row label, .zs-checkout-page .form-row label { display: block; font-size: 14px; font-weight: 600; color: var(--zs-text); margin-bottom: 6px; }
.zs-form-row label .required { color: var(--zs-danger); }
.zs-form-row label .optional { color: var(--zs-text-lighter); font-weight: 400; font-size: 12px; }

/* Inputs */
.zs-input, .zs-textarea,
.zs-checkout-page .form-row input.input-text,
.zs-checkout-page .form-row textarea,
.zs-checkout-page .form-row select,
.zs-cart-page .form-row input.input-text,
.zs-cart-page .form-row textarea,
.zs-cart-page .form-row select,
.zs-checkout-page input[type="text"],
.zs-checkout-page input[type="email"],
.zs-checkout-page input[type="tel"],
.zs-checkout-page input[type="number"],
.zs-checkout-page input[type="password"],
.zs-checkout-page select,
.zs-checkout-page textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid var(--zs-border) !important;
    border-radius: var(--zs-radius) !important;
    font-size: 15px !important;
    font-family: var(--zs-font) !important;
    color: var(--zs-text) !important;
    background: var(--zs-white) !important;
    transition: var(--zs-transition) !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    height: auto !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

.zs-checkout-page .form-row input:focus,
.zs-checkout-page .form-row textarea:focus,
.zs-checkout-page .form-row select:focus,
.zs-input:focus, .zs-textarea:focus {
    border-color: var(--zs-primary) !important;
    box-shadow: 0 0 0 3px rgba(1,154,154,0.15) !important;
}

.zs-checkout-page .form-row input::placeholder,
.zs-checkout-page .form-row textarea::placeholder { color: var(--zs-text-lighter) !important; }
.zs-textarea, textarea { min-height: 100px !important; resize: vertical !important; }

/* Select2 */
.zs-checkout-page .select2-container { width: 100% !important; }
.zs-checkout-page .select2-container--default .select2-selection--single {
    height: auto !important; padding: 10px 16px !important; border: 2px solid var(--zs-border) !important;
    border-radius: var(--zs-radius) !important; background: var(--zs-white) !important;
}
.zs-checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important; line-height: 1.5 !important; color: var(--zs-text) !important; font-size: 15px !important;
}
.zs-checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100% !important; right: 12px !important; }
.zs-checkout-page .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--zs-primary) !important; box-shadow: 0 0 0 3px rgba(1,154,154,0.15) !important;
}

/* Checkbox */
.zs-checkbox-wrap { display: flex !important; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.6; position: relative; font-weight: 600; color: var(--zs-text); }
.zs-checkbox-input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.zs-checkmark { position: relative; flex-shrink: 0; display: inline-block; width: 22px; height: 22px; background: var(--zs-white); border: 2px solid var(--zs-border); border-radius: 4px; transition: var(--zs-transition); margin-top: 1px; }
.zs-checkbox-input:checked ~ .zs-checkmark { background: var(--zs-primary); border-color: var(--zs-primary); }
.zs-checkmark:after { content: ""; position: absolute; display: none; left: 7px; top: 3px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.zs-checkbox-input:checked ~ .zs-checkmark:after { display: block; }

/* Radio */
.zs-radio-group { margin-bottom: 20px !important; }
.zs-radio-label { display: block; font-size: 14px; font-weight: 600; color: var(--zs-text); margin-bottom: 10px; }
.zs-radio-options { display: flex; gap: 24px; }
.zs-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; position: relative; }
.zs-radio input[type="radio"] { position: absolute; opacity: 0; cursor: pointer; width: 0; height: 0; }
.zs-radio .zs-radio-mark { position: relative; display: inline-block; width: 20px; height: 20px; border: 2px solid var(--zs-border); border-radius: 50%; background: var(--zs-white); transition: var(--zs-transition); flex-shrink: 0; }
.zs-radio input[type="radio"]:checked ~ .zs-radio-mark { border-color: var(--zs-primary); }
.zs-radio .zs-radio-mark:after { content: ""; position: absolute; display: none; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--zs-primary); }
.zs-radio input[type="radio"]:checked ~ .zs-radio-mark:after { display: block; }

/* Medical Section */
.zs-medical-section { margin-top: 8px; }
.zs-medical-section .zs-section-title { color: var(--zs-primary); }
.zs-medical-fields { display: flex; flex-wrap: wrap; }

.zs-certification { margin-top: 10px !important; padding: 20px !important; background: var(--zs-primary-lighter); border-radius: var(--zs-radius); border: 1px solid rgba(1,154,154,0.3); }
.zs-cert-text { font-size: 13px; line-height: 1.7; color: var(--zs-text-light); font-weight: 400; }

/* Upload */
.zs-upload-section { margin-top: 16px !important; }
.zs-upload-label { display: block; font-size: 14px; font-weight: 600; color: var(--zs-text); margin-bottom: 10px; }
.zs-upload-box { border: 2px dashed var(--zs-border); border-radius: var(--zs-radius); padding: 30px; text-align: center; transition: var(--zs-transition); position: relative; background: var(--zs-primary-lighter); cursor: pointer; }
.zs-upload-box:hover, .zs-upload-box.zs-dragover { border-color: var(--zs-primary); background: var(--zs-primary-light); }
.zs-upload-content { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.zs-upload-icon-svg { color: var(--zs-primary); }
.zs-file-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.zs-upload-btn { display: inline-block; padding: 10px 28px; background: var(--zs-primary); color: var(--zs-white); border: none; border-radius: var(--zs-radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--zs-transition); position: relative; z-index: 3; }
.zs-upload-btn:hover { background: var(--zs-primary-hover); transform: translateY(-1px); }
.zs-file-name { font-size: 13px; color: var(--zs-text-lighter); }
.zs-drag-text { font-size: 13px; color: var(--zs-text-lighter); margin: 0; }
.zs-upload-preview { margin-top: 12px; padding: 12px 16px; background: var(--zs-primary-light); border-radius: var(--zs-radius); display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--zs-primary); font-weight: 500; }
.zs-upload-preview .zs-remove-upload { margin-left: auto; background: none; border: none; color: var(--zs-danger); cursor: pointer; font-size: 20px; font-weight: 700; padding: 0 4px; line-height: 1; }

/* Cart Table */
.zs-cart-table { background: var(--zs-white); border-radius: var(--zs-radius-lg); box-shadow: var(--zs-shadow); overflow: hidden; border: 1px solid var(--zs-border-light); }
.zs-cart-header { display: grid; grid-template-columns: 44px 80px 1fr 110px 140px 110px; gap: 12px; padding: 14px 24px; background: var(--zs-primary); color: var(--zs-white); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.zs-cart-row { display: grid; grid-template-columns: 44px 80px 1fr 110px 140px 110px; gap: 12px; padding: 16px 24px; align-items: center; border-bottom: 1px solid var(--zs-border-light); transition: var(--zs-transition); }
.zs-cart-row:hover { background: var(--zs-primary-lighter); }
.zs-cart-row:last-child { border-bottom: none; }
.zs-col-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--zs-radius); border: 1px solid var(--zs-border-light); }
.zs-product-name { font-weight: 600; color: var(--zs-dark); font-size: 14px; }
.zs-remove-item { width: 28px; height: 28px; border: none; background: var(--zs-danger); color: var(--zs-white); border-radius: 50%; cursor: pointer; transition: var(--zs-transition); display: flex; align-items: center; justify-content: center; padding: 0; }
.zs-remove-item:hover { background: #c0392b; transform: scale(1.1); }
.zs-remove-item svg { pointer-events: none; }
.zs-mobile-label { display: none; font-weight: 600; color: var(--zs-text-light); margin-right: 8px; }

/* Quantity */
.zs-qty-wrapper { display: inline-flex; align-items: center; border: 2px solid var(--zs-border); border-radius: var(--zs-radius); overflow: hidden; background: var(--zs-white); }
.zs-qty-btn { width: 36px; height: 38px; border: none; background: var(--zs-bg); color: var(--zs-text); cursor: pointer; transition: var(--zs-transition); display: flex; align-items: center; justify-content: center; padding: 0; }
.zs-qty-btn:hover { background: var(--zs-primary); color: var(--zs-white); }
.zs-qty-btn:hover svg { stroke: white; }
.zs-qty-btn svg { pointer-events: none; }
.zs-qty-input { width: 50px !important; text-align: center !important; border: none !important; border-left: 1px solid var(--zs-border) !important; border-right: 1px solid var(--zs-border) !important; font-size: 15px !important; font-weight: 600 !important; padding: 8px 4px !important; -moz-appearance: textfield !important; border-radius: 0 !important; height: 38px !important; background: var(--zs-white) !important; box-shadow: none !important; }
.zs-qty-input::-webkit-outer-spin-button, .zs-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Coupon */
.zs-coupon-section { padding: 20px 24px; background: var(--zs-white); border-radius: var(--zs-radius-lg); box-shadow: var(--zs-shadow); margin-top: 20px; border: 1px solid var(--zs-border-light); }
.zs-coupon-form { display: flex; gap: 10px; flex-wrap: wrap; }
.zs-coupon-input { flex: 1; min-width: 150px; padding: 12px 16px !important; border: 2px solid var(--zs-border) !important; border-radius: var(--zs-radius) !important; font-size: 15px !important; outline: none !important; transition: var(--zs-transition) !important; }
.zs-coupon-input:focus { border-color: var(--zs-primary) !important; box-shadow: 0 0 0 3px rgba(1,154,154,0.15) !important; }
.zs-applied-coupons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zs-coupon-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--zs-primary-light); color: var(--zs-primary); border-radius: 20px; font-size: 13px; font-weight: 600; }
.zs-remove-coupon { background: none; border: none; color: var(--zs-danger); font-size: 16px; cursor: pointer; padding: 0; font-weight: 700; line-height: 1; }

/* Totals */
.zs-totals-table { border-top: 1px solid var(--zs-border-light); }
.zs-total-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--zs-border-light); font-size: 14px; }
.zs-total-label { font-weight: 500; color: var(--zs-text-light); }
.zs-total-value { font-weight: 600; color: var(--zs-text); text-align: right; }
.zs-total-final { border-bottom: none; padding: 18px 0 10px; margin-top: 4px; border-top: 2px solid var(--zs-primary); }
.zs-total-final .zs-total-label { font-size: 18px; font-weight: 700; color: var(--zs-dark); }
.zs-total-final .zs-total-value { font-size: 22px; font-weight: 800; color: var(--zs-primary); }
.zs-free-shipping { color: var(--zs-success); font-weight: 600; }
.zs-discount-value { color: var(--zs-danger); }

/* Order Items */
.zs-order-items-header { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 2px solid var(--zs-primary); font-weight: 700; font-size: 14px; color: var(--zs-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.zs-order-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--zs-border-light); font-size: 14px; }
.zs-oi-qty { color: var(--zs-primary); font-weight: 700; margin-left: 4px; }
.zs-oi-subtotal { font-weight: 600; }

/* Shipping Methods */
.zs-shipping-methods { display: flex; flex-direction: column; gap: 8px; }
.zs-shipping-method { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.zs-shipping-radio { position: absolute; opacity: 0; }

/* Payment Methods */
.zs-payment-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--zs-border-light); }
.zs-payment-title-bar { font-size: 17px; margin-bottom: 16px; }
.zs-payment-method { border: 2px solid var(--zs-border); border-radius: var(--zs-radius); margin-bottom: 10px; transition: var(--zs-transition); overflow: hidden; }
.zs-payment-method.zs-payment-active,
.zs-payment-method:has(.zs-payment-radio:checked) { border-color: var(--zs-primary); background: var(--zs-primary-lighter); }
.zs-payment-label { display: flex !important; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 600; margin: 0 !important; }
.zs-payment-radio { position: absolute; opacity: 0; width: 0; height: 0; }
.zs-payment-title { flex: 1; color: var(--zs-dark); }
.zs-payment-icon img { height: 24px; width: auto; }
.zs-payment-desc { padding: 14px 16px; background: var(--zs-bg); border-top: 1px solid var(--zs-border-light); font-size: 13px; color: var(--zs-text-light); line-height: 1.6; }
.zs-payment-desc p { margin: 0 0 8px; }
.zs-payment-desc p:last-child { margin-bottom: 0; }
.zs-payment-fields input { margin-top: 8px; }

/* Buttons */
.zs-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; font-size: 15px; font-weight: 700; border-radius: var(--zs-radius); border: none; cursor: pointer; transition: var(--zs-transition); font-family: var(--zs-font); text-decoration: none; gap: 8px; white-space: nowrap; }
.zs-btn-primary { background: var(--zs-primary); color: var(--zs-white); box-shadow: 0 4px 12px rgba(1,154,154,0.3); }
.zs-btn-primary:hover { background: var(--zs-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(1,154,154,0.4); color: var(--zs-white); }
.zs-btn-coupon { background: var(--zs-primary); color: var(--zs-white); }
.zs-btn-coupon:hover { background: var(--zs-primary-hover); color: var(--zs-white); }
.zs-btn-update { background: var(--zs-dark); color: var(--zs-white); }
.zs-btn-update:hover { background: #333; color: var(--zs-white); }
.zs-btn-block { width: 100%; }
.zs-btn-place-order { width: 100%; padding: 16px 28px; font-size: 17px; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 16px; }
.zs-btn-place-order svg { pointer-events: none; }
.zs-proceed-checkout { margin-top: 20px; }

/* Toggle fields */
.zs-shipping-fields, .zs-account-fields { padding-top: 20px; margin-top: 16px; border-top: 1px solid var(--zs-border-light); }

/* Empty Cart */
.zs-empty-cart { text-align: center; padding: 60px 20px; background: var(--zs-white); border-radius: var(--zs-radius-lg); box-shadow: var(--zs-shadow); }
.zs-empty-icon { margin-bottom: 16px; }
.zs-empty-cart p { font-size: 18px; color: var(--zs-text-light); margin-bottom: 24px; }

/* Notices */
.woocommerce-message, .woocommerce-info { padding: 14px 20px !important; border-radius: var(--zs-radius) !important; margin-bottom: 20px !important; background: var(--zs-primary-light) !important; color: var(--zs-primary) !important; border-left: 4px solid var(--zs-primary) !important; border-top: none !important; border-right: none !important; border-bottom: none !important; box-shadow: var(--zs-shadow) !important; }
.woocommerce-error { padding: 14px 20px !important; border-radius: var(--zs-radius) !important; margin-bottom: 20px !important; background: #fde8e8 !important; color: var(--zs-danger) !important; border-left: 4px solid var(--zs-danger) !important; border-top: none !important; border-right: none !important; border-bottom: none !important; }
.woocommerce-error li { list-style: none !important; }

/* Loading */
.zs-loading { position: relative; pointer-events: none; opacity: 0.5; }
.zs-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 3px solid var(--zs-border); border-top-color: var(--zs-primary); border-radius: 50%; animation: zs-spin 0.8s linear infinite; z-index: 10; }
@keyframes zs-spin { to { transform: rotate(360deg); } }

/* Toast */
.zs-toast { position: fixed; top: 30px; right: 30px; padding: 14px 24px; border-radius: var(--zs-radius); color: var(--zs-white); font-size: 14px; font-weight: 600; z-index: 999999; box-shadow: var(--zs-shadow-hover); animation: zs-slideIn 0.3s ease; max-width: 400px; font-family: var(--zs-font); }
.zs-toast-success { background: var(--zs-success); }
.zs-toast-error { background: var(--zs-danger); }
@keyframes zs-slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Responsive */
@media (max-width: 992px) {
    .zs-checkout-columns, .zs-cart-content { grid-template-columns: 1fr; }
    .zs-sticky { position: static; }
}

@media (max-width: 768px) {
    .zs-checkout-container, .zs-cart-container { padding: 20px 15px; }
    .zs-page-title { font-size: 24px; }
    .zs-section { padding: 20px 16px; }
    .zs-cart-header { display: none; }
    .zs-cart-row { grid-template-columns: 30px 60px 1fr; gap: 8px 12px; padding: 16px; }
    .zs-col-price, .zs-col-qty, .zs-col-subtotal { grid-column: 3; }
    .zs-mobile-label { display: inline; }
    .zs-col-thumb img { width: 50px; height: 50px; }
    .zs-form-row-first, .zs-form-row-last,
    .zs-checkout-page #billing_first_name_field,
    .zs-checkout-page #billing_last_name_field,
    .zs-checkout-page #shipping_first_name_field,
    .zs-checkout-page #shipping_last_name_field { flex: 0 0 100% !important; max-width: 100% !important; }
    .zs-step-text { display: none; }
    .zs-coupon-form { flex-direction: column; }
    .zs-radio-options { flex-direction: column; gap: 12px; }
    .zs-total-final .zs-total-value { font-size: 18px; }
    .zs-toast { left: 15px; right: 15px; max-width: none; }
}

@media (max-width: 480px) {
    .zs-page-title { font-size: 20px; }
    .zs-section { padding: 16px 14px; border-radius: var(--zs-radius); }
    .zs-section-title { font-size: 17px; }
    .zs-btn-place-order { font-size: 15px; padding: 14px 20px; }
}