/* =========================================================
   収納PRO ゲスト1ページ購入
   対象：create_guest_account / checkout_one?guest_embed=1
========================================================= */

:root {
  --guest-opc-green: #3f7564;
  --guest-opc-teal: #2b9fa0;
  --guest-opc-orange: #d85a24;
  --guest-opc-orange-hover: #bf4a18;
  --guest-opc-border: #cfd6d3;
  --guest-opc-soft: #f6f8f7;
  --guest-opc-text: #222;
}

.guest-onepage,
.guest-onepage * {
  box-sizing: border-box;
}

.guest-onepage {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px 32px;
  color: var(--guest-opc-text);
}

.guest-onepage #createAcctDefaultHeading,
.guest-onepage-embedded #checkoutOneHeading {
  width: 100%;
  margin: 0 0 20px;
  padding: 10px 14px;
  border: 2px solid #222;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.guest-onepage-grid,
.guest-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.guest-onepage-card,
.guest-live-card {
  width: 100%;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 2px solid #222;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.guest-onepage-card__title,
.guest-live-card__title {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.guest-onepage-card__lead {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
}

.guest-onepage-address-fields .requiredNotice,
.guest-onepage-address-fields .secureNotice {
  margin: 0 0 16px;
  font-size: 12px;
}

.guest-onepage-address-fields .formSection {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.guest-onepage-address-fields .sectionTitle {
  margin: 0 0 12px;
  padding: 8px 0;
  border-top: 1px solid #333;
  border-bottom: 0;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.guest-onepage-address-fields .formSection:first-of-type .sectionTitle {
  border-top: 0;
  padding-top: 0;
}

.guest-onepage-address-fields .formRow {
  margin: 0 0 13px;
}

.guest-onepage-address-fields .formRowHalfWrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guest-onepage-address-fields .formHalf {
  min-width: 0;
}

.guest-onepage-address-fields label,
.guest-onepage-address-fields .inputLabel {
  display: block;
  width: 100%;
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.guest-onepage-address-fields input[type="text"],
.guest-onepage-address-fields input[type="email"],
.guest-onepage-address-fields input[type="tel"],
.guest-onepage-address-fields input[type="password"],
.guest-onepage-address-fields select,
.guest-onepage-address-fields textarea {
  display: block;
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #b9c0bd;
  border-radius: 0;
  background: #fff;
  color: #222;
  font-size: 14px;
}

.guest-onepage-address-fields .helpText {
  margin: 4px 0 0;
  color: #666;
  font-size: 11px;
  line-height: 1.55;
}

.guest-onepage-address-fields .required {
  margin-left: 5px;
  color: #d33;
  font-size: 11px;
}

.guest-onepage-address-fields .hiddenCountryField,
.guest-onepage-address-fields #stateLabel:empty,
.guest-onepage-address-fields #state:placeholder-shown + input[type="hidden"] {
  display: none;
}

.guest-onepage-address-fields .privacyBox {
  padding: 10px;
  background: var(--guest-opc-soft);
}

.guest-onepage-address-fields .checkboxRow {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
}

.guest-onepage-address-fields .checkboxRow input {
  margin-top: 3px;
}

.guest-onepage-shipping-fixed,
.guest-live-shipping-fixed {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px solid #222;
}

.guest-onepage-shipping-fixed__title,
.guest-live-shipping-fixed__title {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.guest-onepage-shipping-fixed__row,
.guest-live-shipping-fixed__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.guest-onepage-card__notice {
  margin: 0 0 16px;
  color: #555;
  font-size: 13px;
  line-height: 1.7;
}

.guest-onepage-payment-placeholder label {
  display: block;
  margin: 0 0 18px;
  font-size: 15px;
}

.guest-onepage-payment-placeholder input {
  margin-right: 7px;
}

.guest-onepage-card-placeholder {
  min-height: 72px;
  margin: -8px 0 22px 24px;
  padding: 14px;
  border: 2px solid #222;
  background: #fff;
  color: #555;
}

.guest-onepage-card--coupon,
.guest-onepage-card--order,
.guest-live-card--comments,
.guest-live-card--coupon,
.guest-live-card--order {
  grid-column: 1 / -1;
}

.guest-onepage-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 30px;
}

.guest-onepage-order-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.guest-onepage-order-item__name {
  font-weight: 700;
  line-height: 1.6;
}

.guest-onepage-order-item__attrs {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.7;
}

.guest-onepage-order-item__price {
  white-space: nowrap;
  font-weight: 700;
}

.guest-onepage-order__totals {
  margin: 0;
}

.guest-onepage-order__totals > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 5px 0;
}

.guest-onepage-order__totals dt,
.guest-onepage-order__totals dd {
  margin: 0;
}

.guest-onepage-order__grand {
  margin-top: 6px;
  padding-top: 10px !important;
  border-top: 2px solid #222;
  font-size: 16px;
  font-weight: 700;
}

.guest-onepage-status {
  margin: 4px 0 12px;
  text-align: center;
  font-size: 13px;
}

.guest-onepage-status[data-state="loading"] {
  color: var(--guest-opc-teal);
  font-weight: 700;
}

.guest-onepage-status[data-state="error"] {
  color: #b3261e;
  font-weight: 700;
}

.guest-onepage-submit-preview,
.guest-live-confirm {
  text-align: center;
}

.guest-onepage-confirm,
.guest-onepage-embedded #checkoutOneConfirmButton.pro-opc-confirm-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 340px !important;
  max-width: 100%;
  min-height: 54px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--guest-opc-orange) !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.guest-onepage-confirm:disabled {
  cursor: default;
  opacity: .55;
}

.guest-onepage-messages .messageStackError,
.guest-onepage-messages .messageStackWarning,
.guest-onepage-messages .messageStackCaution {
  margin: 0 0 16px;
  padding: 12px 14px;
}

.guest-onepage-live {
  width: 100%;
}

#guestCheckoutFrame {
  display: block;
  width: 100%;
  min-height: 980px;
  border: 0;
  background: #fff;
}

/* =========================================================
   checkout_one 埋め込み側
========================================================= */

html.guest-onepage-iframe-document,
body.guest-onepage-iframe-body {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  overflow-x: hidden !important;
}

.guest-onepage-embedded {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 4px 24px !important;
  background: #fff;
}

.guest-onepage-embedded #co1-top-message {
  display: none !important;
}

.guest-live-layout {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}

.guest-live-contact {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--guest-opc-soft);
  font-size: 13px;
  line-height: 1.7;
}

.guest-live-address-block fieldset,
.guest-live-card--payment fieldset,
.guest-live-card--comments fieldset,
.guest-live-card--coupon fieldset,
.guest-live-card--order fieldset {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.guest-live-address-block legend,
.guest-live-card--payment legend,
.guest-live-card--comments legend,
.guest-live-card--coupon legend,
.guest-live-card--order legend {
  display: block !important;
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 8px 0 !important;
  border-top: 1px solid #333 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.guest-onepage-embedded #address-form-bill,
.guest-onepage-embedded #address-form-ship {
  display: block !important;
}

.guest-onepage-embedded #address-bill,
.guest-onepage-embedded #address-ship,
.guest-onepage-embedded #opc-bill-edit,
.guest-onepage-embedded #opc-ship-edit,
.guest-onepage-embedded #checkoutOneBillto .opc-buttons,
.guest-onepage-embedded #checkoutOneShipto .opc-buttons,
.guest-onepage-embedded #checkoutOneShippingFlag,
.guest-onepage-embedded .opc-overlay {
  display: none !important;
}

.guest-onepage-embedded #checkoutOneBillto,
.guest-onepage-embedded #checkoutOneShipto {
  position: static !important;
}

.guest-onepage-embedded #address-form-bill label,
.guest-onepage-embedded #address-form-ship label,
.guest-onepage-embedded #address-form-bill .inputLabel,
.guest-onepage-embedded #address-form-ship .inputLabel {
  display: block !important;
  width: 100% !important;
  margin: 0 0 5px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: left !important;
}

.guest-onepage-embedded #address-form-bill input[type="text"],
.guest-onepage-embedded #address-form-bill input[type="tel"],
.guest-onepage-embedded #address-form-bill select,
.guest-onepage-embedded #address-form-ship input[type="text"],
.guest-onepage-embedded #address-form-ship input[type="tel"],
.guest-onepage-embedded #address-form-ship select {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 36px !important;
  margin: 0 0 12px !important;
  padding: 6px 8px !important;
  border: 1px solid #b9c0bd !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.guest-live-different-shipping {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
  font-size: 14px;
  font-weight: 700;
}

.guest-live-different-shipping input {
  width: auto !important;
  margin: 0 !important;
}

.guest-onepage-embedded #checkoutPaymentMethod {
  float: none !important;
  width: 100% !important;
}

.guest-onepage-embedded #checkoutPaymentMethod .custom-control {
  margin: 0 0 14px;
  padding: 0;
}

.guest-onepage-embedded #checkoutPaymentMethod .radioButtonLabel {
  display: inline-block;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.guest-onepage-embedded #checkoutPaymentMethod .ccinfoText,
.guest-onepage-embedded #checkoutPaymentMethod .ccinfo {
  margin: 8px 0 18px 24px !important;
  padding: 12px !important;
  border: 1px solid #bbb !important;
  background: #fff !important;
}

.guest-onepage-embedded #checkoutPaymentMethod .ccinfo input,
.guest-onepage-embedded #checkoutPaymentMethod .ccinfo select {
  max-width: 100% !important;
}

.guest-onepage-embedded .guest-live-card--comments textarea {
  width: 100% !important;
  min-height: 80px !important;
}

.guest-onepage-embedded #cartContentsDisplay {
  width: 100% !important;
  border-collapse: collapse;
}

.guest-onepage-embedded #cartContentsDisplay th,
.guest-onepage-embedded #cartContentsDisplay td {
  padding: 9px 8px !important;
  border-bottom: 1px solid #ddd !important;
  vertical-align: top;
}

.guest-onepage-embedded #cartOrderTotals td {
  border-bottom: 0 !important;
}

.guest-live-confirm {
  margin-top: 6px;
}

.guest-live-confirm > p {
  margin: 0 0 12px;
  font-size: 13px;
}

.guest-onepage-embedded #checkoutOneSubmit {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

.guest-onepage-embedded #checkoutOneEmail {
  float: none !important;
  margin-top: 10px;
  text-align: center;
}

@media screen and (max-width: 700px) {
  .guest-onepage,
  .guest-onepage-embedded {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  .guest-onepage-grid,
  .guest-live-grid,
  .guest-onepage-order {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .guest-onepage-card,
  .guest-live-card {
    padding: 14px;
  }

  .guest-onepage-address-fields .formRowHalfWrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .guest-onepage-order-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .guest-onepage-order-item__price {
    grid-column: 2;
    text-align: right;
  }

  .guest-onepage-order__totals {
    width: 100%;
  }

  #guestCheckoutFrame {
    min-height: 1250px;
  }
}

.guest-opc-required-review-marker {
  display: none !important;
}
