/* =====================================================================
   Enquire Cart AES v2 – Frontend Styles
   ===================================================================== */

:root {
    --aes-green: #113254;
    --aes-green-dark: #2E5F7F;
    --aes-green-light: #2e5f7f54;
    --aes-green-mid: #2e5f7f4d;
    --aes-red: #dc3545;
    --aes-text: #1a1a1a;
    --aes-muted: #6c757d;
    --aes-border: #e0e0e0;
    --aes-radius: 10px;
    --aes-shadow: 0 8px 40px rgba(0,0,0, 0.0);
    --aes-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Button ───────────────────────────────────────────────────────── */
.aes-ec-btn-wrap {
    display: inline-block;
    margin: 10px 0;
}

body .aes-ec-btn-wrap .aes-ec-btn {
    padding: 13px 26px;
	font-family: var(--e-global-typography-secondary-font-family);
       font-size: var(--e-global-typography-964f0c9-font-size);
    font-weight: var(--e-global-typography-964f0c9-font-weight);
    line-height: var(--e-global-typography-964f0c9-line-height);
        color: var(--e-global-color-secondary);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--e-global-color-primary);
    border-radius: 33px 33px 33px 33px;
    padding: 18px 030px 18px 30px;
    cursor: pointer;
    transition: all .2s ease;
}

.aes-ec-btn-icon { font-size: 0; line-height: 1; }

/* Filled */
body .aes-ec-btn-wrap .aes-ec-btn.aes-ec-btn--default {
    background: var(--aes-green);
    color: #fff ;
}
body .aes-ec-btn-wrap .aes-ec-btn.aes-ec-btn--default:hover {
      background-color: #FFFFFF00;
    color: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25098039215686274);
}
.aes-ec-btn-wrap, .aes-ec-btn-wrap button {
    width: 100%;
    text-align: center;
}
/* Outline */
.aes-ec-btn--outline {
    background: transparent;
    color: var(--aes-green) !important;
}
.aes-ec-btn--outline:hover {
    background: var(--aes-green-light);
    transform: translateY(-2px);
}

/* Ghost */
.aes-ec-btn--ghost {
    background: none;
    border: none;
    color: var(--aes-green) !important;
    padding-left: 0;
    text-decoration: underline;
}
.aes-ec-btn--ghost:hover { color: var(--aes-green-dark) !important; }

/* ── Overlay ──────────────────────────────────────────────────────── */
.aes-ec-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 999990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
}

.aes-ec-overlay.aes-is-open {
    display: flex;
    animation: aes-fade-in .2s ease;
}

@keyframes aes-fade-in  { from { opacity: 0; }           to { opacity: 1; }          }
@keyframes aes-slide-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media(width:768px){
	body .aes-ec-btn-wrap .aes-ec-btn {
		padding: 9px 12px;}
}
/* ── Popup Box ────────────────────────────────────────────────────── */
.aes-ec-popup {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--aes-shadow);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: aes-slide-up .25s ease;
    font-family: var(--aes-font);
    scrollbar-width: thin;
	margin: 0 auto;
}

/* ── Popup Header ─────────────────────────────────────────────────── */
.aes-ec-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--aes-border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    border-radius: 14px 14px 0 0;
}
.aes-ec-popup-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.aes-ec-popup-icon {
	display: none;
    font-size: 22px;
    background: var(--aes-green-light);
    border-radius: 8px;
    padding: 6px 8px;
    line-height: 1;
}
body  h2.aes-ec-popup-title {
    margin: 0 !important;
       font-family: var(--e-global-typography-e9d643d-font-family), Sans-serif;
    font-size: 24px;
    font-weight: var(--e-global-typography-e9d643d-font-weight);
    line-height: var(--e-global-typography-e9d643d-line-height);
}

.aes-ec-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--aes-muted);
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.aes-ec-close-btn:hover { background: #f0f0f0; color: var(--aes-text); }

/* ── Product Info Bar ─────────────────────────────────────────────── */
.aes-ec-product-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--aes-green-light);
    border-bottom: 1px solid var(--aes-green-mid);
}
.aes-ec-product-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--aes-green-mid);
    flex-shrink: 0;
}
.aes-ec-product-meta { flex: 1; min-width: 0; }
.aes-ec-product-meta strong {
    display: block;
     font-family: var(--e-global-typography-19eec0a-font-family), Sans-serif;
    font-size: var(--e-global-typography-19eec0a-font-size);
    line-height: var(--e-global-typography-19eec0a-line-height);
    color: var(--e-global-color-text);
    font-weight: 700;
    color: var(--aes-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aes-ec-sku { font-size: 12px; color: var(--aes-muted); }
.aes-ec-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--aes-green);
    flex-shrink: 0;
}
body .elementor-kit-9 a:hover {
    font-size: inherit;
    line-height: inherit;
}
/* ── Form ─────────────────────────────────────────────────────────── */
#aes-ec-form-wrap { padding: 20px 24px 24px; }

.aes-ec-form-intro {
    color: var(--aes-muted);
    margin: 0 0 18px;
    font-size: 14px;
}

.aes-ec-row        { margin-bottom: 14px; }
.aes-ec-two-col    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.aes-ec-field { display: flex; flex-direction: column; }

.aes-ec-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--aes-text);
    margin-bottom: 5px;
}
.aes-req { color: var(--aes-red); }

.aes-ec-field input[type="text"],
.aes-ec-field input[type="email"],
.aes-ec-field input[type="tel"],
.aes-ec-field input[type="number"],
.aes-ec-field textarea {
    padding: 10px 13px;
    border: 1.5px solid var(--aes-border);
    border-radius: 7px;
    font-size: 14px;
    font-family: var(--aes-font);
    color: var(--aes-text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
}
.aes-ec-field input:focus,
.aes-ec-field textarea:focus {
    outline: none;
    border-color: var(--aes-green);
    box-shadow: 0 0 0 3px rgba(44,122,75,.12);
}
.aes-ec-field input.aes-invalid,
.aes-ec-field textarea.aes-invalid {
    border-color: var(--aes-red);
    box-shadow: 0 0 0 3px rgba(220,53,69,.1);
}

.aes-error {
    font-size: 12px;
    color: var(--aes-red);
    margin-top: 3px;
    min-height: 16px;
    display: block;
}

/* Quantity control */
.aes-ec-qty-field label { margin-bottom: 6px; }
.aes-ec-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--aes-border);
    border-radius: 7px;
    overflow: hidden;
    width: max-content;
}
.aes-qty-btn {
    width: 35px;
    min-width: 60px;
    height: 48px;
    background: transparent;
    border: none;
    color: var(--aes-green);
    font-size: 20px;
    cursor: pointer;
    transition: background .15s;
    font-weight: 700;
    padding: 12px;
}
.aes-qty-btn:hover { background: var(--aes-green); }
.aes-ec-qty-control input[type="number"] {
    width: 56px;
    /* border-left: 1px solid var(--aes-border); */
    /* border-right: 1px solid var(--aes-border); */
    border-radius: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    padding: 0;
    height: 40px;
    border: none;
    box-shadow: none;
}
.aes-ec-qty-control input:focus { box-shadow: none; border-color: var(--aes-border); }

/* Privacy */
.aes-ec-privacy-field .aes-ec-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    color: var(--aes-muted);
}
.aes-ec-privacy-field input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
    height: 19px;
}
.aes-ec-privacy-field a, .aes-ec-privacy-field a:hover { 
	font-family: var( --e-global-typography-text-font-family ), Sans-serif !important;
	    font-size: 14px !important;
	line-height: 1.5 !important;
	color: var(--aes-green); 
font-weight: 500 !important;
}

/* Submit */
.aes-ec-submit-row { margin-top: 4px; margin-bottom: 0; }
.aes-ec-submit-btn {
	width: 100% ;
     padding: 13px 26px;
	font-family: var(--e-global-typography-secondary-font-family);
       font-size: var(--e-global-typography-964f0c9-font-size);
    font-weight: var(--e-global-typography-964f0c9-font-weight);
    line-height: var(--e-global-typography-964f0c9-line-height);
        color: var(--e-global-color-secondary);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--e-global-color-primary);
    border-radius: 33px 33px 33px 33px;
    padding: 18px 030px 18px 30px;
    cursor: pointer;
    transition: all .2s ease;
}
.aes-ec-submit-btn:hover:not(:disabled) {
    background-color: #FFFFFF00;
    color: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25098039215686274);
}
.aes-ec-submit-btn:disabled { opacity: .65; cursor: not-allowed; }

/* Spinner animation */
.aes-spin { animation: aes-rotate .8s linear infinite; display: block; }
@keyframes aes-rotate { to { transform: rotate(360deg); } }

/* ── Success State ────────────────────────────────────────────────── */
.aes-ec-success-state {
    text-align: center;
    padding: 48px 32px;
}
.aes-ec-success-icon {
	display: none;
    font-size: 56px;
    margin-bottom: 16px;
    animation: aes-pop .4s ease;
}
@keyframes aes-pop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.aes-ec-success-state h3 {
	font-family: var(--e-global-typography-secondary-font-family) !important;
    font-size: 22px;
    color: var(--aes-green);
    margin: 0 0 10px;
}
.aes-ec-success-state p {
    color: var(--aes-muted);
    margin: 0 0 24px;
}
.aes-ec-close-btn-alt {
    display: none;
    padding: 12px 30px;
    background: var(--aes-green-light);
    color: var(--aes-green);
    border: 2px solid var(--aes-green-mid);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--aes-font);
    transition: background .15s;
}
.aes-ec-close-btn-alt:hover { background: var(--aes-green-mid); }

/* ── Utility ──────────────────────────────────────────────────────── */
.aes-hidden { display: none !important; }

/* ── Body lock when popup open ────────────────────────────────────── */
body.aes-popup-open { overflow: hidden; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media ( max-width: 600px ) {
    .aes-ec-two-col    { grid-template-columns: 1fr; }
    .aes-ec-popup      { border-radius: 10px 10px 0 0; max-height: 95vh; }
    .aes-ec-overlay    { align-items: flex-end; padding: 0; }
    .aes-ec-product-bar { gap: 8px; }
    #aes-ec-form-wrap  { padding: 16px; }
    .aes-ec-popup-header { padding: 16px; }
}
