/* Main Container */
.bog-checkout-main {
  max-width: 1240px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: "Helvetica Neue", sans-serif;
}

.bog-checkout-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
}

/* Typography */
.bog-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

/* Delivery Options */
.bog-delivery-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bog-delivery-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #2a3a31;
  background: #111815;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bog-delivery-option:hover {
  border-color: #2dd673;
}

.bog-delivery-option.active {
  border-color: #2dd673;
  background: rgba(45, 214, 115, 0.05);
  box-shadow: 0 0 0 2px rgba(45, 214, 115, 0.1);
}

.bog-delivery-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Option Icons */
.bog-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #1e2a24;
  color: #888;
}

.bog-delivery-option.active .bog-option-icon {
  background: rgba(45, 214, 115, 0.2);
  color: #2dd673;
}

.bog-option-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Option Content */
.bog-option-content {
  flex: 1;
  min-width: 0;
}

.bog-option-title {
  display: block;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.65rem;
}

.bog-delivery-option.active .bog-option-title {
  color: #2dd673;
}

.bog-option-desc {
  display: block;
  font-size: 0.875rem;
  color: #888;
}

/* Option Dot */
.bog-option-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid #2a3a31;
  flex-shrink: 0;
}

.bog-option-dot.active {
  border-color: #2dd673;
  position: relative;
}

.bog-option-dot.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #2dd673;
}

/* Divider */
.bog-divider {
  height: 1px;
  background: #2a3a31;
  margin: 2rem 0;
}

/* Fields Grid */
.bog-fields-grid {
  display: grid;
  gap: 1rem;
}

.bog-fields-grid > div {
  display: block;
}

.bog-fields-grid > div.hidden {
  display: none;
}

.bog-fields-grid label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 0.375rem;
}

.bog-input {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #2a3a31;
  background: #1e2a24;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.bog-input:focus {
  outline: none;
  border-color: #2dd673;
  box-shadow: 0 0 0 2px rgba(45, 214, 115, 0.1);
}

.bog-input::placeholder {
  color: rgba(136, 136, 136, 0.5);
}

/* City, State, ZIP Grid */
@media (min-width: 640px) {
  .bog-fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bog-field-fullname,
  .bog-field-address {
    grid-column: span 2;
  }
}

@media (min-width: 768px) {
  .bog-fields-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bog-field-fullname,
  .bog-field-address {
    grid-column: span 3;
  }

  .bog-field-city,
  .bog-field-state,
  .bog-field-zip {
    grid-column: span 1;
  }
}

/* Order Summary Card */
.bog-checkout-right {
  position: relative;
}

.bog-summary-card {
  position: sticky;
  top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #2a3a31;
  background: #111815;
}

.bog-summary-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
}

.bog-summary-title svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Cart Items */
.bog-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bog-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.bog-item-info {
  min-width: 0;
  flex: 1;
}

.bog-item-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bog-item-meta {
  display: block;
  font-size: 0.75rem;
  color: #888;
}

.bog-item-price {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}

/* Summary Divider */
.bog-summary-divider {
  height: 1px;
  background: #2a3a31;
  margin: 1rem 0;
}

/* Totals */
.bog-totals {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bog-totals > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.bog-totals > div span:first-child {
  color: #888;
}

.bog-totals > div span:last-child {
  color: #fff;
}

.bog-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
}

.bog-total-label {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.bog-total-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2dd673;
}

/* Pay Button */
.bog-pay-button {
  width: 100%;
  padding: 0.875rem;
  border-radius: 0.75rem;
  border: none;
  background: #2a3a31;
  color: #888;
  font-size: 1rem;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.2s ease;
  margin-top: 1.5rem;
}

.bog-pay-button:not(:disabled) {
  background: #2dd673;
  color: #111815;
  cursor: pointer;
}

.bog-pay-button:not(:disabled):hover {
  background: #25b562;
}

/* Secure Checkout */
.bog-secure-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #888;
  text-align: center;
}

.bog-secure-checkout svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 1023px) {
  .bog-checkout-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bog-checkout-right {
    margin-top: 1rem;
  }

  .bog-summary-card {
    position: static;
  }
}

/* Hide fields conditionally */
.bog-field-local-delivery,
.bog-field-shipping {
  display: none;
}

/* Delivery method specific visibility */
body.delivery-pickup .bog-field-local-delivery,
body.delivery-pickup .bog-field-shipping {
  display: none;
}

body.delivery-local .bog-field-local-delivery {
  display: block;
}

body.delivery-local .bog-field-shipping {
  display: block;
}

body.delivery-shipping .bog-field-local-delivery {
  display: none;
}

body.delivery-shipping .bog-field-shipping {
  display: block;
}

/* Distance Options Styling */
.bog-subsection-title {
  font-size: 1rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 1rem;
}

.bog-distance-options {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #0f1a14;
  border-radius: 0.75rem;
  border: 1px solid #2a3a31;
}

.bog-distance-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bog-distance-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #2a3a31;
  background: #111815;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bog-distance-option:hover {
  border-color: #2dd673;
}

.bog-distance-option.active {
  border-color: #2dd673;
  background: rgba(45, 214, 115, 0.05);
}

.bog-distance-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bog-distance-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.bog-distance-range {
  font-weight: 500;
  color: #fff;
  min-width: 140px;
}

.bog-distance-price {
  font-weight: 600;
  color: #2dd673;
}

.bog-distance-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid #2a3a31;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bog-distance-dot.active {
  border-color: #2dd673;
  position: relative;
}

.bog-distance-dot.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #2dd673;
}

/* Delivery fee in summary */
.bog-delivery-fee-detail {
  font-size: 0.75rem;
  color: #888;
  margin-left: 0.5rem;
}

.bog-delivery-fee .fee-detail {
  display: block;
  font-size: 0.7rem;
  color: #2dd673;
  margin-top: 0.25rem;
}
