.wcpi-wrapper {
  margin-top: 16px;
}

.wcpi-open-btn {
  background: #cc1f1f;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s ease, transform 0.05s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(204, 31, 31, 0.18);
}

.wcpi-open-btn:hover { background: #b81717; }
.wcpi-open-btn:active { transform: translateY(1px); }
.wcpi-open-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(204,31,31,0.18), 0 6px 18px rgba(204, 31, 31, 0.18);
}

.wcpi-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.wcpi-modal.is-open {
  display: block;
}

.wcpi-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.wcpi-dialog {
  position: relative;
  max-width: 420px;
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.25);
  padding: 18px;
  z-index: 2;
  border-top: 4px solid #cc1f1f;
}

.wcpi-dialog h3 {
  margin: 0 28px 12px 0;
  font-size: 18px;
}

.wcpi-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

#wcpi-form label {
  display: block;
  font-size: 13px;
  margin: 8px 0 4px;
  color: #333;
}

#wcpi-form input,
#wcpi-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  box-sizing: border-box;
}

#wcpi-form input:focus,
#wcpi-form textarea:focus {
  outline: none;
  border-color: #cc1f1f;
  box-shadow: 0 0 0 2px rgba(204,31,31,0.1);
}

.wcpi-submit-btn {
  width: 100%;
  margin-top: 12px;
  background: #cc1f1f;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 600;
}

.wcpi-submit-btn:hover { background: #b81717; }
.wcpi-submit-btn[disabled] { opacity: 0.7; cursor: not-allowed; }

.wcpi-status {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13px;
}

.wcpi-status.success { color: #0b7a2c; }
.wcpi-status.error { color: #b81717; }

@media (max-width: 768px) {
  .wcpi-wrapper {
    width: 100%;
  }

  .wcpi-open-btn {
    width: 100%;
    display: block;
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 10px;
    text-align: center;
  }

  .wcpi-dialog {
    margin: 4vh 12px 0;
    max-width: none;
    padding: 16px;
    border-radius: 12px;
  }

  .wcpi-dialog h3 {
    font-size: 17px;
  }

  #wcpi-form input,
  #wcpi-form textarea {
    font-size: 16px;
  }
}
