@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.woff2") format("woff2"),
    url("../fonts/Montserrat-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Medium.woff2") format("woff2"),
    url("../fonts/Montserrat-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"),
    url("../fonts/Montserrat-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

img.regisy-logo {
    width: 100px;
}

@media screen and (max-width: 767px){
    img.regisy-logo {
        width: 90px;
    }
    }

#wpwrap {
  background: #F8FAFF;
}

.wrap.regisy-settings {
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  letter-spacing: -0.0125em;
  padding: 10px;
}

a {
    color: #5d63ff;
    font-weight: 600;
}

a:hover {
    color: #6c72ff;
    font-weight: 600;
}

.form-wrap p, 
p.description {
    color: #404040;
}

p#below-description {
    margin-top: 10px;
}

progress#sync-progress-bar {
    width: 100%;
}

input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px!important;
}

input[type=text] {
    padding: 5px!important;
    border: 2px solid #d3defa!important;
}

input[type=text]:focus {
    box-shadow: 0 0 0 1px #bbbcda!important;
}

button {
  margin-bottom: 5px;
  padding: 15px 15px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 13px!important;
  font-weight: 500!important;
}

.button-container {
  display: flex;
  flex-direction: column;
}

button#sync-existing-users-button {
  background: transparent;
  color: #4248fc;
  border: 2px solid #4248fc;
}

button#sync-existing-users-button:hover {
  color: #5055ff;
  border: 2px solid #7189fa;
}

button#test-connection-button {
  background: #4248fc;
  color: #fff;
}

button#test-connection-button:hover {
    background: #5055ff;
}

p#test-connection-notice {
    font-weight: 700;
    color: #28863e;
}

p#test-connection-error-notice {
    font-weight: 700;
    color: #ff0041;
}
p#sync-description {
    font-weight: 600;
}
p#sync-description.description.sync-in-progress {
    font-weight: 700;
    color: #2c33f4;
}

p#sync-description.description.sync-completed {
    font-weight: 700;
    color: #28863e;
}

.wp-core-ui .button-primary {
    background: #4248fc;
    border: none;
    border-radius: 50px;
    padding: 5px 20px;
    font-weight: 500;
    width: inherit;
}

.wp-core-ui .button-primary:hover {
  background: #5055ff!important;
  border-color: #5055ff!important;
}


h2 {
    margin: 50px 0!important;
}
@media screen and (max-width: 767px) {
    h2 {
    margin: 30px 0!important;
    }
}

th {
    margin-top: 30px!important;
}

@media screen and (max-width: 767px) {
p.submit {
    text-align: center;
    }
}

.wp-core-ui .button-primary-disabled, .wp-core-ui .button-primary.disabled, .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary[disabled] {
    color: #ffffff !important;
    background: #4248fc !important;
    border-color: #4248fc !important;
}

body .notice {
    border-radius: 4px;
    background: #ececec;
    border: 1px solid #ddd;
    border-left-color: #ffa03a;
    border-left-width: 4px;
    box-shadow: none;
}
body .notice.notice-success {
    border-radius: 4px;
    background: #ececec;
    border: 1px solid #ddd;
    border-left-color: #3a4fff;
    border-left-width: 4px;
    box-shadow: none;
}
body .notice.notice-success.is-dismissible {
    border-radius: 4px;
    background: #ececec;
    border: 1px solid #ddd;
    border-left-color: #ff0041;
    border-left-width: 4px;
    box-shadow: none;
}
body .notice.notice-error.is-dismissible {
    border-radius: 4px;
    background: #ececec;
    border: 1px solid #ddd;
    border-left-color: #ff0041;
    border-left-width: 4px;
    box-shadow: none;
}

/* Regisy settings: center & shrink the settings table */
.wrap.regisy-settings .form-table-main{
  max-width: 600px;          /* shrink width */
  margin: 24px auto;          /* center horizontally */
  padding: 16px 20px;         /* breathing room */
  border: 2px solid #d8e2ff!important;  /* WP admin subtle border */
  border-radius: 12px;
}

.wrap.regisy-settings .form-table{
  width: 100%;
  margin: 0 auto;
}

.wrap.regisy-settings .form-table th,
.wrap.regisy-settings .form-table td{
  display: block;             /* stack label over input for clean center layout */
  padding: 0;                 /* remove default table padding */
}

.wrap.regisy-settings label[for="regisy_api_key"]{
  display: inline-block;
  font-weight: 600;
  margin: 0 0 8px;
}

.wrap.regisy-settings #regisy_api_key{
  width: 100%;
  margin: 0 auto 12px;
  border: 2px solid #d8e2ff!important;
  min-height: 40px;
}

.wrap.regisy-settings .button-container{
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}

.wrap.regisy-settings #sync-description,
.wrap.regisy-settings #below-description{
  margin: 6px 0 0;
}

/* Dark mode friendliness */
@media (prefers-color-scheme: dark){
  .wrap.regisy-settings .form-table-main{
    background: #f5f8ff;
    border-color: #3a3a3a;
    box-shadow: none;
  }
}
