/* ==========================================================================
   WHMCS PRO TURKISH THEME — ORDERFORM & CART FLOW STYLESHEET
   templates/orderforms/whmcs-pro-cart/css/cart.css
   ========================================================================== */

.theme-orderform-wrapper {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

/* Steps Progress Indicator */
.theme-cart-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.theme-step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-text-muted);
}

.theme-step-item.active {
  color: var(--theme-primary);
}

.theme-step-item.completed {
  color: var(--theme-success);
}

.theme-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--theme-surface-alt);
  border: 1px solid var(--theme-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.theme-step-item.active .theme-step-circle {
  background-color: var(--theme-primary);
  color: #FFFFFF;
  border-color: var(--theme-primary);
  box-shadow: 0 2px 6px rgba(var(--theme-primary-rgb), 0.35);
}

.theme-step-item.completed .theme-step-circle {
  background-color: var(--theme-success);
  color: #FFFFFF;
  border-color: var(--theme-success);
}

.theme-step-divider {
  width: 24px;
  height: 2px;
  background-color: var(--theme-border);
}

/* Category Filter Bar */
.theme-cart-category-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.theme-cart-cat-btn {
  padding: 0.5rem 1.15rem;
  border-radius: var(--theme-radius-full);
  font-size: var(--theme-text-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--theme-text-main);
  background-color: var(--theme-surface);
  border: 1px solid var(--theme-border);
  white-space: nowrap;
  transition: all var(--theme-transition-fast);
}

.theme-cart-cat-btn:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.theme-cart-cat-btn.active {
  background-color: var(--theme-primary);
  color: #FFFFFF !important;
  border-color: var(--theme-primary);
}

/* Sticky Order Summary Sidebar */
.theme-order-summary-sidebar {
  position: sticky;
  top: 100px;
}

.theme-order-summary-card {
  background-color: var(--theme-card);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-card);
  padding: 1.5rem;
  box-shadow: var(--theme-shadow-card);
}

.theme-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.theme-summary-total {
  border-top: 2px solid var(--theme-border);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--theme-primary);
}

/* Payment Gateway Tiles */
.theme-gateway-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .theme-gateway-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.theme-gateway-tile {
  background-color: var(--theme-surface);
  border: 2px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--theme-transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.theme-gateway-tile:hover {
  border-color: var(--theme-primary);
  background-color: var(--theme-surface-hover);
}

.theme-gateway-tile.active,
.theme-gateway-tile input[type="radio"]:checked + .gateway-content {
  border-color: var(--theme-primary);
  background-color: var(--theme-primary-light);
}

/* Domain Options Tabs */
.theme-domain-options-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.theme-domain-option-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  cursor: pointer;
  transition: all var(--theme-transition-fast);
}

.theme-domain-option-radio:hover {
  border-color: var(--theme-primary);
}

.theme-domain-option-radio.active {
  border-color: var(--theme-primary);
  background-color: var(--theme-surface-alt);
}


/* 2-Column Product Configuration & Cart Layout */
.theme-config-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.theme-config-columns > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .theme-config-columns {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.theme-domain-option-radio input[type="radio"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--theme-primary);
  flex-shrink: 0;
}

.theme-domain-check-result {
  margin-top: 1rem;
  padding: 0.875rem 1.25rem;
  background-color: var(--theme-surface);
  border: 1px solid var(--theme-success, #10B981);
  border-radius: var(--theme-radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* WHMCS Live Domain Lookup & Add-to-Cart Button State Visibility */
.w-hidden {
  display: none;
}

.btn-add-to-cart .loading,
.btn-add-to-cart .added,
.btn-add-to-cart .unavailable {
  display: none;
}

.btn-add-to-cart.loading .to-add,
.btn-add-to-cart.added .to-add,
.btn-add-to-cart.unavailable .to-add {
  display: none;
}

.btn-add-to-cart.loading .loading,
.btn-add-to-cart.added .added,
.btn-add-to-cart.unavailable .unavailable {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

