/* VCB Shipping Selector Modern Design */

.vcb-shipping-selector {
  background: var(--vcb-checkout-bg-white, #fff);
  border-radius: var(--vcb-checkout-radius-lg, 16px);
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--vcb-checkout-border-light, #edf2f7);
  transition: var(--vcb-checkout-transition, all 0.3s ease);
}

.vcb-shipping-selector.vcb-form-section {
  box-shadow: none;
}

.vcb-shipping-selector h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--vcb-checkout-text, #2d3748);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--vcb-checkout-border, #e2e8f0);
}

.current-address {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--vcb-checkout-bg, #f7fafc);
  border-radius: var(--vcb-checkout-radius-sm, 8px);
  border-left: 3px solid var(--vcb-checkout-info, #4299e1);
  font-size: 14px;
  color: var(--vcb-checkout-text-light, #718096);
}

.current-address strong {
  color: var(--vcb-checkout-text, #2d3748);
}

.vcb-shipping-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vcb-shipping-option {
  cursor: pointer;
  position: relative;
}

.vcb-shipping-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.shipping-card {
  display: flex;
  align-items: center;
  padding: 24px;
  border: 2px solid var(--vcb-checkout-border, #e2e8f0);
  border-radius: var(--vcb-checkout-radius, 12px);
  background: var(--vcb-checkout-bg-white, #fff);
  transition: var(--vcb-checkout-transition, all 0.3s ease);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.vcb-shipping-option input:checked + .shipping-card {
  border-color: #fa5250;
  background: linear-gradient(
    to right,
    rgba(250, 82, 80, 0.05),
    rgba(250, 82, 80, 0.02)
  );
}

.shipping-card:hover {
  border-color: #fa5250;
  transform: translateY(-2px);
}

.shipping-icon {
  font-size: 32px;
  margin-right: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vcb-checkout-bg, #f7fafc);
  border-radius: 50%;
  flex-shrink: 0;
}

.vcb-shipping-option input:checked + .shipping-card .shipping-icon {
  background: #fa5250;
  color: white;
}

.shipping-details {
  flex: 1;
  position: relative;
  z-index: 1;
}

.shipping-title {
  font-weight: 700;
  font-size: 17px;
  color: var(--vcb-checkout-text, #2d3748);
  margin-bottom: 6px;
}

.shipping-desc {
  color: var(--vcb-checkout-text-light, #718096);
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.shipping-fee {
  font-weight: 700;
  font-size: 16px;
  color: #fa5250;
}

/* Special shipping options */
.vcb-today-delivery .shipping-icon {
  color: white;
}

.vcb-free-shipping .shipping-fee {
  color: var(--vcb-checkout-success, #48bb78);
}

/* Shipping notice */
.vcb-shipping-notice {
  padding: 20px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: var(--vcb-checkout-radius, 12px);
  font-size: 14px;
  margin-top: 24px;
}

.vcb-shipping-notice p {
  margin: 8px 0;
  color: #1565c0;
  line-height: 1.6;
}

.vcb-shipping-notice p:first-child {
  margin-top: 0;
}

.vcb-shipping-notice p:last-child {
  margin-bottom: 0;
}

/* Product delivery info */
.vcb-product-delivery-info {
  background: var(--vcb-checkout-bg-white, #fff);
  border: 1px solid var(--vcb-checkout-border, #e2e8f0);
  border-radius: var(--vcb-checkout-radius, 12px);
  padding: 20px;
  margin: 20px 0;
}

.vcb-product-delivery-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--vcb-checkout-text, #2d3748);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vcb-product-delivery-info h4::before {
  content: "📦";
  font-size: 20px;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.delivery-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--vcb-checkout-radius-sm, 8px);
  background: var(--vcb-checkout-bg, #f7fafc);
  transition: var(--vcb-checkout-transition, all 0.3s ease);
}

.delivery-option:hover {
  background: var(--vcb-checkout-border-light, #edf2f7);
  transform: translateX(4px);
}

.delivery-option.today-delivery {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

.delivery-icon {
  font-size: 24px;
  margin-right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: var(--vcb-checkout-shadow, 0 1px 3px 0 rgba(0, 0, 0, 0.1));
}

.delivery-text {
  flex: 1;
}

.delivery-text strong {
  display: block;
  color: var(--vcb-checkout-text, #2d3748);
  font-weight: 600;
  margin-bottom: 4px;
}

.delivery-text small {
  color: var(--vcb-checkout-text-light, #718096);
  font-size: 13px;
}

.delivery-note {
  text-align: center;
  color: var(--vcb-checkout-text-muted, #a0aec0);
  font-style: italic;
  font-size: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--vcb-checkout-border-light, #edf2f7);
}

/* Radio button custom styling */
.vcb-shipping-option input:checked + .shipping-card::after {
  content: "✓";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  background: #fa5250;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  animation: checkmark 0.3s ease;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .vcb-shipping-selector {
    padding: 20px 16px;
    margin: 10px 0;
  }

  .vcb-shipping-options {
    gap: 8px;
  }

  .shipping-card {
    padding: 12px;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 12px;
    align-items: start;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: var(--vcb-checkout-radius, 12px);
  }

  .shipping-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
    margin: 0;
    background: #f8f9fa;
    border-radius: 8px;
  }

  .vcb-shipping-option input:checked + .shipping-card .shipping-icon {
    background: #fa5250;
    color: white;
  }

  .shipping-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .shipping-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .shipping-desc {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
    color: #666;
  }

  .shipping-fee {
    font-size: 14px;
    font-weight: 600;
  }

  .vcb-shipping-option input:checked + .shipping-card {
    border-color: #fa5250;
    background: white;
  }

  .vcb-shipping-option input:checked + .shipping-card::after {
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .vcb-shipping-notice {
    padding: 12px;
    margin-top: 12px;
    font-size: 13px;
    background: #f0f8ff;
    border-radius: 10px;
    border-left-width: 3px;
  }

  .vcb-shipping-notice p {
    font-size: 13px;
    margin: 4px 0;
  }
}
