.btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 250ms ease-in-out ease-in-out, color 250ms ease-in-out ease-in-out, box-shadow 250ms ease-in-out ease-in-out, transform 250ms ease-in-out ease-in-out;
  cursor: pointer;
  text-decoration: none;
  width: 44px;
  height: 44px;
  padding: 0;
}
.btn:disabled {
  cursor: not-allowed;
}
@media (min-width: 768px) {
  .btn {
    width: auto;
    height: auto;
    padding: 12px 16px;
  }
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn:active:not(:disabled) {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: 2px solid #8b0e0e;
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #8b0e0e;
  color: #ffffff;
}
.btn-primary:hover:not(:disabled) {
  background-color: #b41414;
}
.btn-primary:active:not(:disabled) {
  background-color: #6b0a0a;
}

.btn-secondary {
  background-color: #d4af37;
  color: #222222;
}
.btn-secondary:hover:not(:disabled) {
  background-color: #e5c158;
}
.btn-secondary:active:not(:disabled) {
  background-color: #a68a1f;
}

.btn-outline {
  background-color: transparent;
  color: #8b0e0e;
  border: 2px solid #8b0e0e;
}
.btn-outline:hover:not(:disabled) {
  background-color: #8b0e0e;
  color: #ffffff;
}
.btn-outline:active:not(:disabled) {
  background-color: #6b0a0a;
  border-color: #6b0a0a;
}

.btn-ghost {
  background-color: transparent;
  color: #222222;
}
.btn-ghost:hover:not(:disabled) {
  background-color: #f8f8f8;
}

.btn-success {
  background-color: #27ae60;
  color: #ffffff;
}
.btn-success:hover:not(:disabled) {
  background-color: #1e8449;
}

.btn-danger {
  background-color: #e74c3c;
  color: #ffffff;
}
.btn-danger:hover:not(:disabled) {
  background-color: #d62c1a;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 14px;
}
@media (min-width: 768px) {
  .btn-sm {
    padding: 8px 12px;
  }
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}
@media (min-width: 768px) {
  .btn-lg {
    padding: 16px 32px;
  }
}

.btn-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .btn-group {
    gap: 12px;
  }
}
.btn-group .btn {
  flex: 0 1 auto;
}
.btn-group .btn.btn-block {
  flex: 1 1 100%;
}

.btn-block {
  width: 100%;
}

.btn-fab {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 100;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .btn-fab {
    bottom: 32px;
    right: 32px;
  }
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
}
.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn.loading {
  position: relative;
  color: transparent;
}
.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 9999px;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-group {
  margin-bottom: 24px;
}
.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #222222;
  font-size: 16px;
}
.form-label .required {
  color: #e74c3c;
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  background-color: #ffffff;
  color: #222222;
  transition: border-color 250ms ease-in-out ease-in-out, box-shadow 250ms ease-in-out ease-in-out;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #8b0e0e;
  box-shadow: 0 0 0 3px rgba(139, 14, 14, 0.1);
}
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background-color: #f8f8f8;
  color: #999999;
  cursor: not-allowed;
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}
.form-input.success,
.form-select.success,
.form-textarea.success {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}
@media (min-width: 768px) {
  .form-textarea {
    min-height: 150px;
  }
}

.form-text {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #666666;
}

.form-error {
  color: #e74c3c;
  font-weight: 600;
}

.form-success {
  color: #27ae60;
  font-weight: 600;
}

.form-checkbox,
.form-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}
.form-checkbox input,
.form-radio input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #8b0e0e;
}
@media (min-width: 768px) {
  .form-checkbox input,
  .form-radio input {
    width: 20px;
    height: 20px;
  }
}
.form-checkbox label,
.form-radio label {
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}
.form-checkbox:last-child,
.form-radio:last-child {
  margin-bottom: 0;
}

.form-checkbox input {
  border-radius: 4px;
}

.form-radio input {
  border-radius: 9999px;
}

.form-checkbox-group,
.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .form-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) {
  .form-row.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .form-row.form-row-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.form-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e0e0e0;
}
.form-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.form-section h3 {
  margin-bottom: 16px;
}

.search-form {
  position: relative;
  display: flex;
  gap: 8px;
}
@media (min-width: 768px) {
  .search-form {
    gap: 12px;
  }
}
.search-form input {
  flex: 1;
  min-width: 0;
}
.search-form button {
  flex-shrink: 0;
}

input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
input[type=number][type=number] {
  -moz-appearance: textfield;
}

.form-number {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-number input {
  flex: 1;
  text-align: center;
}
.form-number button {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f8f8f8;
  font-weight: 700;
  color: #222222;
  transition: background-color 250ms ease-in-out ease-in-out;
}
.form-number button:disabled {
  cursor: not-allowed;
}
.form-number button:hover {
  background-color: #e0e0e0;
}
.form-number button:active {
  background-color: #c4c4c4;
}

.form-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .form-actions {
    gap: 24px;
    justify-content: flex-end;
  }
}
.form-actions button,
.form-actions input[type=submit] {
  flex: 1 1 auto;
}
@media (min-width: 768px) {
  .form-actions button,
  .form-actions input[type=submit] {
    flex: 0 1 auto;
  }
}

.form-floating {
  position: relative;
}
.form-floating label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 16px;
  font-weight: 400;
  color: #666666;
  pointer-events: none;
  transition: top 250ms ease-in-out ease-in-out, font-size 250ms ease-in-out ease-in-out, color 250ms ease-in-out ease-in-out;
}
.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label {
  top: -12px;
  font-size: 14px;
  color: #8b0e0e;
  font-weight: 600;
}
.form-floating input {
  padding-top: 16px;
}

.password-toggle {
  position: relative;
}
.password-toggle .toggle-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px;
  cursor: pointer;
  color: #666666;
  transition: color 250ms ease-in-out ease-in-out;
}
.password-toggle .toggle-btn:disabled {
  cursor: not-allowed;
}
.password-toggle .toggle-btn:hover {
  color: #222222;
}
.password-toggle .toggle-btn svg {
  width: 20px;
  height: 20px;
}

.card, .product-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 250ms ease-in-out ease-in-out, transform 250ms ease-in-out ease-in-out;
}
.card:hover, .product-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-header,
.card-body,
.card-footer {
  padding: 16px;
}
@media (min-width: 768px) {
  .card-header,
  .card-body,
  .card-footer {
    padding: 24px;
  }
}

.card-header {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}
.card-header h3 {
  margin: 0;
  font-size: 18px;
}
@media (min-width: 768px) {
  .card-header h3 {
    font-size: 20px;
  }
}

.card-body:last-child {
  border-radius: 0 0 12px 12px;
}

.card-footer {
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .card-image {
    height: 250px;
  }
}
@media (min-width: 1024px) {
  .card-image {
    height: 300px;
  }
}

.card-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
}
@media (min-width: 768px) {
  .card-title {
    font-size: 20px;
  }
}
.card-title a {
  color: #222222;
}
.card-title a:hover {
  color: #8b0e0e;
}

.card-subtitle {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #666666;
}

.card-text {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #666666;
  line-height: 1.75;
}
.card-text:last-child {
  margin-bottom: 0;
}

.card-elevated {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.card-elevated:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-outline {
  border: 2px solid #8b0e0e;
}

.card-filled {
  background-color: #f8f8f8;
}

.card-dark {
  background-color: #222222;
  color: #ffffff;
  border-color: #333333;
}
.card-dark .card-header {
  background-color: #333333;
  border-color: #666666;
}
.card-dark .card-footer {
  background-color: #333333;
  border-color: #666666;
}
.card-dark .card-title,
.card-dark .card-subtitle {
  color: #ffffff;
}
.card-dark a {
  color: #d4af37;
}
.card-dark a:hover {
  color: #e5c158;
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .card-grid {
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1440px) {
  .card-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.product-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease-in-out ease-in-out;
}
.product-card-image:hover img {
  transform: scale(1.05);
}
.product-card-image .badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

.product-card-content {
  padding: 16px;
}
@media (min-width: 768px) {
  .product-card-content {
    padding: 24px;
  }
}

.product-rating {
  margin-bottom: 8px;
  font-size: 14px;
  color: #666666;
}

.product-price {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #8b0e0e;
}
@media (min-width: 768px) {
  .product-price {
    font-size: 24px;
  }
}
.product-price .original-price {
  margin-right: 12px;
  text-decoration: line-through;
  color: #999999;
  font-size: 18px;
}
.product-price .discount {
  display: inline-block;
  padding: 4px 8px;
  background-color: #e74c3c;
  color: #ffffff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.checkout-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}
@media (min-width: 768px) {
  .checkout-wrapper {
    padding: 32px;
  }
}

.checkout-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .checkout-content {
    grid-template-columns: 2fr 1fr;
    gap: 48px;
  }
}

.checkout-form {
  display: flex;
  flex-direction: column;
}

.checkout-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e0e0e0;
}
.checkout-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.checkout-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .checkout-section h2 {
    font-size: 24px;
  }
}

.billing-address .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .billing-address .form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (min-width: 768px) {
  .billing-address .form-row.full-width {
    grid-template-columns: 1fr;
  }
}

.shipping-section .same-address {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.shipping-section .same-address input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.shipping-section .same-address label {
  margin-bottom: 0;
  cursor: pointer;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 250ms ease-in-out ease-in-out, background-color 250ms ease-in-out ease-in-out;
}
.payment-method:hover {
  border-color: #8b0e0e;
  background-color: #f8f8f8;
}
.payment-method input[type=radio] {
  margin: 0;
  cursor: pointer;
}
.payment-method label {
  margin-bottom: 0;
  cursor: pointer;
  flex: 1;
}
.payment-method.active {
  border-color: #8b0e0e;
  background-color: rgba(139, 14, 14, 0.05);
}

.coupon-code {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #f8f8f8;
  border-radius: 12px;
}
.coupon-code .coupon-form {
  display: flex;
  gap: 12px;
}
@media (min-width: 768px) {
  .coupon-code .coupon-form {
    gap: 16px;
  }
}
.coupon-code .coupon-form input {
  flex: 1;
  min-width: 0;
}
.coupon-code .coupon-form button {
  flex-shrink: 0;
}
.coupon-code .applied-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background-color: #27ae60;
  color: #ffffff;
  border-radius: 8px;
  margin-top: 12px;
}
.coupon-code .applied-coupon button {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: #ffffff;
  cursor: pointer;
  opacity: 0.8;
}
.coupon-code .applied-coupon button:disabled {
  cursor: not-allowed;
}
.coupon-code .applied-coupon button:hover {
  opacity: 1;
}

.order-summary {
  order: -1;
}
@media (min-width: 1024px) {
  .order-summary {
    order: 0;
    position: sticky;
    top: 16px;
    align-self: start;
  }
}

.order-items {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .order-items {
    padding: 24px;
  }
}
.order-items h3 {
  font-size: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 16px;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}
.order-item:last-child {
  border-bottom: none;
}
.order-item .item-details {
  flex: 1;
  min-width: 0;
}
.order-item .item-name {
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-item .item-quantity {
  font-size: 14px;
  color: #666666;
}
.order-item .item-price {
  font-weight: 700;
  color: #8b0e0e;
  white-space: nowrap;
}

.price-summary {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
}
@media (min-width: 768px) {
  .price-summary {
    padding: 24px;
  }
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}
.price-row:last-child {
  border-bottom: none;
}
.price-row span:last-child {
  text-align: right;
}
.price-row.subtotal, .price-row.shipping, .price-row.tax {
  font-size: 16px;
  color: #666666;
}
.price-row.total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid #8b0e0e;
  font-size: 20px;
  font-weight: 700;
  color: #8b0e0e;
}

.place-order {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .place-order {
    flex-wrap: nowrap;
  }
}
.place-order .btn {
  flex: 1;
  min-width: 150px;
}
@media (min-width: 768px) {
  .place-order .btn {
    flex: 0 1 auto;
    min-width: auto;
  }
}
.place-order .terms-agree {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 14px;
}
@media (min-width: 768px) {
  .place-order .terms-agree {
    width: auto;
    margin-top: 16px;
  }
}
.place-order .terms-agree input[type=checkbox] {
  margin: 0;
  cursor: pointer;
}
.place-order .terms-agree a {
  color: #8b0e0e;
}
.place-order .terms-agree a:hover {
  text-decoration: underline;
}

.checkout-progress {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}
@media (min-width: 768px) {
  .checkout-progress {
    gap: 24px;
  }
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}
.progress-step .step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 9999px;
  font-weight: 700;
  color: #222222;
}
@media (min-width: 768px) {
  .progress-step .step-number {
    width: 48px;
    height: 48px;
  }
}
.progress-step .step-label {
  font-size: 14px;
  font-weight: 500;
  color: #666666;
}
@media (min-width: 768px) {
  .progress-step .step-label {
    font-size: 16px;
  }
}
.progress-step.active .step-number {
  background-color: #8b0e0e;
  border-color: #8b0e0e;
  color: #ffffff;
}
.progress-step.active .step-label {
  color: #8b0e0e;
  font-weight: 700;
}
.progress-step.completed .step-number {
  background-color: #27ae60;
  border-color: #27ae60;
  color: #ffffff;
}

.order-thankyou {
  text-align: center;
  padding: 32px;
}
@media (min-width: 768px) {
  .order-thankyou {
    padding: 48px;
  }
}
.order-thankyou .thankyou-icon {
  font-size: 36px;
  margin-bottom: 24px;
}
.order-thankyou h1 {
  color: #27ae60;
  margin-bottom: 16px;
}
.order-thankyou .order-details {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  text-align: left;
}
.order-thankyou .order-details .detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}
.order-thankyou .order-details .detail-row:last-child {
  border-bottom: none;
}
.order-thankyou .order-details .detail-row strong {
  font-weight: 600;
}
.order-thankyou .actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.order-thankyou .actions a, .order-thankyou .actions button {
  flex: 0 1 auto;
}

/* ── Ascunde entry-header pe checkout și thank you ── */
.woocommerce-checkout .entry-header,
.woocommerce-order-received .entry-header {
  display: none !important;
}

/* ============================================================
   WOOCOMMERCE CHECKOUT — targeted overrides
   ============================================================ */

/* ── Coupon toggle bar ── */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  background: #fef9ec !important;
  border-top: 3px solid #f0e2a0 !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  color: #555555 !important;
  font-size: 14px !important;
  padding: 10px 16px !important;
  margin-bottom: 20px !important;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
  display: none !important;
  content: none !important;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
  color: #8b0e0e !important;
  font-weight: 700 !important;
}

/* ── Coupon form ── */
.checkout_coupon.woocommerce-form-coupon {
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 16px !important;
  margin-bottom: 28px !important;
  background: #fafafa !important;
}
.checkout_coupon input#coupon_code {
  border: 1px solid #d0d0d0 !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
}
.checkout_coupon input#coupon_code:focus {
  border-color: #8b0e0e !important;
  box-shadow: 0 0 0 3px rgba(139,14,14,0.08) !important;
  outline: none !important;
}
.checkout_coupon button[name="apply_coupon"] {
  background-color: #8b0e0e !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  width: auto !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
}
.checkout_coupon button[name="apply_coupon"]:hover {
  background-color: #6b0a0a !important;
}

/* ── Section headings in billing/shipping form ── */
.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #222222 !important;
  margin: 0 0 18px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #8b0e0e !important;
}

/* ── Billing/shipping field wrapper — flexbox grid ── */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 20px !important;
}
.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-shipping-fields__field-wrapper .form-row {
  float: none !important;
  clear: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}
.woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-shipping-fields__field-wrapper .form-row-first,
.woocommerce-shipping-fields__field-wrapper .form-row-last {
  flex: 0 0 calc(50% - 10px) !important;
  max-width: calc(50% - 10px) !important;
  width: calc(50% - 10px) !important;
}
.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}
/* Each form-row must be block — Storefront may apply flex */
.woocommerce-checkout .form-row {
  display: block ;
  float: none !important;
}
/* Input wrapper fills container */
.woocommerce-checkout .woocommerce-input-wrapper {
  display: block !important;
  width: 100% !important;
}
/* Keep WooCommerce hidden descriptions hidden (shown via JS tooltip on focus) */
.woocommerce-checkout .woocommerce-input-wrapper .description {
  float: none !important;
}
.woocommerce-checkout .woocommerce-input-wrapper .description.hidden {
  display: none !important;
}
/* Mobile — single column */
@media (max-width: 599px) {
  .woocommerce-billing-fields__field-wrapper .form-row-first,
  .woocommerce-billing-fields__field-wrapper .form-row-last,
  .woocommerce-shipping-fields__field-wrapper .form-row-first,
  .woocommerce-shipping-fields__field-wrapper .form-row-last {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ── Form labels & inputs ── */
.woocommerce-checkout .form-row label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #555555 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-bottom: 5px !important;
  display: block !important;
}
.woocommerce-checkout .form-row abbr[title] {
  color: #8b0e0e;
  text-decoration: none;
}
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  color: #222222 !important;
  background-color: #ffffff !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: #8b0e0e !important;
  box-shadow: 0 0 0 3px rgba(139,14,14,0.08) !important;
  outline: none !important;
}
.woocommerce-checkout .form-row.woocommerce-validated .woocommerce-input-wrapper input {
  border-color: #27ae60 !important;
}
.woocommerce-checkout .form-row.woocommerce-invalid .woocommerce-input-wrapper input {
  border-color: #e74c3c !important;
}

/* ── Right column (#order_review) — sticky card on desktop ── */
@media (min-width: 1024px) {
  #order_review {
    position: sticky !important;
    top: 88px !important;
    background: #fafafa !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    padding: 24px !important;
  }
}

/* ── Reset WooCommerce default #payment styling ── */
#payment {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* ── Section headings inside #payment ── */
#payment_heading,
#shipping_heading,
#order_review_heading {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #888888 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin: 0 0 10px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* ── Payment methods: radio cards ── */
#payment ul.wc_payment_methods.payment_methods {
  list-style: none !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
#payment ul.payment_methods li.wc_payment_method {
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: border-color 0.2s !important;
  list-style: none !important;
}
#payment ul.payment_methods li.wc_payment_method:has(input[name="payment_method"]:checked) {
  border-color: #8b0e0e !important;
  background: rgba(139,14,14,0.03) !important;
}
#payment ul.payment_methods li label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 11px 14px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #222222 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 1. STAREA UNCHECKED: Cerc alb cu border gri */
#payment ul.payment_methods > li.wc_payment_method > input[type=radio]:not(:checked) + label::before {
    content: "\f111" !important;
    content: "\f111" !important; /* Codul de cerc */
    color: #ffffff !important;   /* Facem iconița albă (ca să fie "goală" la interior) */
    background-color: #ffffff !important; /* Fundal alb */
    
    /* Generăm border-ul gri pe elementul în sine */
    border: 2px solid #dcdcdc !important; 
    border-radius: 50% !important; /* Îl rotunjim perfect */
    
    /* Ajustări de dimensiune ca să nu se deformeze */
    width: 15px !important;
    height: 15px !important;
    line-height: 14px !important; /* Aliniază iconița pe verticală în interiorul border-ului */
    text-align: center !important;
    display: inline-block !important;
}

/* 2. STAREA CHECKED: Revine la cercul cu punct colorat */
#payment ul.payment_methods > li.wc_payment_method > input[type=radio]:checked + label::before {
    content: "\f192" !important;
    color: #7f54b3 !important;   /* Culoarea mov/albastru a temei */
    background-color: transparent !important; /* Scoatem fundalul alb */
    border: 2px solid transparent !important;  /* Ascundem border-ul gri de mai sus */
    
    /* Resetăm dimensiunile ca să folosească randeul nativ al temei */
    width: auto !important;
    height: auto !important;
    line-height: inherit !important;
}



#payment ul.payment_methods input[type="radio"] {
  accent-color: #8b0e0e !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  margin: 0 !important;
}
#payment .payment_box {
  padding: 4px 14px 12px !important;
  font-size: 13px !important;
  color: #666666 !important;
  background: none !important;
  border-top: 1px solid #f0f0f0 !important;
  margin: 0 !important;
}

/* ── Shipping container ── */
.shipping_container {
  margin-bottom: 20px !important;
}

/* ── Shipping method radio cards ── */
#shipping_method {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
#shipping_method li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  color: #333333 !important;
  transition: border-color 0.2s, background-color 0.2s !important;
  cursor: pointer !important;
}
#shipping_method li:has(input:checked) {
  border-color: #8b0e0e !important;
  background: rgba(139,14,14,0.03) !important;
}
#shipping_method input[type="radio"] {
  accent-color: #8b0e0e !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  width: 15px !important;
  height: 15px !important;
}
#shipping_method label {
  cursor: pointer !important;
  margin: 0 !important;
  flex: 1 !important;
}

/* ── Notă email pentru livrarea prin Sameday/EasyBox ── */
#shipping_method_0_samedaycourier15ln:checked + label::after {
  content: "Verificați corectitudinea adresei dv. de email indicată mai sus pentru a fi anunțați de Sameday despre livrarea coletului.";
  display: block !important;
  width: 100% !important;
  padding: 10px 0 0 0 !important;
  font-weight: 100 !important;
  font-style: italic !important;
  font-size: 12px !important;
  color: #666666 !important;
}

/* ── Sameday locker picker ── */
.shipping_container .sameday-locker-wrapper,
.shipping_container > div:has(#select_locker),
#select_locker ~ *,
#select_locker {
  box-sizing: border-box !important;
}

/* Container pentru tot blocul Sameday (după lista de metode) */
.woocommerce-shipping-fields .shipping_container > div:last-child,
.sameday_shipping_container {
  margin-top: 8px !important;
}

/* Buton "Arată harta cu locații" */
button#select_locker,
.button.sameday_select_locker {
  display: block !important;
  width: 100% !important;
  margin-top: 10px !important;
  padding: 10px 16px !important;
  background-color: #8b0e0e !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: background-color 0.2s !important;
}
button#select_locker:hover,
.button.sameday_select_locker:hover {
  background-color: #6b0a0a !important;
}

/* Ascunde "Compartiment Sameday" și "Livrează la" (strong-uri din containerul Sameday) */
.shipping_container strong,
button#select_locker + strong,
#showLockerDetails ~ strong {
  display: none !important;
}

/* Detalii locker selectat */
#showLockerDetails {
  display: block !important;
  margin-top: 8px !important;
  padding: 10px 12px !important;
  background: #f8f8f8 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  color: #333333 !important;
  line-height: 1.5 !important;
}

/* ── Order review table ── */
table.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 0 4px !important;
  font-size: 13px !important;
}
table.woocommerce-checkout-review-order-table thead th {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #999999 !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid #e8e8e8 !important;
  background: none !important;
}
table.woocommerce-checkout-review-order-table thead .product-total {
  text-align: right !important;
}
table.woocommerce-checkout-review-order-table tbody td {
  padding: 9px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  vertical-align: top !important;
  background: none !important;
  text-align: left !important;
}
table.woocommerce-checkout-review-order-table .product-name {
  color: #333333 !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}
table.woocommerce-checkout-review-order-table .product-name .product-quantity {
  color: #888888 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}
table.woocommerce-checkout-review-order-table .product-name dl.variation {
  margin: 3px 0 0 !important;
  font-size: 11px !important;
  color: #888888 !important;
}
table.woocommerce-checkout-review-order-table .product-total {
  text-align: right !important;
  font-weight: 600 !important;
  color: #222222 !important;
  white-space: nowrap !important;
}
table.woocommerce-checkout-review-order-table tfoot th,
table.woocommerce-checkout-review-order-table tfoot td {
  padding: 7px 0 !important;
  border-bottom: none !important;
  border-top: 1px solid #f0f0f0 !important;
  background: none !important;
  font-size: 13px !important;
}
table.woocommerce-checkout-review-order-table tfoot td {
  text-align: right !important;
}
table.woocommerce-checkout-review-order-table tfoot th {
  color: #666666 !important;
  font-weight: 400 !important;
}
table.woocommerce-checkout-review-order-table tr.order-total th,
table.woocommerce-checkout-review-order-table tr.order-total td {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #8b0e0e !important;
  border-top: 2px solid #8b0e0e !important;
  padding-top: 11px !important;
}
table.woocommerce-checkout-review-order-table .amount {
  font-weight: 600 !important;
}

/* ── Terms + place order wrapper ── */
.woocommerce-checkout-payment .place-order,
#payment .place-order {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 0 !important;
  background: none !important;
  margin-top: 16px !important;
  float: none !important;
  width: 100% !important;
  clear: both !important;
}
/* Both <p class="form-row terms"> elements */
#payment .place-order .form-row.terms {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: both !important;
  text-align: left !important;
}
/* First <p> — intro text "Pentru a putea plasa..." */
#payment .place-order .form-row.terms:first-of-type {
  font-size: 12px !important;
  color: #888888 !important;
}
/* Second <p> — checkbox + label row */
#payment .place-order .form-row.terms:last-of-type {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
#payment .place-order input[type="checkbox"]#terms {
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
  accent-color: #8b0e0e !important;
  margin: 0 !important;
  cursor: pointer !important;
}
#payment .place-order label[for="terms"].checkbox {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #444444 !important;
  cursor: pointer !important;
}
#payment .place-order label[for="terms"].checkbox a {
  color: #8b0e0e !important;
  font-weight: 600 !important;
}
#payment .place-order .required {
  color: #8b0e0e !important;
}

/* ── Place order button ── */
#place_order {
  display: block !important;
  width: 100% !important;
  background-color: #8b0e0e !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 15px 24px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
  margin-top: 0 !important;
}
#place_order:hover {
  background-color: #6b0a0a !important;
}

.woocommerce-additional-fields__field-wrapper {
    margin-top: 32px;
}

/* ── "Livrezi la o altă adresă?" — chevron icon ── */
h3#ship-to-different-address {
  margin: 16px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
h3#ship-to-different-address label.woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  color: #8b0e0e !important;
  margin: 0 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
/* Hide native checkbox — toggle works via JS */
#ship-to-different-address-checkbox {
  display: none !important;
}
/* Chevron icon after text — default collapsed (points down) */
h3#ship-to-different-address label span::after {
  content: '\f078' !important;
  font-family: 'Font Awesome 5 Free' !important;
  font-weight: 900 !important;
  font-size: 10px !important;
  margin-left: 5px !important;
  display: inline-block !important;
  transition: transform 0.2s !important;
  transform: rotate(0deg) !important;
}
/* Rotate when checkbox is checked (shipping form expanded) */
#ship-to-different-address-checkbox:checked + span::after {
  transform: rotate(180deg) !important;
}

/* ── Ascunde mesajul inline duplicat de termeni (rămâne doar eroarea stilizată de sus) ── */
#terms_description,
p.checkout-inline-error-message {
  display: none !important;
}

/* ── Terms checkbox — ensure visible ── */
#payment .place-order #terms,
.woocommerce-checkout input#terms {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  height: 16px !important;
  width: 16px !important;
  min-width: 16px !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  accent-color: #8b0e0e !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

/* ── Shipping radio bullet — fix `:has()` fallback for older browsers ── */
#shipping_method li input[type="radio"]:checked ~ label {
  color: #8b0e0e !important;
  font-weight: 600 !important;
}
#shipping_method li:has(input:checked) {
  border-color: #8b0e0e !important;
  background: rgba(139, 14, 14, 0.04) !important;
}
/* Explicit checked state without :has() — for browsers that don't support it */
#shipping_method input[type="radio"] {
  accent-color: #8b0e0e !important;
}

/* ── Mobile adjustments ── */
@media (max-width: 767px) {
  .woocommerce-billing-fields > h3,
  .woocommerce-shipping-fields > h3,
  .woocommerce-additional-fields > h3 {
    font-size: 15px !important;
  }

  #order_review {
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 2px solid #e0e0e0 !important;
  }

  #payment ul.payment_methods li label {
    font-size: 13px !important;
  }

  #shipping_method li {
    font-size: 12px !important;
  }

  table.woocommerce-checkout-review-order-table,
  table.woocommerce-checkout-review-order-table thead,
  table.woocommerce-checkout-review-order-table tbody,
  table.woocommerce-checkout-review-order-table tfoot,
  table.woocommerce-checkout-review-order-table tr:not(.d-none),
  table.woocommerce-checkout-review-order-table th:not(.d-none),
  table.woocommerce-checkout-review-order-table td:not(.d-none) {
    display: revert !important;
  }

  /* rândurile cu .d-none rămân ascunse pe mobile */
  table.woocommerce-checkout-review-order-table tr.d-none {
    display: none !important;
  }

  /* ── Radio buttons fizica/juridica — grid 2 col: input | label pe fiecare rând ── */
  #billing_juridica_field .woocommerce-input-wrapper {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 10px 8px !important;
    align-items: center !important;
  }

  /* ── Câmpuri formular — full width pe mobile ── */
  .woocommerce-billing-fields__field-wrapper .form-row-first,
  .woocommerce-billing-fields__field-wrapper .form-row-last,
  .woocommerce-shipping-fields__field-wrapper .form-row-first,
  .woocommerce-shipping-fields__field-wrapper .form-row-last {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* ── Label deasupra input-ului, nu inline ── */
  .woocommerce-checkout .form-row label {
    display: block !important;
    margin-bottom: 4px !important;
  }

  /* ── Input-uri full width ── */
  .woocommerce-checkout .form-row input[type="text"],
  .woocommerce-checkout .form-row input[type="email"],
  .woocommerce-checkout .form-row input[type="tel"],
  .woocommerce-checkout .form-row input[type="number"],
  .woocommerce-checkout .form-row select,
  .woocommerce-checkout .form-row textarea {
    width: 100% !important;
    font-size: 16px !important; /* previne zoom pe iOS */
  }
}

/* ============================================================
   CHECKOUT — additional UX fixes
   ============================================================ */

/* ── Radio buttons: fizica / juridica — make visible ── */
#billing_juridica_field input[type="radio"],
input#billing_juridica_fizica,
input#billing_juridica_juridica {
  appearance: auto !important;
  -webkit-appearance: radio !important;
  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  height: 15px !important;
  width: 15px !important;
  min-width: 15px !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  accent-color: #8b0e0e !important;
  margin: 0 4px 0 0 !important;
  vertical-align: middle !important;
  cursor: pointer !important;
}

#billing_company_field, #billing_cui_field {
    display: none;
}
/* Labels lângă radio: fizica / juridica */
#billing_juridica_field label,
#billing_juridica_field .woocommerce-input-wrapper label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #444444 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
  margin-right: 16px !important;
  margin-bottom: 0 !important;
}
#billing_juridica_field .woocommerce-input-wrapper {
  display: flex ;
  flex-wrap: wrap !important;
  gap: 4px 0 !important;
  align-items: center !important;
}

/* ── Radio buttons: payment methods — Storefront has custom ::before styling,
   do NOT force appearance:auto or we get double circles ── */
#payment ul.payment_methods input[type="radio"] {
  accent-color: #8b0e0e !important;
  cursor: pointer !important;
}

/* ── Shipping method radio — same fix ── */
#shipping_method input[type="radio"] {
  appearance: auto !important;
  -webkit-appearance: radio !important;
  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  opacity: 1 !important;
  visibility: visible !important;
  accent-color: #8b0e0e !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

/* ── "COMANDA TA" heading — left align ── */
#order_review_heading {
    display: none;
}

/* ── "Livrezi la o altă adresă?" — spacing ── */
h3#ship-to-different-address {
  margin: 20px 0 20px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #e8e8e8 !important;
}

/* ── STRADA custom description — styled as hint ── */
p.custom_checkout_field {
  font-size: 12px !important;
  color: #888888 !important;
  font-style: italic !important;
  margin: 2px 0 6px !important;
  line-height: 1.4 !important;
}

/* ── WooCommerce error notices — fix icon + style ── */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout ul.woocommerce-error {
  background: #fff3f3 !important;
  border-left: 4px solid #e74c3c !important;
  border-top: none !important;
  color: #c0392b !important;
  border-radius: 6px !important;
  padding: 12px 16px 12px 40px !important;
  margin-bottom: 20px !important;
  list-style: none !important;
  position: relative !important;
}
.woocommerce-checkout .woocommerce-error::before {
  font-family: 'Font Awesome 5 Free' !important;
  font-weight: 900 !important;
  content: '\f06a' !important;
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 16px !important;
  color: #e74c3c !important;
  display: block !important;
}
.woocommerce-checkout .woocommerce-error li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.woocommerce-checkout .woocommerce-error li a {
  color: #c0392b !important;
  font-weight: 700 !important;
}

/* ── Shipping method items (clasă generică) ── */
.shipping_method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background-color 250ms ease-in-out, border-color 250ms ease-in-out;
}
.shipping_method:hover {
  background-color: #ffffff;
  border-color: #8b0e0e;
}
.shipping_method input[type="radio"] {
  cursor: pointer;
}
.shipping_method label {
  flex: 1;
  cursor: pointer;
  margin-bottom: 0;
}
