/* 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;
}
.bog-distance-address {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.bog-distance-note {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 14px;
}

.bog-calc-distance-btn {
  width: 100%;
  padding: 12px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}

.bog-calc-distance-btn:hover {
  background: #45a049;
}

.bog-calc-distance-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

.bog-distance-info,
.bog-price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.bog-distance-label,
.bog-price-label {
  font-weight: 500;
  color: #333;
}

.bog-distance-value,
.bog-price-value {
  font-size: 18px;
  font-weight: 600;
  color: #2dd673;
}
/* Distance and Time display */
.bog-time-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.bog-time-label {
  font-weight: 500;
  color: #333;
}

.bog-time-value {
  font-weight: 600;
  color: #2dd673;
}

/* Update existing styles for KM display */
.bog-distance-range {
  font-size: 14px;
  color: #666;
}

.bog-distance-price {
  font-weight: 600;
  color: #2dd673;
}
span.bog-distance-label {
  color: #888;
}

span.bog-price-label {
  color: #888;
}

span.bog-time-label {
  color: #888;
}
.bog-distance-address {
  background: #000;
}
button#bog-calculate-distance:hover {
  background: black;
  color: white;
}
div#bog-distance-result {
  background: black !important;
}
/* Alert style for out of range */
.bog-delivery-option.bog-option-local.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.bog-delivery-option.bog-option-local.disabled:after {
  content: "ⓘ";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff6b6b;
  font-size: 18px;
}
/* ✅ নতুন Notice Box Styles */
.bog-delivery-notice {
  background: #fff3f3;
  border-left: 4px solid #ff6b6b;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bog-notice-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.bog-notice-icon svg {
  width: 100%;
  height: 100%;
}

.bog-notice-content {
  flex: 1;
}

.bog-notice-content h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 600;
  color: #ff6b6b;
}

.bog-notice-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.bog-notice-content strong {
  color: #ff6b6b;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bog-delivery-notice {
    padding: 12px 15px;
    gap: 12px;
  }

  .bog-notice-content h4 {
    font-size: 15px;
  }

  .bog-notice-content p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .bog-delivery-notice {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }

  .bog-notice-icon {
    margin-bottom: 5px;
  }
}
/* Modern Modal Styles */
.bog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bog-modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: modalFadeIn 0.3s ease-out;
}

.bog-modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 560px;
  animation: modalSlideUp 0.4s ease-out;
}

.bog-modal-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.bog-modal-icon {
  margin-bottom: 20px;
  animation: modalPulse 2s infinite;
}

.bog-modal-icon svg {
  width: 60px;
  height: 60px;
}

.bog-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.bog-modal-message {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 10px 0;
}

.bog-modal-suggestion {
  font-size: 15px;
  color: #888;
  margin: 0 0 25px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.bog-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.bog-modal-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.bog-modal-btn-primary {
  background: #ff6b6b;
  color: white;
}

.bog-modal-btn-primary:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.bog-modal-btn-secondary {
  background: #f0f0f0;
  color: #666;
}

.bog-modal-btn-secondary:hover {
  background: #e5e5e5;
  transform: translateY(-2px);
}

/* Animations */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -30%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes modalPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .bog-modal-content {
    padding: 25px 20px;
  }

  .bog-modal-title {
    font-size: 22px;
  }

  .bog-modal-actions {
    flex-direction: column;
  }

  .bog-modal-btn {
    width: 100%;
  }
}
button#bog-modal-pickup {
  background: white;
  border: 1px solid black;
  color: black;
}
button#bog-modal-shipping:hover {
  background: black;
  color: white;
  border-color: black;
}
button#bog-modal-pickup:hover {
  background: white;
  color: black;
  border-color: black;
  box-shadow: none;
}

/* Switcher Container */
.bog-switcher-container {
  margin: 25px 0;
  width: 100%;
}

/* Toggle Switch Style */
.bog-switch-toggle {
  display: flex;
  background: #f8f9fa;
  border-radius: 50px;
  padding: 6px;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.bog-switch-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #495057;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.bog-switch-btn i,
.bog-switch-btn svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.bog-switch-btn.active {
  color: white;
  background: #2dd673;
  box-shadow: 0 4px 12px rgba(45, 214, 115, 0.3);
}

.bog-switch-btn:not(.active):hover {
  background: rgba(45, 214, 115, 0.08);
  color: #2dd673;
}

/* Calculator Icon */
.bog-switch-btn .calc-icon {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Quick Select Icon */
.bog-switch-btn .quick-icon {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Active state icons */
.bog-switch-btn.active svg {
  stroke: white;
}

/* Divider Line */
.bog-switch-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.bog-switch-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #e9ecef, transparent);
}

.bog-switch-divider span {
  background: white;
  padding: 0 15px;
  color: #868e96;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}
.bog-distance-switcher {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
/* Mobile Responsive */
@media (max-width: 768px) {
  .bog-switch-btn {
    padding: 12px 15px;
    font-size: 14px;
    gap: 6px;
  }
  .bog-distance-switcher {
    flex-direction: column;
  }
  .bog-switch-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .bog-switch-toggle {
    flex-direction: column;
    gap: 8px;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .bog-switch-btn {
    width: 100%;
    border-radius: 40px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 14px;
  }

  .bog-switch-btn.active {
    background: #2dd673;
    border-color: #2dd673;
  }

  .bog-switch-divider span {
    font-size: 12px;
    background: #f8f9fa;
    padding: 0 10px;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .bog-switch-btn {
    font-size: 13px;
    padding: 12px;
  }

  .bog-switch-btn svg {
    width: 16px;
    height: 16px;
  }
}
