/* NeNashi checkout v1.0.1 — targeted corrections for shipping, payment and cart controls. */

/* Do not turn compact cart controls into full-size checkout buttons. */
.route-checkout-onepcheckout #onepcheckout button:not(.btn-primary):not(#button-register):not(.button-confirm),
.route-checkout-onepcheckout #onepcheckout .input-group-btn .btn,
.route-checkout-onepcheckout #onepcheckout .btn-number,
.route-checkout-onepcheckout #onepcheckout .btn-update,
.route-checkout-onepcheckout #onepcheckout .btn-remove {
  min-width: 38px !important;
  width: auto !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  line-height: 40px !important;
}

.route-checkout-onepcheckout #onepcheckout .input-group,
.route-checkout-onepcheckout #onepcheckout .quantity,
.route-checkout-onepcheckout #onepcheckout .product-quantity {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  max-width: 160px;
  gap: 4px;
}

.route-checkout-onepcheckout #onepcheckout .input-group .form-control,
.route-checkout-onepcheckout #onepcheckout .quantity .form-control,
.route-checkout-onepcheckout #onepcheckout input[name*="quantity"] {
  width: 52px !important;
  min-width: 52px !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 6px !important;
  border-radius: 9px !important;
  text-align: center;
}

/* Shipping and payment methods: readable rows without overflow or collisions. */
.route-checkout-onepcheckout #onepcheckout .shipping-method,
.route-checkout-onepcheckout #onepcheckout .payment-method,
.route-checkout-onepcheckout #onepcheckout [class*="shipping-method"],
.route-checkout-onepcheckout #onepcheckout [class*="payment-method"] {
  width: 100%;
  min-width: 0;
}

.route-checkout-onepcheckout #onepcheckout .radio,
.route-checkout-onepcheckout #onepcheckout .checkbox {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  clear: both;
}

.route-checkout-onepcheckout #onepcheckout .radio > label,
.route-checkout-onepcheckout #onepcheckout .checkbox > label {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px;
  padding: 14px 14px 14px 44px !important;
  white-space: normal !important;
  overflow: visible !important;
  color: #171d27 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.32 !important;
  text-align: left !important;
  word-break: normal;
  overflow-wrap: anywhere;
}

.route-checkout-onepcheckout #onepcheckout .radio > label input,
.route-checkout-onepcheckout #onepcheckout .checkbox > label input {
  position: absolute !important;
  top: 50% !important;
  left: 15px !important;
  z-index: 2;
  width: 18px !important;
  height: 18px !important;
  margin: -9px 0 0 !important;
}

.route-checkout-onepcheckout #onepcheckout .radio > label img,
.route-checkout-onepcheckout #onepcheckout .radio > label svg,
.route-checkout-onepcheckout #onepcheckout .checkbox > label img {
  display: inline-block;
  max-width: 76px;
  max-height: 24px;
  margin: 0 4px;
  vertical-align: middle;
  object-fit: contain;
}

/* The optional "pay delivery now" choice is its own calm row. */
.route-checkout-onepcheckout #onepcheckout .nenashi-pay-shipping,
.route-checkout-onepcheckout #onepcheckout .nenashi-delivery-payment-choice,
.route-checkout-onepcheckout #onepcheckout [class*="pay-shipping"],
.route-checkout-onepcheckout #onepcheckout [class*="delivery-payment"] {
  position: relative !important;
  z-index: 1;
  display: block !important;
  width: 100% !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  clear: both;
}

.route-checkout-onepcheckout #onepcheckout .nenashi-pay-shipping label,
.route-checkout-onepcheckout #onepcheckout .nenashi-delivery-payment-choice label,
.route-checkout-onepcheckout #onepcheckout [class*="pay-shipping"] label,
.route-checkout-onepcheckout #onepcheckout [class*="delivery-payment"] label {
  min-height: 66px;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.route-checkout-onepcheckout #onepcheckout .nenashi-pay-shipping small,
.route-checkout-onepcheckout #onepcheckout .nenashi-delivery-payment-choice small,
.route-checkout-onepcheckout #onepcheckout [class*="pay-shipping"] small,
.route-checkout-onepcheckout #onepcheckout [class*="delivery-payment"] small {
  display: block;
  margin-top: 3px;
  color: #677180;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

/* Final action keeps the store typography and does not resemble a legacy input. */
.route-checkout-onepcheckout #onepcheckout #button-register,
.route-checkout-onepcheckout #onepcheckout .button-confirm,
.route-checkout-onepcheckout #onepcheckout input[type="submit"] {
  min-height: 54px !important;
  height: auto !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

@media (max-width: 767px) {
  .route-checkout-onepcheckout #onepcheckout .radio > label,
  .route-checkout-onepcheckout #onepcheckout .checkbox > label {
    min-height: 58px;
    padding: 13px 10px 13px 42px !important;
    font-size: 13px !important;
  }

  .route-checkout-onepcheckout #onepcheckout .radio > label input,
  .route-checkout-onepcheckout #onepcheckout .checkbox > label input {
    left: 13px !important;
  }

  .route-checkout-onepcheckout #onepcheckout .shipping-method .radio,
  .route-checkout-onepcheckout #onepcheckout .payment-method .radio,
  .route-checkout-onepcheckout #onepcheckout [class*="shipping-method"] .radio,
  .route-checkout-onepcheckout #onepcheckout [class*="payment-method"] .radio {
    margin-bottom: 9px;
  }

  .route-checkout-onepcheckout #onepcheckout .input-group,
  .route-checkout-onepcheckout #onepcheckout .quantity,
  .route-checkout-onepcheckout #onepcheckout .product-quantity {
    max-width: 150px;
    flex-wrap: nowrap;
  }
}

