/* assets/css/frontend-style.css */
/* [The CSS code from the provided document] */
.jp-pricing-breakdown {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  position: relative;
}
.jp-variable-container {
  min-height: 150px;
}
.jp-variable-notice-box {
  padding: 30px 20px;
  text-align: center;
}
.jp-variable-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #666;
  font-size: 15px;
  margin: 0;
}
.jp-variable-notice .dashicons {
  color: #0a616a;
  font-size: 24px;
  width: 24px;
  height: 24px;
}
.jp-live-indicator {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  align-items: center;
  gap: 5px;
  background: #00a32a;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 10;
}
.jp-live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: jp-pulse 2s infinite;
}
@keyframes jp-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.jp-breakdown-title {
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #0a616a;
  color: #0a616a;
  font-size: 18px;
}
.jp-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}
.jp-breakdown-table tbody tr {
  border-bottom: 1px solid #dee2e6;
}
.jp-breakdown-table td {
  padding: 12px 8px;
  vertical-align: middle;
}
.jp-breakdown-label {
  font-weight: 500;
  width: 35%;
}
.jp-breakdown-calculation {
  color: #666;
  font-size: 14px;
  width: 35%;
}
.jp-breakdown-table td:last-child {
  text-align: right;
  font-weight: 600;
  width: 30%;
}
.jp-breakdown-table .jp-price {
  color: #0a616a;
  font-size: 16px;
}
.jp-subtotal-row td {
  padding-top: 15px !important;
  border-top: 2px solid #0a616a !important;
  font-size: 16px;
}

.jp-total-row {
  border-radius: 20px;
  background-color: #0a616a;
  padding: 10px 20px; /* to see rounded edges clearly */
  color: #fff; /* optional for contrast */
}
.jp-total-row td {
  padding: 15px 10px !important;
  font-size: 18px;
  border: none !important;
}
.jp-total-row .jp-breakdown-label strong,
.jp-total-row .jp-price strong {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.jp-free-badge {
  background: #00a32a;
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}
.jp-free-price {
  color: #00a32a;
  margin-left: 5px;
}
.jp-info-boxes {
  display: none;
  margin-top: 15px;
}
.jp-gold-rate-info {
  margin: 10px 0;
  padding: 10px;
  background: #fff3cd;
  border-left: 3px solid #ffc107;
  border-radius: 4px;
}
.jp-gold-rate-info small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #856404;
}
.jp-live-update-info {
  margin: 10px 0 0 0;
  padding: 10px;
  background: #d1f2eb;
  border-left: 3px solid #00a32a;
  border-radius: 4px;
}
.jp-live-update-info small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0c5460;
}
.jp-gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin: 5px 0;
}
.jp-badge-karat {
  font-size: 14px;
}
.jp-live-badge {
  background: #00a32a;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 9px;
}
.jp-pricing-breakdown.jp-loading {
  opacity: 0.6;
  pointer-events: none;
}
.jp-pricing-breakdown.jp-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0a616a;
  border-radius: 50%;
  animation: jp-spin 1s linear infinite;
  z-index: 100;
}
@keyframes jp-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .jp-pricing-breakdown {
    padding: 15px;
  }
  .jp-breakdown-table td {
    font-size: 13px;
    padding: 10px 5px;
  }
  .jp-breakdown-label,
  .jp-breakdown-calculation {
    width: auto;
  }
  .jp-breakdown-calculation {
    font-size: 12px;
  }
  .jp-live-indicator {
    display: none;
    position: static;
    margin-bottom: 15px;
    justify-content: center;
  }
}
.jp-rate-update-notification {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #00a32a;
  color: #fff;
  padding: 15px 30px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  transition: top 0.3s ease;
}
.jp-rate-update-notification.jp-show {
  top: 0;
}
.jp-rate-update-notification .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}
.jp-pricing-breakdown.jp-updating {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}
.jp-pricing-breakdown.jp-updating::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0a616a;
  border-radius: 50%;
  animation: jp-spin 1s linear infinite;
}
