@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");

.cwc-button {
  font-family: "Ubuntu", sans-serif;
  background-color: rgba(0, 128, 138, 0.15);
  border: 1px solid rgba(0, 151, 167, 0.35);
  color: #0097A7;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cwc-button:hover {
  background-color: #00AEC1;
  color: #F8F3F7;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 174, 193, 0.35);
}

.cwc-button:focus-visible {
  outline: 2px solid #0097A7;
  outline-offset: 2px;
}

.cwc-button.connected {
  background-color: #33C2D1;
  color: #F8F3F7;
  border: none;
}

.cwc-button.connected:hover {
  background-color: #00AEC1;
  color: #F8F3F7;
}

/* Verify Discount Button - Match Fullscript Button Styling */
#cwc-verify-discount-button {
  background-color: #00808a;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 25px;
  padding-top: 12px;
  padding-bottom: 10px;
}

#cwc-verify-discount-button:hover {
  background-color: #00666f;
  color: #1f2123;
  border-color: #ffffff;
}

#cwc-wallet-panel {
  position: fixed;
  top: 0;
  right: -333px;
  width: 333px;
  height: 100%;
  background-color: #00454C;
  color: #E8FCFF;
  transition: right 0.3s ease;
  z-index: 10003;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  padding-top: 40px;
}

#cwc-wallet-panel.active {
  right: 0;
}

#cwc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
}

#cwc-overlay.active {
  display: block;
}

.cwc-wallet-option {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(0, 151, 167, 0.2);
  cursor: pointer;
}

.cwc-wallet-option:hover {
  background-color: rgba(0, 174, 193, 0.15);
}

.cwc-wallet-option img {
  width: 24px;
  height: 24px;
  margin-right: 15px;
}

#cwc-legal-text {
  font-family: "Ubuntu", sans-serif;
  font-size: 8pt;
  padding: 15px;
  color: rgba(232, 252, 255, 0.55);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

#cwc-legal-text a {
  color: #0097A7;
  text-decoration: none;
}

#cwc-legal-text a:hover {
  text-decoration: underline;
}

/* Notification System */
#cwc-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 4px;
  font-family: "Ubuntu", sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  opacity: 0;
  transform: translateX(450px);
  transition: all 0.3s ease;
  pointer-events: none;
}

#cwc-notification.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

#cwc-notification.error {
  background-color: #ff4444;
  color: white;
  border-left: 4px solid #cc0000;
}

#cwc-notification.success {
  background-color: #33C2D1;
  color: white;
  border-left: 4px solid #0097A7;
}

#cwc-notification.info {
  background-color: #2196F3;
  color: white;
  border-left: 4px solid #0b7dda;
}

#cwc-notification .cwc-notification-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
  line-height: 1;
}

#cwc-notification .cwc-notification-close:hover {
  opacity: 1;
}

/* Delegation Modal */
#cwc-delegation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
}

#cwc-delegation-modal.active {
  display: flex;
}

.cwc-delegation-content {
  background-color: #F8F3F7;
  border-radius: 8px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  font-family: "Ubuntu", sans-serif;
  color: #00454C;
  position: relative;
}

.cwc-delegation-header {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1F7A97;
}

.cwc-delegation-message {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #00454C;
}

.cwc-pool-id-display {
  background-color: rgba(0, 151, 167, 0.07);
  border: 1px solid rgba(0, 151, 167, 0.3);
  border-radius: 4px;
  padding: 12px;
  margin: 15px 0;
  font-family: monospace;
  font-size: 12px;
  word-break: break-all;
  color: #1F7A97;
}

.cwc-delegation-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.cwc-delegation-button {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-family: "Ubuntu", sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cwc-delegation-button.primary {
  background-color: #00AEC1;
  color: #F8F3F7;
}

.cwc-delegation-button.primary:hover {
  background-color: #0097A7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 174, 193, 0.35);
}

.cwc-delegation-button.primary:focus-visible {
  outline: 2px solid #00AEC1;
  outline-offset: 2px;
}

.cwc-delegation-button.secondary {
  background-color: transparent;
  color: #0097A7;
  border: 1px solid rgba(0, 151, 167, 0.4);
}

.cwc-delegation-button.secondary:hover {
  background-color: rgba(0, 151, 167, 0.08);
  color: #0097A7;
}

.cwc-delegation-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(0, 151, 167, 0.7);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}

.cwc-delegation-close:hover {
  color: #0097A7;
}

/* Discount Verification Modal */
#cwc-discount-verification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
}

#cwc-discount-verification-modal.active {
  display: flex;
}

.cwc-verification-content {
  background-color: #F8F3F7;
  border-radius: 8px;
  padding: 30px;
  max-width: 550px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  font-family: "Ubuntu", sans-serif;
  color: #00454C;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.cwc-verification-header {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1F7A97;
  text-align: center;
}

.cwc-verification-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(0, 151, 167, 0.7);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}

.cwc-verification-close:hover {
  color: #0097A7;
}

.cwc-verification-message {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #00454C;
  text-align: center;
}

.cwc-verification-step {
  min-height: 200px;
}

/* Discount Tier Circle Display */
.cwc-discount-tiers {
  text-align: center;
  margin: 20px 0 30px 0;
}

.cwc-tier-label {
  font-size: 14px;
  color: #0097A7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.cwc-tier-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #0097A7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  background: linear-gradient(135deg, #E8FCFF 0%, #C6F9FF 100%);
  box-shadow: 0 0 20px rgba(0, 151, 167, 0.2), inset 0 0 16px rgba(0, 151, 167, 0.08);
}

#cwc-discount-percentage {
  font-size: 42px;
  font-weight: 700;
  color: #00454C;
}

.cwc-tier-name {
  font-size: 18px;
  font-weight: 500;
  color: #1F7A97;
  text-transform: capitalize;
}

/* Verification Details */
.cwc-verification-details {
  background-color: rgba(0, 151, 167, 0.07);
  border-radius: 6px;
  padding: 20px;
  margin: 20px 0;
}

.cwc-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 151, 167, 0.15);
}

.cwc-detail-row:last-child {
  border-bottom: none;
}

.cwc-detail-label {
  font-size: 14px;
  color: #0097A7;
  font-weight: 500;
}

.cwc-detail-value {
  font-size: 16px;
  color: #1F7A97;
  font-weight: 600;
}

/* Discount Range Bar */
.cwc-discount-range {
  margin: 25px 0;
}

.cwc-range-label {
  font-size: 13px;
  color: #0097A7;
  text-align: center;
  margin-bottom: 10px;
}

.cwc-range-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(0, 151, 167, 0.12);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.cwc-range-progress {
  height: 100%;
  background: linear-gradient(90deg, #0097A7 0%, #33C2D1 100%);
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(0, 151, 167, 0.5);
}

.cwc-range-markers {
  position: relative;
  font-size: 11px;
  color: rgba(0, 69, 76, 0.5);
  margin-top: 5px;
  height: 16px;
}

.cwc-range-markers span {
  position: absolute;
  transform: translateX(-50%);
}

.cwc-range-markers span:nth-child(1) {
  left: 0%;
  transform: translateX(0);
}

.cwc-range-markers span:nth-child(2) {
  left: 40%;
}

.cwc-range-markers span:nth-child(3) {
  left: 100%;
  transform: translateX(-100%);
}

/* Email Section */
.cwc-email-section {
  margin: 25px 0;
}

.cwc-email-section label {
  display: block;
  font-size: 14px;
  color: #00454C;
  margin-bottom: 10px;
  line-height: 1.4;
}

.cwc-email-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(0, 151, 167, 0.35);
  border-radius: 4px;
  background-color: #ffffff;
  color: #00454C;
  font-family: "Ubuntu", sans-serif;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.cwc-email-input:focus {
  outline: none;
  border-color: #0097A7;
  box-shadow: 0 0 8px rgba(0, 151, 167, 0.25);
}

.cwc-email-input::placeholder {
  color: rgba(0, 151, 167, 0.45);
}

/* Verification Buttons */
.cwc-verification-buttons {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.cwc-button.primary,
.cwc-button.secondary {
  flex: 1;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
}

.cwc-button.primary {
  background-color: #00AEC1;
  color: #F8F3F7;
  border: none;
}

.cwc-button.primary:hover {
  background-color: #0097A7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 174, 193, 0.35);
}

.cwc-button.secondary {
  background-color: transparent;
  color: #0097A7;
  border: 1px solid rgba(0, 151, 167, 0.4);
}

.cwc-button.secondary:hover {
  background-color: rgba(0, 151, 167, 0.08);
  color: #0097A7;
}

/* Responsive Design */
@media (max-width: 600px) {
  .cwc-verification-content {
    padding: 20px;
  }

  .cwc-verification-header {
    font-size: 22px;
  }

  .cwc-tier-circle {
    width: 120px;
    height: 120px;
  }

  #cwc-discount-percentage {
    font-size: 36px;
  }

  .cwc-verification-buttons {
    flex-direction: column;
  }
}

