/* PrintBox Cart Add-ons — toggle în coș (vizual identic cu snippet-urile originale). */

.pbca-option {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  border: 1px solid rgba(200, 200, 200, 0.4);
  border-left: 3px solid rgba(200, 200, 200, 0.3);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  pointer-events: none;
  opacity: 0.5;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.pbca-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), rgba(255,255,255,0.6), rgba(255,255,255,0.4), transparent);
  animation: pbca-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pbca-shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}
.pbca-js-ready .pbca-option { pointer-events: auto; opacity: 1; }
.pbca-option:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.1); border-color: rgba(150,150,150,0.5); }
.pbca-option.pbca-active {
  background: rgba(232, 245, 233, 0.7);
  border-color: rgba(76, 175, 80, 0.3);
  border-left-color: #4CAF50;
  box-shadow: 0 2px 16px rgba(76, 175, 80, 0.12);
}
.pbca-option.pbca-active::before { animation: none; display: none; }

.pbca-toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.pbca-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.pbca-switch { position: relative; width: 44px; min-width: 44px; height: 24px; background: #ccc; border-radius: 12px; transition: background 0.3s ease; }
.pbca-switch::after {
  content: ''; position: absolute; width: 20px; height: 20px; background: #fff; border-radius: 50%;
  top: 2px; left: 2px; transition: transform 0.3s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.pbca-checkbox:checked + .pbca-switch { background: #4CAF50; }
.pbca-checkbox:checked + .pbca-switch::after { transform: translateX(20px); }

.pbca-text { line-height: 1.3; flex: 1; min-width: 0; font-size: clamp(11px, 3.2vw, 14px); }
.pbca-tag-group { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; margin-left: auto; flex-shrink: 0; }
.pbca-price { display: inline-block; font-weight: 700; color: #2e7d32; background: #e8f5e9; padding: 1px 7px; border-radius: 3px; font-size: 13px; }
.pbca-badge {
  display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  color: #fff; background: #ff9800; padding: 2px 7px; border-radius: 3px; white-space: nowrap; line-height: 1.4;
  transition: background 0.3s ease; min-width: 75px; text-align: center;
}
.pbca-option.pbca-active .pbca-badge { background: #4CAF50; }
.pbca-badge.pbca-badge-loading { background: #78909c; }
.pbca-badge-dot { animation: pbca-dot-blink 1.4s infinite; opacity: 0; }
.pbca-badge-dot:nth-child(1) { animation-delay: 0s; }
.pbca-badge-dot:nth-child(2) { animation-delay: 0.2s; }
.pbca-badge-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pbca-dot-blink { 0%,20% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

.pbca-body { margin-left: 54px; margin-top: 4px; }
.pbca-subtitle { color: #666; display: block; font-size: 12px; text-align: center; }
.pbca-social { display: inline-block; font-size: 11px; color: #e65100; font-weight: 600; margin-left: 6px; }
.pbca-details-toggle { color: #0073aa; text-decoration: none; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; }
.pbca-details-toggle .pbca-dt-arrow { transition: transform 0.3s ease; font-size: 10px; }
.pbca-details {
  display: none; margin-top: 8px; padding: 10px; background: #fff; border-radius: 4px;
  border-left: 3px solid #0073aa; font-size: 13px; color: #555; transition: border-color 0.3s ease;
}
.pbca-option.pbca-active .pbca-details { border-left-color: #4CAF50; }
.pbca-details strong { color: #333; }
.pbca-details ul { margin: 6px 0 0 0; padding-left: 16px; }
.pbca-details li { margin-bottom: 3px; }
.pbca-recommendation { margin-top: 8px; padding: 6px 8px; background: #f0f8ff; border-radius: 4px; border: 1px solid #b3d9ff; transition: all 0.3s ease; }
.pbca-option.pbca-active .pbca-recommendation { background: #f0f8f0; border-color: #a5d6a7; }
.pbca-recommendation small { color: #2c5aa0; font-size: 12px; transition: color 0.3s ease; }
.pbca-option.pbca-active .pbca-recommendation small { color: #2e7d32; }

.pbca-error {
  display: none; color: #d32f2f; font-size: 12px; margin-top: 6px; padding: 6px 10px;
  background: #ffebee; border-radius: 4px; border-left: 3px solid #d32f2f;
}
.pbca-option.pbca-loading .pbca-toggle-label { pointer-events: none; opacity: 0.7; }
.pbca-spinner { display: none; align-items: center; gap: 6px; font-size: 12px; color: #888; margin-top: 4px; }
.pbca-option.pbca-loading .pbca-spinner { display: inline-flex; }
.pbca-spinner::before {
  content: ''; width: 14px; height: 14px; border: 2px solid #ddd; border-top-color: #4CAF50;
  border-radius: 50%; animation: pbca-spin 0.6s linear infinite;
}
@keyframes pbca-spin { to { transform: rotate(360deg); } }

@media (min-width: 769px) {
  .pbca-text, .pbca-subtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 768px) {
  .pbca-body { margin-left: 0; margin-top: 8px; }
}
@media (max-width: 600px) {
  .pbca-toggle-label { flex-wrap: wrap; }
  .pbca-text { flex: 1; min-width: 0; white-space: normal; }
  .pbca-tag-group { flex-direction: row-reverse; justify-content: center; width: 100%; margin-left: 0; margin-top: 4px; gap: 6px; }
  .pbca-price { font-size: 11px; }
  .pbca-subtitle, .pbca-social { font-size: 10px; }
  .pbca-details-toggle, .pbca-details, .pbca-details li { font-size: 11px; }
  .pbca-recommendation small { font-size: 10px; }
}
