
/* YANKEE MOTORS — CUSTOMER EXPERIENCE */

/* Purchase summary overlay */
.ym-purchase-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 24, 39, .58);
  box-sizing: border-box;
  overflow-y: auto;
}

.ym-purchase-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 65px rgba(0,0,0,.18);
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  scrollbar-width: none;
}

.ym-purchase-dialog::-webkit-scrollbar {
  display: none;
}

.ym-purchase-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 9px;
  background: #f5f5f5;
  color: #333;
  font-size: 23px;
  cursor: pointer;
}

.ym-purchase-eyebrow {
  color: #1169c8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.ym-purchase-dialog h2 {
  margin: 13px 35px 7px 0;
  color: #24292e;
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  letter-spacing: -.04em;
}

.ym-purchase-description {
  margin: 0 0 24px;
  color: #777e87;
  font-size: 12px;
  line-height: 1.6;
}

.ym-purchase-rows {
  display: grid;
  gap: 0;
  padding: 7px 17px;
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fafafa;
}

.ym-purchase-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #ebebeb;
}

.ym-purchase-rows > div:last-child {
  border-bottom: none;
}

.ym-purchase-rows span {
  color: #747b83;
  font-size: 11px;
}

.ym-purchase-rows strong {
  color: #252a30;
  font-size: 12px;
  text-align: right;
}

.ym-purchase-note {
  margin: 17px 0;
  color: #828991;
  font-size: 10px;
  line-height: 1.7;
}

.ym-purchase-done {
  width: 100%;
  min-height: 45px;
  border: 0;
  border-radius: 9px;
  background: #1169c8;
  color: white;
  font: 700 12px "Inter", sans-serif;
  cursor: pointer;
}

/* Lightweight account menu */
.ym-account-popup {
  position: fixed;
  z-index: 200001;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 230px;
  padding: 14px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: white;
  box-shadow: 0 12px 35px rgba(0,0,0,.12);
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.ym-account-popup > strong {
  color: #262d34;
  font-size: 13px;
}

.ym-account-popup > small {
  margin-bottom: 11px;
  color: #818992;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.ym-account-popup button {
  width: 100%;
  padding: 12px 9px;
  border: 0;
  border-radius: 8px;
  background: #fafafa;
  color: #30363d;
  font: 600 11px "Inter", sans-serif;
  text-align: left;
  cursor: pointer;
}

.ym-account-popup button:hover {
  background: #f0f0f0;
}

.ym-account-popup button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .ym-purchase-dialog {
    padding: 23px 19px;
    border-radius: 15px;
  }

  .ym-purchase-dialog h2 {
    font-size: 20px;
  }
}
