input::placeholder,
textarea::placeholder {
  color: #a0a0a0;
  font-family: inherit;
  font-weight: 400;
}

/* =========================
   Layout
========================= */

.checkout {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.checkout .products__ttl {
  margin: 60px 20px 0;
}

.checkout__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   Section title
========================= */

.co__subttl,
.coSum__title {
  font-size: 2rem;
  font-weight: var(--fontMedium);
  margin-top: 60px;
}

.coSum__title {
  margin: 60px 20px 0;
}

.coCautionlabel {
  margin: 0 20px 15px;
  font-size: 1rem;
  color: var(--accentColor);
}

/* =========================
   Fieldset / form controls
========================= */

.coFieldset {
  display: grid;
  margin-top: 30px;
  border: none;
  border-radius: 8px;
  background: var(--bg1);
}

.coLegend {
  margin-bottom: 8px;
  font-size: 1.6rem;
  font-weight: var(--fontMedium);
}

.coCtl {
  display: grid;
  width: 100%;
  margin-bottom: 10px;
}

.coCtl > span {
  font-size: 1.2rem;
  color: var(--textColor);
}

.coCtl input,
.coCtl select,
.coCtl textarea {
  width: 100%;
  border: 1px solid var(--textGlayColor);
  border-radius: 5px;
  font-size: 1.4rem;
  background: #fff;
  color: var(--textColor);
}

.coCtl input,
.coCtl select {
  height: 40px;
  padding: 5px 10px;
}

.coCtl select {
  height: 44px;
  appearance: none;
  cursor: pointer;
  position: relative;
  color: #a0a0a0;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23444444' stroke-width='1' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><polyline points='6,8 10,12 14,8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 20px 20px;
}

.coCtl textarea {
  min-height: 88px;
  padding: 8px 10px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
}

.coGrid2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.coGridCard {
  display: grid;
  grid-template-columns: 80px 80px;
  gap: 20px;
}

.coGridCard input,
.coGridCard select {
  height: 36px;
  border-radius: 8px;
  font-size: 1.4rem;
}

.coGridCard .is-wide {
  grid-column: span 2;
}

/* =========================
   Radio / checkbox
========================= */

.coRadio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.coChk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 1.4rem;
}

.svgRadio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.svgRadio input[type="radio"] {
  display: none;
}

.svgRadio__icon {
  display: inline-block;
  width: 20px;
  height: 20px;
}

.svgRadio__dot {
  opacity: 0;
  transition: opacity 0.2s;
}

.svgRadio input[type="radio"]:checked + .svgRadio__icon .svgRadio__dot {
  opacity: 1;
}

input[type="checkbox"] {
  appearance: none;
  display: inline-block;
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid #777;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
  transition:
    background 0.2s,
    border-color 0.2s;
}

input[type="checkbox"]:checked {
  background: #444;
  border-color: #444;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 13px;
  height: 7px;
  border-left: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(-45deg);
}

/* =========================
   Shipping / payment box
========================= */

.coPayBox,
.coShipBox {
  overflow: hidden;
  border: 1px solid var(--textGlayColor);
  border-radius: 8px;
  background: #fff;
}

.coPayRow,
.coShipRow {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--textGlayColor);
  background: #fff;
}

.coPayRow {
  cursor: pointer;
}

.coPayRow:first-child,
.coShipRow:first-child {
  border-radius: 8px 8px 0 0;
}

.coPayRow:last-child,
.coShipRow:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.coPayRow:not(:first-child):not(:last-child),
.coShipRow:not(:first-child):not(:last-child) {
  border-radius: 0;
}

.coPayRow input[type="radio"],
.coShipRow input[type="radio"] {
  transform: translateY(1px);
}

.coPayRow span,
.coShipRow span {
  font-size: 1.4rem;
  color: var(--textColor);
}

.coPayLabel {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  cursor: pointer;
}

.coPayDesc {
  margin: 0;
  padding: 16px;
  border: none;
  border-bottom: 1px solid var(--textGlayColor);
  background: #fff;
  font-size: 1.4rem;
  color: var(--textColor);
}

.coPayDesc:last-child {
  border-bottom: none;
}

.coCard {
  display: block;
  padding: 10px 20px;
  border-bottom: 1px solid var(--textGlayColor);
}

.coCard[hidden] {
  display: none;
}

.coCard .coCtl select[name="cardYear"],
.coCard .coCtl select[name="cardMonth"] {
  margin: 0;
  color: #a0a0a0;
  font-size: 1.4rem;
  font-weight: 400;
  vertical-align: bottom;
}

.coSaveCard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.coSetRow {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.coSetBtn,
.address__btn {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: var(--mainColor);
  color: #fff;
  font-size: 1.4rem;
}

.coSetBtn {
  min-width: 100px;
}

.address__btn {
  width: 100px;
  padding: 0 10px;
  font-size: 1.2rem;
  border: 1px solid var(--mainColor);
}

.coSetBtn:active {
  transform: translateY(1px);
}

/* =========================
   Order summary
========================= */

.coSummary {
  background-color: #f5f5f5;
}

.coItems {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.coItem {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
  background-color: #f5f5f5;
}

.coItem__thumb img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.coItem .coCtl {
  display: flex;
  align-items: flex-end;
  margin-bottom: 0;
}

.coItem .coCtl > span,
.coItem .coCtl > select,
.coItem .coCtl > span:last-child {
  line-height: 1.2;
}

.coItem__name {
  font-size: 1.4rem;
}

.coItem__unit,
.coItem__tax {
  font-size: 1.2rem;
}

.coItem__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.coQtyBtn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: #e9e9e9;
}

.coQtyVal {
  font-size: 1.2rem;
}

.coItem__subtotal {
  display: grid;
  grid-auto-flow: column;
  align-items: baseline;
  justify-content: end;
  gap: 5px;
}

.coItem__amt {
  font-size: 2rem;
  font-weight: 700;
}

.coItem .coCtl select[name="itemCount"] {
  width: 50px;
  height: 30px;
  margin: 0;
  appearance: none;
  border: 1px solid var(--textGlayColor);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--textColor);
  vertical-align: bottom;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23444444' stroke-width='1' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><polyline points='6,8 10,12 14,8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 20px 20px;
}

/* =========================
   Coupon / total
========================= */

.coCoupon {
  display: block;
  padding: 30px 20px;
}

.coCoupon span {
  font-size: 1.2rem;
}

.couponBox {
  display: flex;
  justify-content: space-between;
}

.coCoupon__input {
  width: 200px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--textGlayColor);
  border-radius: 5px;
}

.coCoupon__btn {
  width: 100px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--mainColor);
  border-radius: 5px;
  background: var(--mainColor);
  color: #fff;
}

.coTotal {
  padding: 20px;
}

.coTotal .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  margin-top: 5px;
}

.coTotal .row.total {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--textGlayColor);
}

.coTotal dt,
.coTotal dd {
  font-size: 1.4rem;
}

.coTotal .row.total dd {
  font-size: 2rem;
  font-weight: 700;
}

.coDesc {
  padding: 10px 20px;
  margin-bottom: 30px;
  font-size: 1rem;
}

/* =========================
   Actions
========================= */

.coOpts {
  margin: 10px 0;
}

.coOrderBtn {
  background-color: var(--accentColor);
}

.coOrderBtn::before {
  border-color: var(--accentColor);
}

.coBackBox {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.coBack {
  display: flex;
  justify-content: center;
  padding: 0 auto;
  font-size: 1.4rem;
  text-decoration: none;
}

.coBack span {
  display: block;
  box-sizing: border-box;
  width: 0.65em;
  height: 0.65em;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(225deg) translateY(-0.6em);
  transform-origin: center;
  line-height: 1;
}

/* =========================
   Stepper
========================= */

.stepper {
  position: relative;
}

.stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stepper__dot {
  width: 20px;
  height: 20px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #ccc;
}

.stepper__dot.is-done {
  background: #8bc34a;
}

.stepper__dot.is-current {
  background: #e57373;
}

.stepper__label {
  font-size: 1.2rem;
  color: #444;
  text-align: center;
}

.stepper__lines {
  position: absolute;
  top: 30px;
  left: 80px;
  width: 80%;
  height: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.stepper__line {
  flex: 1;
  height: 2px;
  margin: 0 10px;
  align-self: center;
  background: #ccc;
}

/* =========================
   Focus / autofill
========================= */

.coCtl input:focus,
.coCtl input:active,
.coCtl select:focus,
.coCtl select:active,
.coFieldset textarea:focus,
.coFieldset textarea:active,
.coCoupon__input:focus,
.coCoupon__input:active {
  border-color: var(--mainColor) !important;
  outline: none;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  border-color: var(--mainColor) !important;
}

/* =========================
   Footer
========================= */

.footer__checkout {
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 40px auto 0;
  padding: 20px;
  border-top: 1px solid var(--lightGray);
}

.footerNav__checkout {
  max-width: 960px;
  margin: 0 auto;
}

.footerNav__checkout ul {
  list-style: none;
  padding: 5px 0 10px;
}

.footerNav__checkout li {
  margin-top: 5px;
}

.footerNav__checkout a {
  font-size: 1.3rem;
  color: var(--textColor);
  text-decoration: none;
}
