/* Reset and base styles  */
* {
  padding: 0px;
  margin: 0px;
  border: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Links */

a,
a:link,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Common */

aside,
nav,
footer,
header,
section,
main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

/* Form */

input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
}

input::-ms-clear {
  display: none;
}

button,
input[type="submit"] {
  display: inline-block;
  box-shadow: none;
  background-color: transparent;
  background: none;
  cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
  outline: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

label {
  cursor: pointer;
}

legend {
  display: block;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

body {
  background-color: #fffbf6;
  font-family: "Roboto";
  color: black;
}

a {
  color: inherit;
}

.wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 8px;
}

header {
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  border-radius: 20px;
  background: #fffbf6;
  box-shadow: 0px 0px 20px 20px rgba(173, 173, 173, 0.15);
  flex-wrap: wrap;
}

header a:hover {
  color: rgb(92, 92, 92);
}
.logo a img {
  width: 100%;
  max-width: 200px;
}

.tel a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.email {
  margin-left: auto;
  margin-right: 30px;
}
.email a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__line {
  width: 1px;
  height: 45px;
  background: #ccc;
}

.socials {
  display: flex;
  align-items: center;
  gap: 25px;
}

.socials_link {
  background-color: #000000;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.form {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid #ccc;
}

.input-text {
  background: #f7f7f7;
  border-radius: 50px;
  border: 1px solid #cccccc;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: rgba(21, 39, 62, 1);
  padding: 16px;
  height: 51px;
  width: 47%;
}
.popular,
.total {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.currencies {
  display: flex;
  justify-content: space-between;

  background: #fff;
  gap: 30px;
  margin-top: 40px;
  padding-bottom: 40px;
  flex-wrap: wrap;
  border-bottom: 1px solid #ccc;
}

.currencies_name {
  font-size: 14px;
  font-weight: 600;
}

.currency {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.currency span {
  background: #f7f7f7;
  border-radius: 50px;
  border: 1px solid #cccccc;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: rgba(21, 39, 62, 1);
  padding: 12px;
  height: 45px;
  width: 30%;
  text-align: center;
  cursor: pointer;
}

.currency label {
  border-radius: 15px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: rgba(21, 39, 62, 1);
  padding: 12px;
  height: 51px;
  text-align: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: -1px;
}

.currency input:checked + label {
  background: #d7ffee;
  border: 1px solid #0f7d50;
  color: #0f7d50;
}

.currency input {
  visibility: hidden;
  position: absolute;
}

.total {
  display: flex;
  flex-direction: column;
  width: 46%;
  position: relative;
}

.total input {
  width: 100%;
  background: #ffffff;
  padding-left: 35px;
}

.total_amount_val {
  position: absolute;
  top: 54px;
  left: 13px;
  color: #757575;
  font-size: 14px;
  font-weight: 400;
}

.order {
  margin-top: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
}

.title-main {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
}

.order_header {
  display: flex;
  justify-content: space-between;
  border-radius: 10px;
  background: #f7f7f7;
  padding: 12px 20px;
}

.order_header span {
  font-size: 18px;
  font-weight: 600;
}

.order_name {
  display: flex;
  justify-content: space-between;
  padding: 0px 20px;
  margin-top: 20px;
}

.order_name_1 {
  display: flex;
  align-items: center;
}

.order_summ_val {
  margin-right: 10px;
  color: #131416;
  font-size: 14px;
  font-weight: 400;
}

.choice_pay {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
}

.choice_pay_N {
  display: flex;
  justify-content: left;
  align-items: center;
}
.choice_pay_N span {
  margin-right: 15px;
}

.choice_pay_N label {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 10px;
  gap: 6px;
  flex-wrap: wrap;
}

.choice_pay_input {
  accent-color: gray;
}

.load {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: none;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  justify-content: center;
}

.load img {
  width: 50%;
  max-width: 250px;
}

.load-active {
  display: flex;
}

.upp {
  margin: 0 auto;
  display: none;
  /* display: block; */
  text-align: center;

  background-color: #fff;
  padding-top: 95px;
  padding-bottom: 36px;
}

.upp_active {
  display: block;
}

.Payment {
  font-size: 30px;
  font-weight: 400;
  color: #5dce09;

  margin-top: 20px;
}

.Thank_you {
  margin-top: 7px;
  margin-bottom: 56px;

  font-size: 20px;
  font-weight: 400;
  color: #a8a8a8;
}

.Done_upp {
  background-color: #50b903;
  border-radius: 5px;
  padding: 14px;
  color: #fff;
  display: block;
  width: 73px;

  margin: 0 auto;
  margin-bottom: 55px;
}

.We_recieved {
  font-size: 14px;
  font-weight: 400;
  color: #a8a8a8;
}

svg {
  width: 100px;
  height: 100px;
}

path {
  stroke-dasharray: 99.47578430175781;
  stroke-dashoffset: -99.47578430175781;
  fill: transparent;
}

svg.animate path {
  animation: 1.7s ease forwards draw;
  opacity: 1;
}

@keyframes draw {
  0% {
    opacity: 1;
    stroke-dashoffset: -99.47578430175781;
    fill: transparent;
    transform: translateY(0);
  }

  35% {
    stroke-dashoffset: 0;
    fill: transparent;
  }

  60% {
    fill: #3da35a;
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    fill: #3da35a;
    stroke-dashoffset: 0;
    opacity: 0;
    transform: translateY(-10px);
  }
}

.place_order {
  padding-bottom: 100px;
  padding-top: 100px;

  text-align: center;
}

.place_order h3 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;

  margin-bottom: 30px;
}

.place_order_summ_val {
  color: #101118;
  font-size: 24px;
  font-weight: 900;
}

.place_order label {
  font-size: 16px;
  color: #6a6a6a;
  font-family: Roboto;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.place_order p {
  color: #6a6a6a;
  text-align: center;
  font-family: Roboto;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
}

.place_order a {
  color: #0f7d50;
  text-decoration: underline;
}

.place_order .button {
  margin: 40px 0;
  padding: 16px 90px;
  border-radius: 50px;
  background-color: #0f7d50;
  color: #fff;
  font-weight: 500;
}

.place_order .button:hover {
  background-color: #2eb97f;
}

.terms-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.card_data {
  border-radius: 20px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  padding: 37px 34px;
  display: flex;
  flex-direction: column;
  margin-top: 50px;
  display: none;

  /* transition: transform 3s; */
}
.card-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card_data_active {
  display: flex;
  /* transform: translateX(10px); */
}

.radio_card_data {
  visibility: hidden;
  position: absolute;
}

.label_card_data {
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 13px 20px;
  width: 46%;
  font-size: 18px;
  font-weight: 400;
  color: #d3d3d3;
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 10px;
}

.radio_card_data:checked + label {
  border: 1px solid #35a5f7;
  background-color: #e5f4ff;
  color: #35a5f7;
  font-size: 18px;
  font-weight: 500;
}

.card_data_input {
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 13px 20px;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
}

.card_data_input::placeholder {
  color: #d3d3d3;
}

.card_number,
.name_on_payment {
  width: 100%;
}

.half-wrap {
  width: 46% !important;
}
.expiration_date,
.security_code {
  width: 100% !important;
}
.card_number {
  background-image: url(../images/payment-logos/payment-group.svg);
  background-repeat: no-repeat;
  background-position: 95% 46%;
}

.security_code {
  background-image: url(../images/icons/security-code.svg);
  background-repeat: no-repeat;
  background-position: 95% 46%;
}
.main-content {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0px 0px 20px 4px rgba(173, 173, 173, 0.15);
  padding: 50px;
  margin-top: 50px;
}
@media (max-width: 900px) {
  .place_order {
    padding-left: 15px;
    padding-right: 15px;
  }
  .socials {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .email {
    margin: unset;
  }
  .main-content {
    padding: 32px 12px;
    margin-top: 32px;
  }
  .title-main {
    margin-bottom: 20px;
  }
  .header__line {
    display: none;
  }

  header {
    display: grid;

    place-items: center;
    margin-top: 32px;
  }
  .header {
    text-align: center;
    grid-template-columns: repeat(1, 1fr);
    justify-content: center;
    gap: 20px;
  }
  .choice_pay_N label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 660px) {
  .currency {
    gap: 5px;
  }
  .currency label {
    padding: 10px;
  }
  .form .input-text {
    width: 100%;
  }

  .currencies .popular {
    width: 100%;
  }

  .currencies .total {
    width: 100%;
  }

  .card_number {
    background-image: none;
  }
  .label_card_data {
    width: 100%;
  }

  .card_number,
  .name_on_payment {
    width: 100%;
  }

  .half-wrap {
    width: 100% !important;
  }
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  overflow-y: auto;
  padding: 40px 20px;
}
.modal-content {
  margin: auto;
  padding: 60px 25px;
  text-align: center;
  width: 100%;
  max-width: 650px;
  height: fit-content;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0px 0px 20px 4px rgba(173, 173, 173, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal__title {
  margin-top: 10px;
  margin-bottom: 23px;
  font-size: 24px;
  font-weight: 600;
}
.modal__gray {
  font-size: 16px;
  color: #6a6a6a;
}
.modal__btn {
  border-radius: 50px;
  background: #0f7d50;
  margin: 50px 0;
  display: flex;
  width: 200px;
  height: 50px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: white;
  transition: 0.3s;
}
.modal__btn:hover {
  background: #086d43;
}
.modal-active {
  display: flex;
}
.input-wrap {
  width: 100%;
}
.error-message {
  display: none;
  color: red;
  font-size: 12px;
  margin-left: 16px;
  margin-top: 5px;
}
#billing_first_name {
  width: 100%;
}
#billing_last_name {
  width: 100%;
}
