/* CHECKOUT ---- MACHI */

/* === Custom Checkout Fullscreen Cleanup === */
.custom-checkout-page #page,
.custom-checkout-page header,
.custom-checkout-page footer,
.custom-checkout-page .site-header,
.custom-checkout-page .site-footer,
.custom-checkout-page .widget-area,
.custom-checkout-page .sidebar {
  display: none !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


#custom-checkout-wrapper-machi {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#custom-checkout-wrapper-machi * {
  font-family: "Inter", sans-serif !important;
}

.container-checkout {
  background-color: #f5f5f5 !important;
  color: #333 !important;
  line-height: 1.6 !important;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.machi_left-section {
  padding: 40px;
  border-right: 1px solid #e5e5e5;
  background-color: #f5faff;
}

.machi_right-section {
  padding: 40px;
  background-color: #fafafa;
}

.machi_back-link {
  display: flex;
  align-items: center;
  color: #666;
  text-decoration: none;
  margin-bottom: 40px;
  font-size: 14px;
}

.machi_back-link:hover {
  color: #333;
}

.machi_back-arrow {
  margin-right: 8px;
  font-size: 16px;
}

.machi_section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px !important;
}

.title-crazy {
  color: #FF0D0C;
}

.machi_section-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.subtitle-crazy {
  font-weight: 700;
}

.machi_product-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  background-color: #fff;
  border-radius: 15px;
  padding: 10px;
}

.machi_product-item:last-child {
  border-bottom: none;
}

.machi_product-image {
  width: 90px;
  height: 90px;
  border-radius: 8px;
}

.machi_product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.machi_product-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.machi_product-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.machi_product-color {
  font-size: 14px;
  color: #333;
}

.machi_usd-currency {
  color: rgb(26, 188, 156);
  font-weight: 600;
}

.machi_bs-currency {
  color: rgb(30, 111, 232);
}

.machi_usd-price,
.machi_bs-price {
  font-weight: 600;
}

.machi_delivery-section {
  margin-top: 40px;
}

.machi_delivery-option {
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.machi_delivery-option.selected {
  border-color: #333;
}

.machi_delivery-option:hover {
  border-color: #999;
}

.machi_delivery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.machi_delivery-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.machi_radio-button {
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-radius: 50%;
  position: relative;
}

.machi_delivery-option.selected .machi_radio-button {
  border-color: #333;
}

.machi_delivery-option.selected .machi_radio-button::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #333;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.machi_delivery-price {
  font-weight: 600;
}

.machi_recommend-badge {
  background: #e8f5e8;
  color: #2d5a2d;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 8px;
}

.machi_delivery-logo {
  width: 40px;
  height: 20px;
  background: #ff6600;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: bold;
}

.machi_delivery-logo.dhl {
  background: #ffcc00;
  color: #d40511;
}

.machi_delivery-date {
  font-size: 12px;
  color: #666;
}

.machi_form-group {
  margin-bottom: 20px;
}

.machi_form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.machi_form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.machi_form-input:focus {
  outline: none;
  border-color: #333;
}

.machi_form-row {
  /*   display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px; */
}

.machi_payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 30px;
}

.machi_payment-method {
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.machi_payment-method.selected {
  border-color: #333;
  background: #f9f9f9;
}

.machi_payment-method:hover {
  border-color: #999;
}

.machi_payment-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.machi_payment-icon img {
  height: 40px;
}

.machi_payment-text {
  font-size: 14px;
  font-weight: 500;
}

.machi_summary-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
}

.machi_summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.machi_summary-row.total {
  font-weight: 700;
  font-size: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
}

.machi_pay-button {
  width: 100%;
  background: #333;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  transition: background-color 0.2s;
}

.machi_pay-button:hover {
  background: #FF0D0C;
}

.machi_security-note {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 16px;
}

.machi_security-note-text {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: black;
}

/* Disable Button in CHECKOUT */
.machi_pay-button:disabled,
.machi_pay-button.disabled-button {
  background: #FF0D0C !important;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Modal in checkout */
.machi_modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.machi_modal.hidden {
  display: none;
}

.machi_modal.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.machi_modal.fade-out {
  animation: fadeOut 0.4s ease-out forwards;
}

.machi_modal_content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  max-height: 90vh;
  /* LIMIT HEIGHT TO VIEWPORT */
  overflow-y: auto;
  /* ENABLE VERTICAL SCROLLING */
  animation: slideUp 0.7s ease-out;
}

/* Optional: for smooth scrolling */
.machi_modal_content::-webkit-scrollbar {
  width: 8px;
}

.machi_modal_content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.machi_modal_content::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.machi_modal_close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
}

#modalPaymentTitle {
  font-size: 25px;
  margin-bottom: 20px;
  color: #333 !important;
  font-weight: 600;
}

#modalTotalAmount {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

#modalPaymentImage {
  border: 1px solid #bbbbbb;
  border-radius: 10px;
}

.instructions {
  background: #f8f9ff;
  border: 1px solid #e3e8ff;
  border-radius: 12px;
  padding: 8px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.security-section {
  background: #f8f9ff;
  border: 1px solid #e3e8ff;
  border-radius: 12px;
  padding: 8px;
  margin-top: 15px;
  margin-bottom: 24px;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  margin-bottom: 15px;
}

.cancel-button {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e9ecef;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-button:hover {
  background: #e9ecef;
  color: #333;
}

.confirm-button {
  background: #FF0000;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.confirm-button:hover {
  background: #e60000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.confirm-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.support-link {
  color: #FF0000;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}

.support-link:hover {
  text-decoration: underline;
}

.instructions-title {
  text-align: center;
  margin-bottom: 5px;
}

.instructions-title span:nth-child(2) {
  font-weight: 700;
}

.instructions-list {
  text-align: left;
}

/* Timer Section */
.timer-section {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 24px;
  text-align: center;
}

.timer-text {
  font-size: 14px;
  color: #856404;
  margin-bottom: 4px;
}

.timer-value {
  font-size: 18px;
  font-weight: 700;
  color: #856404;
  font-family: 'Courier New', monospace;
}

.owner_payment-method {
  font-size: 16px;
  font-weight: 600;
}

.modal-footer {
  padding: 0 24px 24px;
}



/* Modal styles for currency */
.modal-usdt-amount {
  color: rgb(255, 255, 255);
  font-weight: 700;
  font-size: 30px;
}

.modal-usdt-currency {
  color: rgb(255, 255, 255);
  font-weight: 600;
  font-size: 22px;

}

.modal-bs-amount {
  color: rgb(255, 255, 255);
  font-weight: 700;
  font-size: 25px;

}

.modal-bs-currency {
  color: rgb(255, 255, 255);
  font-weight: 600;
  font-size: 20px;

}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Logo styles */
.machi_checkout-logo {
  text-align: center;
  padding: 20px 0;
}

.machi_checkout-logo img {
  height: 60px;
  /* Adjust as needed */
  max-width: 180px;
  width: auto;
}

/* Progress BAR */
.machi_progress-bar {
  text-align: center;
  font-size: 24px;
  color: #FF0D0C;
  margin-bottom: 20px;
  font-weight: bold;
}

.machi_progress-bar .progress-step {
  margin: 0;
}

.machi_progress-bar .progress-step.completed {
  color: #FF0D0C;
}

.machi_progress-bar .progress-label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-top: 8px;
  font-weight: 500;
}

#machi-modal_payment-container {
  background-color: #FF0D0C;
  border-radius: 10px;
  padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .machi_container-checkout {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .machi_left-section,
  .machi_right-section {
    padding: 20px;
    border-right: none;
  }

  .machi_right-section {
    background: white;
    border-top: 1px solid #e5e5e5;
  }

  .machi_form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .machi_payment-methods {
    grid-template-columns: 1fr;
  }

  .machi_product-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .machi_product-image {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {

  .machi_left-section,
  .machi_right-section {
    padding: 16px;
  }

  .machi_delivery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .machi_delivery-info {
    width: 100%;
    justify-content: space-between;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .machi_container-checkout {
    max-width: 95%;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
}