:root {
    --id-green: #2f874b;
    --id-green-dark: #246f3c;
    --id-soft-green: #edf7f0;
    --id-border: #d8ded9;
    --id-text: #151a16;
    --id-muted: #667067;
    --id-red: #d33637;
}

.id-at,
.id-at *,
.id-at-product,
.id-at-product * { box-sizing: border-box; }

/* ---------------- Product module ---------------- */
.id-at-product {
    margin: 20px 0 10px;
    color: var(--id-text);
    font-family: inherit;
}

.id-at-product__section {
    padding: 22px 0;
    border-top: 1px solid #e1e5e2;
}

.id-at-product__section-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.id-at-product__section-head h3 {
    margin: 0 0 5px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.id-at-product__section-head p {
    margin: 0;
    color: #313832;
    line-height: 1.55;
    font-size: 15px;
}

.id-at-product__required { color: #d33131; }

.id-at-product__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f4f0e9;
    color: #222;
}

.id-at-product__icon--blue { background: #edf6fb; }
.id-at-product__icon svg { width: 26px; height: 26px; }

.id-at-product__check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0 18px 64px;
    cursor: pointer;
    line-height: 1.5;
    font-size: 15px;
}

.id-at-product__check-row input,
.id-at-product__radio-row input {
    flex: 0 0 auto;
    width: 19px !important;
    height: 19px !important;
    margin: 2px 0 0 !important;
    accent-color: var(--id-green);
}

.id-at-product__perilex-card {
    margin-left: 64px;
    padding: 20px;
    border: 1.5px solid #58a16c;
    border-radius: 8px;
    background: #fff;
}

.id-at-product__perilex-main { display: flex; gap: 16px; align-items: flex-start; }
.id-at-product__status-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e6f4e9;
    color: var(--id-green);
    font-size: 26px;
    font-weight: 900;
}

.id-at-product__perilex-copy { flex: 1; min-width: 0; }
.id-at-product__perilex-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.id-at-product__perilex-title-row h4 { margin: 1px 0 4px; font-size: 19px; font-weight: 800; }
.id-at-product__perilex-copy p { margin: 0 0 14px; line-height: 1.5; font-size: 15px; color: #333a34; }
.id-at-product__done-badge { padding: 3px 8px; border-radius: 999px; background: #e7f6eb; color: #236d3b; font-size: 12px; font-weight: 800; }

.id-at-product__start-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 44px;
    padding: 10px 18px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: var(--id-green) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer;
}
.id-at-product__start-btn:hover { background: var(--id-green-dark) !important; }
.id-at-product__start-btn span:last-child { font-size: 27px; line-height: .7; font-weight: 400; }

.id-at-product__completed-summary { margin-top: 10px; color: #27673a; font-size: 13px; font-weight: 700; }

.id-at-product__perilex-note {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #d8ded9;
    color: #3f4740;
    font-size: 13px;
    line-height: 1.45;
}
.id-at-product__info-icon {
    display: grid;
    place-items: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border: 2px solid #659b74;
    border-radius: 50%;
    color: #497f58;
    font-weight: 900;
    font-family: Georgia, serif;
}

.id-at-product__delivery-content { flex: 1; }
.id-at-product__radio-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 0;
    cursor: pointer;
    line-height: 1.45;
    font-size: 15px;
}
.id-at-product__radio-row em { color: #777; font-style: normal; white-space: nowrap; }

.id-at-product__stock {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0 24px;
    padding: 12px 16px;
    border-radius: 5px;
    background: var(--id-green);
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}
.id-at-product__stock-check {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: var(--id-green);
    font-size: 20px;
    font-weight: 900;
}

.id-at-product__totals { margin: 0 0 16px; }
.id-at-product__totals > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
    font-size: 15px;
    font-weight: 700;
}
.id-at-product__totals strong { color: #cf3034; white-space: nowrap; }
.id-at-product__grand-total { border-top: 1px solid #e2e5e2; margin-top: 5px; padding-top: 11px !important; font-size: 16px !important; }

.id-at-product__field-error,
.id-at-product__submit-error { color: #b32424; font-size: 13px; font-weight: 700; line-height: 1.4; }
.id-at-product__field-error { margin: 8px 0 0 64px; }
.id-at-product__submit-error { margin: 0 0 12px; }

.id-at-product-form .single_add_to_cart_button {
    width: 100% !important;
    min-height: 54px !important;
    border-radius: 5px !important;
    background: var(--id-red) !important;
    border-color: var(--id-red) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}
.id-at-product-form .single_add_to_cart_button:hover { filter: brightness(.94); }

/* ---------------- Modal ---------------- */
.id-at-modal[hidden] { display: none !important; }
.id-at-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 18px;
}
.id-at-modal__backdrop { position: absolute; inset: 0; background: rgba(16, 20, 17, .66); backdrop-filter: blur(2px); }
.id-at-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(920px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border-radius: 18px;
    background: #f7f8f6;
    box-shadow: 0 25px 80px rgba(0,0,0,.3);
}
.id-at-modal__close {
    position: sticky;
    float: right;
    top: 14px;
    right: 14px;
    z-index: 9;
    width: 42px;
    height: 42px;
    margin: 14px 14px -56px 0;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
html.id-at-modal-open,
body.id-at-modal-open { overflow: hidden !important; }
.id-at--modal-tool .id-at__shell { border: 0; border-radius: 18px; }

/* ---------------- Perilex tool ---------------- */
.id-at {
    --id-green: #2d7d46;
    --id-green-dark: #236538;
    --id-soft-green: #edf6ef;
    --id-text: #151815;
    --id-muted: #697069;
    width: 100%;
    color: var(--id-text);
    font-family: inherit;
}
.id-at__shell { max-width: 780px; margin: 0 auto; padding: 28px 18px 32px; background: #f7f8f6; border-radius: 18px; border: 1px solid #ecefec; }
.id-at__topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.id-at__brand { font-size: 14px; font-weight: 900; letter-spacing: .04em; }
.id-at__subtitle, .id-at__step-label { margin-top: 4px; font-size: 13px; color: #697069; }
.id-at__progress { height: 4px; margin-bottom: 28px; overflow: hidden; border-radius: 8px; background: #dde2dd; }
.id-at__progress span { display: block; width: 25%; height: 100%; background: var(--id-green); transition: width .25s ease; }
.id-at__step[hidden] { display: none !important; }
.id-at__step h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; font-weight: 900; }
.id-at__step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.id-at__lead { margin: 0 0 24px; color: #596159; line-height: 1.6; font-size: 15px; }
.id-at__card { margin: 0 0 20px; padding: 22px; border: 1px solid #d9ded9; border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.035); }
.id-at__card--center { text-align: center; }
.id-at__intro-grid { display: grid; grid-template-columns: minmax(190px, 252px) 1fr; gap: 24px; align-items: center; }
.id-at__socket-card { width: 100%; padding: 14px; border: 1px solid #d6d2c9; border-radius: 12px; background: #f3f1eb; text-align: center; }
.id-at__eyebrow { margin-bottom: 10px; color: #646b64; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
/* Keep the photo and SVG on the same square, even with theme/shortcode spacing. */
.id-at .id-at__example-socket,
.id-at .id-at__socket-visual { position: relative; aspect-ratio: 1 / 1; padding: 0; border: 0; overflow: hidden; line-height: 0; }
.id-at .id-at__socket-image,
.id-at .id-at__socket-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; object-fit: contain; }
.id-at .id-at__example-labels,
.id-at .id-at__socket-overlay { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; pointer-events: none; }
.id-at .id-at__example-socket p,
.id-at .id-at__socket-visual p { margin: 0; padding: 0; line-height: 0; }
.id-at .id-at__example-socket br,
.id-at .id-at__socket-visual br { display: none; }
.id-at .id-at__example-label,
.id-at .id-at__live-letter { fill: #111; font: 900 64px Arial, sans-serif; text-anchor: middle; dominant-baseline: central; letter-spacing: 0; word-spacing: 0; paint-order: stroke; stroke: #fff; stroke-width: 8px; stroke-linejoin: round; }
.id-at__intro-copy p { margin: 0; color: #616861; line-height: 1.55; }
.id-at__choices, .id-at__nav { display: flex !important; flex-wrap: nowrap !important; gap: 12px !important; width: 100% !important; }
.id-at__choices > *, .id-at__nav > * { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; }
.id-at__btn, .id-at__mini-btn { appearance: none; -webkit-appearance: none; font-family: inherit; cursor: pointer; transition: transform .12s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.id-at__btn { min-height: 52px; padding: 11px 16px; border-radius: 10px; font-size: 15px; font-weight: 800; }
.id-at__btn:hover, .id-at__mini-btn:hover { transform: translateY(-1px); }
.id-at__btn--primary { border: 1px solid var(--id-green); background: var(--id-green); color: #fff; }
.id-at__btn--primary:hover { background: var(--id-green-dark); border-color: var(--id-green-dark); }
.id-at__btn--secondary { border: 1px solid #b7bdb7; background: #fff; color: var(--id-text); }
.id-at__btn--full { width: 100% !important; }
.id-at__socket-select-wrap { max-width: 620px; margin: 0 auto; }
.id-at__socket-visual { width: min(100%, 430px); margin: 0 auto 22px; }
.id-at__socket-overlay text { fill: #fff; font: 900 42px Arial, sans-serif; text-anchor: middle; dominant-baseline: central; letter-spacing: 0; word-spacing: 0; }
.id-at__socket-number circle, .id-at__pin circle { fill: #050505; stroke: #fff; stroke-width: 8px; }
.id-at__pin { pointer-events: auto; cursor: pointer; outline: none; }
.id-at__pin.is-selected circle { fill: var(--id-green); }
.id-at__pin:focus-visible circle { stroke: #71b889; stroke-width: 14px; }
.id-at__live-letter { display: none; }
.id-at__live-letter.is-visible { display: block !important; }
.id-at__contact-list { display: grid; gap: 9px; }
.id-at__contact-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid #e6e9e6; border-radius: 10px; }
.id-at__nl-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.id-at__mini-btn { min-width: 54px; min-height: 40px; border: 1px solid #b8bdb8; border-radius: 8px; background: #fff; color: var(--id-text); font-weight: 800; }
.id-at__mini-btn.is-selected { border-color: var(--id-green); background: var(--id-soft-green); color: var(--id-green-dark); }
.id-at__validation { min-height: 20px; margin-top: 10px; color: #b12f2f; font-size: 13px; }
.id-at__selection-text { min-height: 22px; margin: 3px 0 14px; color: #626962; font-size: 14px; }
.id-at__remeasure { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--id-soft-green); color: #36543d; text-align: left; line-height: 1.5; }
.id-at__success { padding: 24px; margin-bottom: 18px; border-radius: 14px; background: var(--id-soft-green); }
.id-at__success h2 { margin-bottom: 8px; }
.id-at__success p { margin: 0; color: #4e6554; }
.id-at__check { margin-bottom: 8px; color: var(--id-green); font-size: 40px; line-height: 1; }
.id-at__summary { display: grid; gap: 7px; margin-top: 12px; }
.id-at__summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid #edf0ed; font-size: 14px; }
.id-at__summary-row span { color: #737a73; }
.id-at__summary-row strong { text-align: right; }

@media (max-width: 700px) {
    .id-at-product__section-head { gap: 12px; }
    .id-at-product__icon { flex-basis: 42px; width: 42px; height: 42px; }
    .id-at-product__check-row, .id-at-product__perilex-card, .id-at-product__field-error { margin-left: 0; }
    .id-at-product__perilex-card { padding: 16px; }
    .id-at-product__perilex-main { gap: 12px; }
    .id-at-product__status-icon { flex-basis: 44px; width: 44px; height: 44px; font-size: 22px; }
    .id-at-product__radio-row span { flex: 1; }
    .id-at-modal { padding: 8px; }
    .id-at-modal__dialog { max-height: calc(100vh - 16px); border-radius: 14px; }
    .id-at--modal-tool .id-at__shell { border-radius: 14px; padding-top: 64px; }
    .id-at__shell { padding: 22px 14px 26px; }
    .id-at__intro-grid { grid-template-columns: 1fr; }
    .id-at__socket-card { max-width: 360px; margin: 0 auto; }
    .id-at__contact-row { align-items: flex-start; flex-direction: column; }
    .id-at__nl-buttons { width: 100%; }
    .id-at__mini-btn { flex: 1; }
}

@media (max-width: 430px) {
    .id-at-product__section-head p, .id-at-product__check-row, .id-at-product__radio-row { font-size: 14px; }
    .id-at-product__perilex-main { display: block; }
    .id-at-product__status-icon { margin-bottom: 10px; }
    .id-at-product__totals > div { font-size: 14px; }
    .id-at__choices, .id-at__nav { gap: 8px !important; }
    .id-at__btn { padding-left: 9px; padding-right: 9px; font-size: 13px; }
    .id-at__summary-row { flex-direction: column; gap: 3px; }
    .id-at__summary-row strong { text-align: left; }
}
