/**
 * wim_extracartrules.css
 */

/* Container */
.wim-rule-conflict {
  margin: 20px 0;
  padding: 20px;
  border: 2px solid #f0ad4e;
  border-radius: 6px;
  background-color: #fffbf2;
}

/* Header */
.wim-conflict-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.wim-conflict-icon {
  font-size: 1.4rem;
}

.wim-conflict-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #856404;
}

/* Pair wrapper */
.wim-rule-choice-wrapper {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Individual rule card */
.wim-rule-card {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  transition: box-shadow 0.2s;
}

.wim-rule-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Badge: code vs auto */
.wim-rule-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wim-rule-code .wim-rule-badge {
  background-color: #d1ecf1;
  color: #0c5460;
}

.wim-rule-auto .wim-rule-badge {
  background-color: #d4edda;
  color: #155724;
}

/* Rule name & discount */
.wim-rule-name {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.wim-rule-discount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e44d26;
}

/* Button */
.wim-rule-card .btn {
  margin-top: auto;
  width: 100%;
}

/* VS separator */
.wim-vs-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  font-weight: 700;
  color: #999;
  font-size: 0.9rem;
}

/* Loading */
.wim-loading {
  text-align: center;
  padding: 10px;
  color: #555;
  font-style: italic;
}

/* Error */
.wim-error {
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 600px) {
  .wim-rule-choice-wrapper {
    flex-direction: column;
  }

  .wim-vs-separator {
    text-align: center;
  }
}


@keyframes wim-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.wim-shake {
    animation: wim-shake 0.6s ease;
}