/* -------------------------------- 

File#: _1_alert
Title: Alert
Descr: Feedback message
Usage: codyhouse.co/license

-------------------------------- */

/* reset */
*, *::after, *::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1.125rem; /* 18px */
  line-height: 1.4;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem; /* 40px */
}

h2 {
  font-size: 2.125rem; /* 34px */
}

h3 {
  font-size: 1.75rem; /* 28px */
}

h4 {
  font-size: 1.375rem; /* 22px */
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  -webkit-appearance: none;
          appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}



table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

/* -------------------------------- 

Icons 

-------------------------------- */

.cd-icon {
  --size: 1em;
  font-size: var(--size);
  height: 1em;
  width: 1em;
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

.cd-icon use { /* SVG symbols - enable icon color corrections */
  color: inherit;
  fill: currentColor;
}

/* -------------------------------- 

Component 

-------------------------------- */

.alert {
  margin-top:5px;
  width: 100%;
  background-color: #B8D7FF;
  color: hsl(230, 13%, 9%);
  border-radius: 0.375em;
  padding: 1rem;
  position: absolute;
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  font-size: 0.9375rem;
  box-shadow: inset 0px 1px 0px hsla(var(--mc4-color-white-hsl), 0.1), 
    0px 0px 0px 1px hsla(var(--mc4-color-black-hsl), 0.02), 
    0px 1px 3px -1px hsla(var(--mc4-color-black-hsl), 0.2), 
    0 0.3px 0.4px rgba(0, 0, 0, 0.025), 
    0 0.9px 1.5px rgba(0, 0, 0, 0.05), 
    0 3.5px 6px rgba(0, 0, 0, 0.1);
  margin-bottom:var(--sp-m);
}




.alert__icon {
  --size: 24px;
  margin-right: 0.5rem;
}



.alert__close-btn {
  display: inline-flex;
  flex-shrink: 0;
  /* margin-left: 1.5rem; */
  transition: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  background-color: #8080802b;
  border-radius:50%;
  padding:5px;
  cursor:pointer;
}

.alert__close-btn .cd-icon {
  --size: 12px;
  display: block;
  font-size: var(--size);
  height: 0.7em;
  width: 0.7em;
}

.alert__close-btn:hover {
  transform: scale(1.1);
  background-color: #80808052;
}

.alert--success {
  background-color: hsla(170, 78%, 36%, 0.2);
}

.alert--success .alert__icon {
  color: hsl(170, 78%, 36%);
}

.alert--error {
  background-color: hsla(342, 89%, 48%, 0.2);
}

.alert--error .alert__icon {
  color: hsl(342, 89%, 48%);
}

.alert--warning {
  background-color: hsla(35, 79%, 66%, 0.2);
}

.alert--warning .alert__icon {
  color: hsl(35, 79%, 66%);
}

.alert__list {
  list-style: disc;
  list-style-position: inside;
}

.alert--is-visible {
  position: static;
  -webkit-clip-path: none;
          clip-path: none;
}

/* -------------------------------- 

Utilities 

-------------------------------- */

.cd-flex {
  display: flex;
}

.cd-items-center {
  align-items: center;
}

.cd-justify-between {
  justify-content: space-between;
}

.cd-margin-top-3xs {
  margin-top: 0.5rem;
}

.cd-color-inherit {
  color: inherit;
}

/* -------------------------------- 

Custom added 

-------------------------------- */


.set_width {
  width: 70%;
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
}

.alert_p{
  margin-bottom: 0px;
}

.status_space{
  margin-top: 10px;
  margin-bottom: 10px;
}

.alert__label_valid{
  font-size: var(--text-size-100);
  color: #225a36;
}

.alert__label_warning{
  font-size: var(--text-size-100);
  color: #946713;
}

#validation_first{
  display: none;
}



/* ALERT V2 */


.alert_v2_outer {
    display: flex;
    gap: var(--sp-m);
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.5em;
    padding: var(--sp-m);
    margin: var(--sp-m) 0;
    position: relative;
    width: fit-content;
    font-size: var(--text-size-100);
    align-items: center;
}

.alert_v2_icon {
    min-width: 30px;
}

.alert_v2_inner{
  display: flex;
  gap:var(--sp-m);
}


.alert--success_v2 {
  background-color: white;
}

.alert--success_v2 .alert__icon {
  color: #4279BC;
}

.alert_flex_dsh{
  margin-top:var(--sp-m);
  display: flex;
  gap:var(--sp-m);
  align-items: center;
}



.alert_cstm_btn {
    display: flex;
    background-color: white;
    color: #4279bc;
    cursor: pointer;
    border-radius: 0.15em;
    text-decoration: none;
    align-items: center;
    padding: var(--sp-xs) var(--sp-s);
    font-size: var(--text-size-95);
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.2s ease;

    box-shadow: inset 0px 1px 0px hsla(var(--mc4-color-white-hsl), 0.1),
        0px 0px 0px 1px hsla(var(--mc4-color-black-hsl), 0.02),
        0px 1px 3px -1px hsla(var(--mc4-color-black-hsl), 0.2),
        0 0.3px 0.4px rgba(0, 0, 0, 0.025), 0 0.9px 1.5px rgba(0, 0, 0, 0.05),
        0 3.5px 6px rgba(0, 0, 0, 0.1);
}

.alert_cstm_btn:hover {
    background-color: rgb(248, 248, 248);
    box-shadow: inset 0px 1px 0px hsla(var(--mc4-color-white-hsl), 0.1),
        0px 0px 0px 1px hsla(var(--mc4-color-black-hsl), 0.02),
        0px 1px 3px -1px hsla(var(--mc4-color-black-hsl), 0.2),
        0 0.1px 0.3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.12);
}