/*
 * ADH-only confirmation modal for the Extended Warranty widget.
 *
 * Ported verbatim from seel-new/shopify-scripts-solution (branch `test`)
 * projects/worry-free-purchase/ew-widget/adh-confirm-modal/index.css.
 * Do not restyle: this deck is underwriter-facing (ICOBS) copy and layout.
 *
 * Loaded into the modal's own shadow root (see ew-adh-confirm-modal.js), so the
 * rules stay scoped to the widget and cannot leak into the storefront.
 */

.seel_adh_modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  outline: none;
}

.seel_adh_modal[open] {
  display: flex;
}

.seel_adh_modal_hidden {
  display: none !important;
}

.seel_adh_modal--container {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
}

/* ── header bar ── */
.seel_adh_modal--header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.seel_adh_modal--header-bar-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.01em;
}

.seel_adh_modal--close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.seel_adh_modal--close:hover {
  color: #555;
  background: #f2f2f2;
}

/* ── scrollable body ── */
.seel_adh_modal--body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 24px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #222;
}

.seel_adh_modal--title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
  line-height: 1.35;
}

.seel_adh_modal--subtitle {
  font-size: 14px;
  color: #00000099;
  margin: 0 0 16px;
}

/* ── plan cards ── */
.seel_adh_modal--plans {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: 8px;
}

.seel_adh_modal--plan {
  flex: 1;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 20px 10px 10px;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: border-color 0.15s;
  background: #fff;
  box-sizing: border-box;
}

.seel_adh_modal--plan:hover {
  border-color: #888;
}

.seel_adh_modal--plan--selected {
  border-color: #111;
  background: #111;
  color: #fff;
}

.seel_adh_modal--plan--badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  height: 30px;
  line-height: 30px;
  padding: 0 15px;
  border: 1px solid var(--seel-ew-main-color, #000);
  border-radius: 15px;
  background: #fff;
  color: var(--seel-ew-main-color, #000);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.seel_adh_modal--plan--selected .seel_adh_modal--plan--badge {
  background: #fff;
  color: var(--seel-ew-main-color, #000);
}

.seel_adh_modal--plan--term {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.seel_adh_modal--plan--price {
  font-size: 20px;
  font-weight: 700;
}

.seel_adh_modal--ipt {
  font-size: 12px;
  color: #00000080;
  margin: 0 0 16px;
}

.seel_adh_modal--info-intro {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 12px;
  line-height: 20px;
}

.seel_adh_modal--info-intro--faq {
  display: flex;
  align-items: center;
}

.seel_adh_modal--faq-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.seel_adh_modal--faq-link-text {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seel_adh_modal--faq-link:hover,
.seel_adh_modal--faq-link:visited,
.seel_adh_modal--faq-link:active {
  color: inherit;
}

.seel_adh_modal--faq-link-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  cursor: pointer;
}

.seel_adh_modal--faq-link-icon svg {
  width: 14px;
  height: 14px;
}

.seel_adh_modal--faq-link-icon .seel_pdp_modal-icon--faqLink path {
  fill: #00000080!important;
}

/* ── coverage grid ── */
.seel_adh_modal--coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.seel_adh_modal--coverage-col{
  padding: 10px;
  background:#FAFAFA;
}

.seel_adh_modal--coverage-col h4 {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  margin: 0 0 8px;
  text-transform: none;
}

.seel_adh_modal--coverage-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seel_adh_modal--coverage-col li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: #000000CC;
  margin-bottom: 6px;
  line-height: 20px;
}

.seel_adh_modal--coverage-col li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── FAQ accordion ── */
.seel_adh_modal--faq {
  margin-bottom: 16px;
  border-top: 1px solid #eee;
}

.seel_adh_modal--faq-item {
  border-bottom: 1px solid #eee;
}

.seel_adh_modal--faq-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #000;
  font-weight: 400;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding:10px;
}
.seel_adh_modal--close-btn{
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
.seel_adh_modal--close-btn:hover{
  cursor: pointer;
}

.seel_adh_modal--close-btn:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.seel_adh_modal--faq-arrow {
  font-size: 16px;
  transition: transform 0.2s;
  flex-shrink: 0;
  color: #666;
}

.seel_adh_modal--faq-item--open .seel_adh_modal--faq-arrow {
  transform: rotate(180deg);
}

.seel_adh_modal--faq-content {
  display: none;
  padding: 0 15px 12px;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}

.seel_adh_modal--faq-item--open .seel_adh_modal--faq-content {
  display: block;
}

.seel_adh_modal--faq-content ul {
  margin: 4px 0 0 16px;
  padding: 0;
}

.seel_adh_modal--faq-content li {
  margin-bottom: 3px;
  font-size: 13px;
  color: #000000CC;
  line-height: 20px;
}
.seel_adh_modal--faq-q-email,
.seel_adh_modal--faq-q-phone,
.seel_adh_modal--faq-q-alt-format {
  font-weight: 500;
}

.seel_adh_modal--faq-q-email,
.seel_adh_modal--faq-q-phone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.seel_adh_modal--faq-q-email {
  background: #EBF1FF;
}

.seel_adh_modal--faq-q-phone {
  background: #FFEBEB;
}

.seel_adh_modal--faq-q-icon-img {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: block;
}

/* ── eligibility ── */
.seel_adh_modal--eligibility {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 8px;
  margin-bottom: 14px;
}

.seel_adh_modal--eligibility-icon {
  flex-shrink: 0;
  width:58px;
  height:58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFAFA;
  border-radius: 8px;
}

.seel_adh_modal--eligibility-text {
  font-size: 12px;
  color: #333;
  line-height: 1.5;
}

.seel_adh_modal--eligibility-text div {
  display: block;
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 2px;
  color: #000000CC;
}

.seel_adh_modal--eligibility-text small {
  display: block;
  font-size: 12px;
  color: #00000080;
  margin-top: 4px;
}

/* ── legal ── */
.seel_adh_modal--legal {
  font-size: 12px;
  color: #00000080;
  line-height: 16px;
  margin: 0;
}

.seel_adh_modal--legal a {
  color: #333;
  text-decoration: underline;
}

/* ── bottom actions ── */
.seel_adh_modal--actions {
  display: flex;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid #eee;
  flex-shrink: 0;
  background: #fff;
}

.seel_adh_modal--no-protection {
  flex: 1;
  padding: 13px;
  background: #fff;
  color: #111;
  border: 1.5px solid #ccc;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s;
}

.seel_adh_modal--no-protection:hover {
  border-color: #888;
}

.seel_adh_modal--confirm-btn {
  flex: 1;
  padding: 13px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.seel_adh_modal--confirm-btn:hover {
  background: #333;
}
.seel_adh_modal--faq-q-content{
  color:#00000080;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/* ── mobile ── */
@media (max-width: 600px) {
  .seel_adh_modal--container {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    height: 100%;
  }

  .seel_adh_modal--coverage-grid {
    grid-template-columns: 1fr;
  }
}
