/* =========================================================================
   AQWAKE APPAREL - B2B CORPORATE & GIFTS GATEWAY STYLES
   Pixel-perfect match to official design specifications
   ========================================================================= */

.b2b-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #2D2721;
  background-image: url('../assets/b2b-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.b2b-modal-backdrop.active {
  display: flex;
}

.b2b-container {
  width: 100%;
  max-width: 440px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: b2bFadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes b2bFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Brand Logo at Top of Gateway */
.b2b-header-logo-wrap {
  width: 200px;
  max-width: 70%;
  margin-bottom: 0.65rem;
  text-align: center;
}

.b2b-header-logo-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* The Warm Ivory Card */
.b2b-card {
  width: 100%;
  background: #F8F4EE;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 1.15rem 1.35rem 1rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Close button on modal */
.b2b-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #3A352F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.b2b-close-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #1D1815;
}

/* Card Header */
.b2b-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.b2b-card-title {
  font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  color: #1D1815;
  margin: 0;
  letter-spacing: -0.01em;
}

.b2b-step-badge {
  background: #EAE1D5;
  color: #4A443D;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

/* Form Controls */
.b2b-form-group {
  margin-bottom: 0.55rem;
}

.b2b-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #1D1815;
  margin-bottom: 3px;
}

.b2b-input {
  width: 100%;
  height: 36px;
  background: #FFFFFF;
  border: 1.5px solid #8B9884;
  border-radius: 6px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 13px;
  color: #1D1815;
  box-sizing: border-box;
  transition: border-color 0.2s, background-color 0.2s;
  outline: none;
}

.b2b-input:focus {
  border-color: #465537;
  background-color: #FAFBF9;
  box-shadow: 0 0 0 3px rgba(70, 85, 55, 0.15);
}

.b2b-input.login-input {
  background: #D5DED2;
  border-color: #7B8B75;
}

.b2b-input.login-input:focus {
  background: #E2EAE0;
  border-color: #465537;
}

/* Reason Checkbox Grid */
.b2b-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.b2b-checkbox-pill {
  background: #E3CBAD;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #2C2621;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s, transform 0.1s;
}

.b2b-checkbox-pill:hover {
  background: #DCBF9C;
}

.b2b-checkbox-pill input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  background: #FFFFFF;
  border: 1.5px solid #8C7862;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s, border-color 0.15s;
}

.b2b-checkbox-pill input[type="checkbox"]:checked {
  background: #465537;
  border-color: #465537;
}

.b2b-checkbox-pill input[type="checkbox"]:checked::after {
  content: "✓";
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* Primary Olive Action Button */
.b2b-btn-primary {
  width: 100%;
  height: 40px;
  background: #465537;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.75rem;
  transition: background-color 0.2s, transform 0.1s;
}

.b2b-btn-primary:hover {
  background: #38452B;
}

.b2b-btn-primary:active {
  transform: translateY(1px);
}

/* Secondary Caramel/Tan Button */
.b2b-btn-tan {
  width: 100%;
  height: 40px;
  background: #E5CDAE;
  color: #2C2621;
  border: none;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.55rem;
  transition: background-color 0.2s, transform 0.1s;
}

.b2b-btn-tan:hover {
  background: #DEC29E;
}

.b2b-btn-tan:active {
  transform: translateY(1px);
}

/* Footer Links & Text */
.b2b-card-footer {
  text-align: center;
  margin-top: 0.65rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12.5px;
  color: #4A443D;
}

.b2b-link {
  color: #2C2621;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.15s;
}

.b2b-link:hover {
  color: #465537;
}

.b2b-divider-row {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(166, 158, 135, 0.3);
  text-align: center;
}

.b2b-divider-text {
  font-size: 13.5px;
  color: #2C2621;
  margin-bottom: 0.4rem;
}

/* Thank You Screen Specifics */
.b2b-thankyou-wrap {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
  position: relative;
}

.b2b-check-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #98AD88;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 1.25rem;
}

.b2b-thankyou-title {
  font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: #1D1815;
  margin: 0 0 1.2rem;
}

.b2b-thankyou-desc {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14.5px;
  color: #2C2621;
  line-height: 1.55;
  margin: 0 0 1rem;
}

/* Corner Botanical Leaves Decoration */
.b2b-leaf-top-right {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 64px;
  height: 64px;
  pointer-events: none;
  opacity: 0.65;
}

.b2b-leaf-bottom-left {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 64px;
  height: 64px;
  pointer-events: none;
  opacity: 0.65;
}

/* Gated Price Badges on Storefront Cards */
.card-price-gated {
  display: flex;
  align-items: center;
}

.btn-price-gated {
  background: #F4EFEA;
  color: #5A4E44;
  border: 1px dashed #C8B9A6;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-price-gated:hover {
  background: #465537;
  color: #FFFFFF;
  border-color: #465537;
}

.card-admin-edit-btn {
  background: #1D1815;
  color: #FAF8F5;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.card-admin-edit-btn:hover {
  background: #465537;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.card-quote-add-btn {
  background: #465537;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.25;
  transition: all 0.2s ease;
}

.bestsellers-3d-ring .product-card .card-quote-add-btn {
  padding: 5.5px 8px;
  font-size: 10.5px;
  gap: 4px;
  width: 100%;
}

.card-quote-add-btn:hover {
  background: #38452B;
}

.b2b-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 400px) {
  .b2b-form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Alert inside B2B Modal */
.b2b-alert {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 0.85rem;
  display: none;
  line-height: 1.4;
}

.b2b-alert.error {
  display: block;
  background: #FDF2F2;
  color: #991B1B;
  border: 1px solid #F87171;
}

.b2b-alert.success {
  display: block;
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #4ADE80;
}

.b2b-alert.info {
  display: block;
  background: #F0F9FF;
  color: #0369A1;
  border: 1px solid #7DD3FC;
}

