body.charitable_page_charitable-settings .charitable-square-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 14px;
  margin: 0;
  padding: 8px 12px;
  gap: 10px;
  text-decoration: none;
  width: fit-content;
}
body.charitable_page_charitable-settings .charitable-square-btn.charitable-square-live-btn {
  background-color: #383f49;
  color: #fff;
}
body.charitable_page_charitable-settings .charitable-square-btn.charitable-square-sandbox-btn {
  background-color: #fff;
  color: #383f49;
  border: 1px solid #383f49;
}
body.charitable_page_charitable-settings .charitable-square-btn svg {
  width: 32px;
  height: 32px;
  margin-left: -2px;
}
body.charitable_page_charitable-settings .charitable-square-btn + p.desc {
  margin-top: 10px !important;
}
body.charitable_page_charitable-settings .charitable-square-settings-actions-message {
  background-color: #fff;
  color: #383f49;
  border: 1px solid #a2a2a2;
  padding: 10px;
  border-radius: 5px;
}
body.charitable_page_charitable-settings .charitable-square-settings-actions-title-testmode-sandbox {
  /* green */
  color: #008000;
}
body.charitable_page_charitable-settings .charitable-square-settings-actions-title-testmode-live {
  /* red */
  color: #ff0000;
}
body.charitable_page_charitable-settings .charitable-success-icon {
  background-image: url("../../images/icons/check-circle.svg");
  background-repeat: no-repeat;
  display: inline-block;
  width: 17px;
  height: 17px;
  background-size: contain;
  position: relative;
  top: 4px;
  margin-right: 10px;
}
body.charitable_page_charitable-settings .charitable-square-connected {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
body.charitable_page_charitable-settings .charitable-square-connected > p:first-of-type {
  display: flex;
  align-items: center;
  margin: 0;
  width: 100%;
}
body.charitable_page_charitable-settings .charitable-square-connected > p:first-of-type strong {
  margin-left: 5px;
}
body.charitable_page_charitable-settings .charitable-square-connected > p:first-of-type::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  background-image: url("../../images/icons/check-circle.svg");
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: 10px;
  flex-shrink: 0;
}
body.charitable_page_charitable-settings .charitable-square-connected > span.charitable-success-icon {
  display: none;
}
body.charitable_page_charitable-settings .charitable-square-connected > span.charitable-error-icon + * {
  display: flex;
  align-items: center;
  margin: 0;
  width: 100%;
}
body.charitable_page_charitable-settings .charitable-square-connected > span.charitable-error-icon + *::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  background-image: url("../../images/icons/exclamation-circle.svg");
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: 10px;
  flex-shrink: 0;
}
body.charitable_page_charitable-settings .charitable-square-connected > span.charitable-error-icon {
  display: none;
}
body.charitable_page_charitable-settings .charitable-square-connected > p.charitable-square-disconnect-btn {
  margin-top: 10px;
  width: 100%;
}
body.charitable_page_charitable-settings .charitable-square-connected > span.charitable-error-icon + :not(p) {
  display: flex;
  align-items: center;
  margin: 0;
  width: 100%;
}
body.charitable_page_charitable-settings .charitable-square-connected > span.charitable-error-icon + :not(p)::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  background-image: url("../../images/icons/exclamation-circle.svg");
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: 10px;
  flex-shrink: 0;
}
body.charitable_page_charitable-settings .charitable-square-disconnect-btn {
  margin-top: 20px !important;
}
body.charitable_page_charitable-settings .charitable-square-disconnect-btn a.charitable-btn-md {
  min-height: auto !important;
  border-radius: 0 !important;
}
body.charitable_page_charitable-settings .charitable-square-connnected {
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.charitable_page_charitable-settings .charitable-square-connnected p.charitable-square-disconnect-btn {
  width: 100% !important;
}
body.charitable_page_charitable-settings .charitable-square-refresh-btn {
  border-radius: 0 !important;
  margin-right: 10px !important;
}
body.charitable_page_charitable-settings .charitable-error-icon {
  background-image: url("../../images/icons/exclamation-circle.svg");
  display: inline-block;
  width: 17px;
  height: 17px;
  background-size: contain;
  position: relative;
  top: 4px;
  margin-right: 10px;
}
body.charitable_page_charitable-settings .charitable-btn-connect-webhooks {
  border-radius: 0 !important;
  background-color: #E89940 !important;
  margin-bottom: 10px !important;
  border: 0 !important;
  color: #fff !important;
}

body.charitable-pro.charitable_page_charitable-settings .square-connection-status td,
body.charitable-pro.charitable_page_charitable-settings .square-enable-webhooks td {
  padding-top: 10px !important;
}

body.charitable_page_charitable-settings:not(.charitable-pro) .square-enable-webhooks td {
  padding-top: 10px !important;
}

/* Webhook URL input wrapper and copy icon styles */
body.charitable_page_charitable-settings .charitable-webhook-url {
  margin: 15px 0;
}

body.charitable_page_charitable-settings .charitable-webhook-url label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #23282d;
}

body.charitable_page_charitable-settings .charitable-webhook-url-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

body.charitable_page_charitable-settings .charitable-webhook-url-input-wrapper input {
  width: 100%;
  padding: 8px 50px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  background-color: #f9f9f9;
  color: #666;
}

body.charitable_page_charitable-settings .charitable-webhook-url-input-wrapper input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
}

body.charitable_page_charitable-settings .charitable-copy-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 3px;
  transition: all 0.2s ease;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.charitable_page_charitable-settings .charitable-copy-icon:hover {
  background-color: #f0f0f0;
  color: #0073aa;
}

body.charitable_page_charitable-settings .charitable-copy-icon:active {
  background-color: #e0e0e0;
}

body.charitable_page_charitable-settings .charitable-copy-icon svg {
  width: 14px;
  height: 14px;
  transition: all 0.2s ease;
}

body.charitable_page_charitable-settings .charitable-copy-icon.copied {
  color: #46b450;
  background-color: #f0f8f0;
}

body.charitable_page_charitable-settings .charitable-copy-icon.copied::after {
  content: "Copied!";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #46b450;
  color: white;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 10;
}

body.charitable_page_charitable-settings .charitable-copy-icon.copied::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #46b450;
  z-index: 10;
}

body.charitable_page_charitable-settings .charitable-webhook-manual-setup .charitable-help {
  margin: 15px 0;
  padding: 12px 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #0073aa;
  border-radius: 0 4px 4px 0;
}

body.charitable_page_charitable-settings .charitable-webhook-manual-setup .charitable-help p {
  margin: 0 0 8px 0;
  color: #555;
  line-height: 1.4;
}

body.charitable_page_charitable-settings .charitable-webhook-manual-setup .charitable-help p:last-child {
  margin-bottom: 0;
}

body.charitable_page_charitable-settings .charitable-webhook-manual-setup .charitable-help p strong {
  color: #23282d;
}

body.charitable_page_charitable-settings .charitable-webhook-not-connected {
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #dc3232;
  border-radius: 0 4px 4px 0;
}

body.charitable_page_charitable-settings .charitable-webhook-not-connected p {
  margin: 0 !important;
  color: #555;
}
