/**
 * Skye Blinds - Frontend CSS
 * Migrated from blinds-pricing-plugin/css/style.css
 * Version: 1.0.0
 */

/* ── Active pill visual for unit + fitting radio labels ── */
#bp-unit label,
.fitting-options label {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 999px;
  cursor: pointer;
  margin-right: 6px;
  user-select: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
#bp-unit label.active-bp-pill,
.fitting-options label.active-bp-pill {
  background: #01a9bd !important;
  color: #fff !important;
  border-color: #01a9bd !important;
}

/* ── Add-ons layout ── */
.simple-product-addons {
  margin: 20px 0;
  font-family: Arial, sans-serif;
  display: flex;
  column-gap: 20px;
  row-gap: 20px;
  flex-wrap: wrap;
}
.simple-product-addons .addon-group {
  margin-bottom: 0;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
  flex: 1 1 260px;
  min-width: 240px;
}
.simple-product-addons .addon-group h4 {
  margin: 0 0 10px;
  color: #333;
  font-size: 16px;
}
.simple-product-addons .addon-option {
  display: block;
  margin-bottom: 6px;
  cursor: pointer;
}
.simple-product-addons select.addon-dropdown {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
}

/* ── Total price above Add to Cart (centered) ── */
.bp-total-above-cart {
  text-align: center;
  font-weight: 700;
  font-size: 32px;
  margin: 12px 0;
  color: #01a9bd;
}

/* ── Fitting type spacing ── */
.fitting-type-selector {
  margin-top: 10px;
  margin-bottom: 35px;
}

/* ── Calculator layout ── */
.blinds-pricing-calculator {
  margin-bottom: 20px;
}
.calc-field-container {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}
.calc-field-container .field-wrap {
  flex: 1;
}
.calc-field-container .field-wrap label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
}
.calc-field-container .field-wrap input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}
.bp-unit-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 3px;
}

/* ── Price calculator area ── */
.price-calculator-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}
.bp-calculate {
  padding: 10px 24px;
  background: #01a9bd;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.bp-calculate:hover {
  background: #018a9b;
}
.bp-result {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.bp-result .loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #ddd;
  border-top-color: #01a9bd;
  border-radius: 50%;
  animation: bp-spin 0.6s linear infinite;
}
@keyframes bp-spin {
  to { transform: rotate(360deg); }
}

/* ── Buttons ── */
.bp-add-to-cart {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
}
.bp-order-sample {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: transparent;
  border: 2px solid #01a9bd;
  color: #01a9bd;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.bp-order-sample:hover {
  background: #01a9bd;
  color: #fff;
}

/* ── "Starting From" shortcode ── */
.skye-starting-from {
  font-weight: 600;
  color: #059669;
}
.skye-starting-from .skye-from-prefix {
  font-weight: 400;
}

/* ── Calculator title container ── */
.calc-title-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.calc-title-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-title-left h4 {
  margin: 0 !important;
  font-size: 1.1rem;
}
.calc-title-container > p {
  margin: 0 !important;
  font-weight: 600;
  color: #059669;
}

/* ── Guide Buttons ── */
.bp-guide-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.bp-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.bp-guide-btn:hover {
  border-color: #9ca3af;
  background: #f9fafb;
  color: #1f2937;
}
.bp-guide-btn svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

/* ── Free sample class in cart ── */
.is-free-sample td.product-price,
.is-free-sample td.product-subtotal {
  color: #059669;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .calc-field-container {
    flex-direction: column;
  }
  .calc-title-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .bp-guide-buttons {
    flex-direction: row;
    gap: 6px;
  }
  .bp-guide-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  .simple-product-addons {
    flex-direction: column;
  }
}
