/* gift card page */

.gift-content-area {
  max-width: 924px;
  margin: auto;
  margin-top: 10px;
}
.gift-cards_form {
  width: 100%;
  max-width: 924px;
  border-radius: 20px;
  margin: auto;
}

.gift-cards-list {
  margin-bottom: 20px;
  position: relative;
}
.selected_button {
  background-color: transparent !important;
  color: var(--text) !important;
}

.gift-cards_form h3 {
  font-size: 22px !important;
  font-weight: 600;
  margin: 50px 0 25px;   
}

#ywgc-manual-amount, .selected_button #ywgc-manual-amount {
  width: 100%;
  background-color: transparent !important;
  height: auto;
  margin: 0 !important;
  border: none !important;
  outline: none;
  color: var(--text) !important;
}

.selected_button #ywgc-manual-amount:focus, .selected_button #ywgc-manual-amount:active {
  border: none !important;
  outline: none;
  color: var(--text) !important;
}

#ywgc-manual-amount-div-wrapper  {
  height: auto;
}

.ywgc-manual-amount-container .selected_button, .ywgc-manual-amount-container  {
  background-color: transparent !important;
  height: 50px !important;
  border-radius: 40px !important;
  color: var(--text) !important;
}

@media only screen and (max-width: 992px) {
    .gift-cards-list .ywgc-amount-buttons {
        width: 180px !important;
        max-width: 180px !important;
        border-radius: 40px !important;
    }
}
@media (max-width: 550px) {
    .gift-cards-list .ywgc-amount-buttons {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.ywgc-manual-currency-symbol {
  display: none;
}

.gift_card_template_button {
  margin-top: 5px !important;
}
.gift_card_template_button button{
  width: 100%;
  border: none;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 14px;
}

.gift-cards-list .gift__note {
  font-size: 14px;
  position: absolute;
  top: 65px;
  left: 200px;
}

@media (max-width: 550px) {
    .gift-cards-list .gift__note {
        position: relative;
        top: 0;
        left: 0;
        margin-top: 10px;
        margin-left: 10px;
    }
}


.gift__amounts, .gift__amounts.selected_button {
  font-size: 16px;
  margin-top: 20px;
  width: 100%;
  overflow: hidden;
  padding: 10px;
}

.gift__amounts p {
  padding: 10px 10px;
  border-radius: 20px;
  cursor: pointer;
  height: fit-content;
  width: fit-content;
  box-shadow: 0 0 8px rgba(0, 0, 0, .16);
  min-width: 78px;
  text-align: center;
}

.gift_card_template_button .quantity {
  display: none;
}

.gift_card_add_to_cart_button[disabled],
.gift_card_add_to_cart_button.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

/* form fields */

.gift-cards_form input, .gift-cards_form textarea {
  border-radius: 40px !important;
  padding: 3px 25px;
  outline: none;
  margin: 10px 0 0 !important;
}

.gift-cards_form textarea {
  padding: 25px;
  border-radius: 20px !important;
}

.gift-cards_form input:focus, .gift-cards_form textarea:focus {
  border-color: var(--text);
  padding: 3px 25px;
}

.gift-cards_form textarea:focus {
  padding: 25px;
}

.ywgc-recipient-email {
  float: none !important;
  width: 100% !important;
  position: relative;
}

.ywgc-recipient-email p {
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.2;
  padding-left: 10px;
}

.ywgc-recipient-name {
  float: none !important;
  width: 100% !important;
  position: relative;
  margin-bottom: 15px;
}

.ywgc-message {
  position: relative;
  margin-bottom: 15px;
}

.ywgc-sender-name {
  width: 100% !important;
  float: none !important;
  position: relative;
}

.gift-cards_form label {
  pointer-events: none;
  position: absolute;
  top: 26px;
  left: 19px;
  font-size: 16px;
  display: block;
  padding: 0 4px;
  background-color: var(--background);
  transition: all .3s ease;
  color: var(--gray-text);
}

.ywgc-recipient-email:has(.focus) label {
  top: 0px;
  left: 25px;
  color: var(--text);
}
.ywgc-recipient-name:has(.focus) label {
  top: 0px;
  left: 13px;
  color: var(--text);
}
.ywgc-sender-name:has(.focus) label {
  top: 0px;
  left: 13px;
  color: var(--text);
}
.ywgc-message:has(.focus) label {
  top: 0px;
  left: 13px;
  color: var(--text);
}
/* обнуление стандартного вывода ошибок */
.ywgc-red-border {
  border: 1px solid var(--yith-ywgc-border-color) !important;
}
.ywgc-manual-amount-error {
  float: none;
  display: none;
  font-size: 0 !important;
  height: 0;
  margin: 0;
}


/* gift card result page */

.gift-card-content-area{
  max-width: 1160px;
  margin: 32px auto 64px;
  padding: 0 20px;
}

@media (max-width: 560px){
  .gift-card-content-area { 
    padding: 0 16px; 
    margin-top: 80px;
  }
  
}

.gift-card-cb-content-area {
  max-width: 600px;
  margin: 32px auto 64px;
  padding: 0 20px;
}

@media (max-width: 560px){
  .gift-card-cb-content-area { 
    padding: 0 16px; 
    margin-top: 80px;
  }
}

.gift-card__title{
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 600;
  margin-bottom: 10px;
}
@media (max-width: 767px) {
    .gift-card__title {
        font-size: 24px;
    }
}
.page-popup__container .gift-card__title {
  margin-top: 30px;
}

.gift-card__descr{
  color: var(--gray-text);
  margin: 0 0 24px;
}

/* Главный блок: карточка с изображением/данными + поздравление */
.gift-card__main{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 900px){
  .gift-card__main{
    grid-template-columns: 1fr;
  }
}

/* Левая карточка */
.gift-card__wrap {
  border: 1px solid #e7eaee;
  box-shadow: none;
  background: #fff;
  border-radius: 14px;
  padding: 22px;
}

@media (max-width: 767px){
  .gift-card__wrap {
    padding: 14px;
  }
}

.gift-image-wrap{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f3f5;
  /* aspect-ratio: 3 / 1; */
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: none;
}

.gift-content-area .gift-image-wrap {
  max-width: 500px;
  margin-top: 15px;
  /* box-shadow: 0 0 8px rgba(0, 0, 0, .16); */
  box-shadow: 25px 15px 45px rgba(0, 0, 0, 0.18);
}

.gift-card__main .gift-image-wrap {
  max-height: 250px;
  width: 100%;
}

.gift-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gift-image-amount{
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: auto;

  margin: 0;
  padding: 12px 24px;

  backdrop-filter: blur(3px);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);

  color: var(--text);
  font-weight: 600;
  font-size: 30px;
}

@media (max-width: 767px){
  .gift-image-amount{
      padding: 8px 15px;
      font-size: 25px;
      bottom: 15px;
      left: 15px;
  }
}

/* .gift-content-area .gift-image-amount {
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  color: var(--white);
} */


.gift-image-amount span{ opacity: .9; }

/* Строки с данными */
.gift-card__row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #eef0f2; 
  padding: 12px 0;
}

@media (max-width:767px) {
  .gift-card__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

  }
}
.gift-card__row:first-of-type{ border-top: 0; }

.gift-card__row p{
  margin: 0;
  font-size: 15px;
}
.gift-card__row p:first-child{ color: var(--gray-text); }
.gift-card__row p:last-child{
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.gift-card__row span{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
/* Блок поздравления (правая колонка) */
.gift-card__greeting {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
  border: 1px solid #e7eaee;
  box-shadow: none;
  background: #fff;
  border-radius: 14px;
  padding: 22px;
}
@media (max-width: 767px){
  .gift-card__greeting {
      padding: 20px 14px;
  }
}
.gift-card__greeting-to{
  font-size: 18px;
  font-weight: 700;
}
.gift-card__greeting-text{
  line-height: 1.4;
}
.gift-card__greeting-from{
  color: var(--gray-text);
}

/* Кнопка */
.button.gift-card__btn{
  color: var(--white);
  font-weight: 600;
  background: var(--text);
  padding: 14px 20px;
  margin-top: auto;
}

@media (max-width: 560px){
  .button.gift-card__btn{ width: 100%; justify-content: center; }
}

.gift-card__example-btn {
  margin-top: 40px;
  padding: 10px;
  background-color: var(--gray);
  font-weight: 600;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  display: inline-flex;
}

@media (max-width: 767px) {
    .gift-card__example-btn {
        margin-top: 20px;
    }
}

/* Кнопка-копировать номер */
.copy-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}
@media (max-width: 767px) {
    .copy-wrap {
        justify-content: space-between;
        width: 100%;
    }
}
.copy-btn{
  font-size: 13px;
  border-radius: 8px;
  cursor:pointer;
  transition: all .2s ease;
  background: #fff;
  border: 1px solid #e0e4e8;
  padding: 8px 12px;
  min-width: 130px;
}
.copy-btn:hover{ background:#f7faf8; }
.copy-btn:focus-visible{ outline: 3px solid #cfd5db; outline-offset: 2px; }

/* CHECK BALANCE */

.gift-card__not-found {
  margin: 50px auto 30px;
  font-size: 20px;
  padding: 30px;
  border-radius: 20px;
  background-color: var(--gray);
  width: fit-content;
  font-weight: 500;
  text-align: center;
}

.gift-card__not-found span {
  font-weight: 700;
}


.gift-card__check-title {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
}

.gc-balance-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gc-balance-form input {
  border-radius: 40px;
  padding: 3px 25px;
  outline: none;
  margin: 10px 0 0;
  height: 40px;
  width: 255px;
}

.gc-balance__checkBtn {
  background-color: var(--text);
  color: var(--white);
  padding: 10px 20px;
}

.gc-balance__clearBtn {
  color: var(--text);
  background-color: var(--white);
  border: solid 1px var(--text);
  padding: 10px 20px;
}

.gc-balance-form .row {
  margin-top: 20px;
}

.gc-balance-form label {
  margin-bottom: 10px;
  display: block;
}

/* FAQ */
.faq-item{
  overflow: hidden;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  background: #fff;
  margin: 16px 0;
}
.faq-question{
  padding: 18px 20px;
  display:flex;
  gap: 10px;
  justify-content: space-between;
  align-items:center;
  cursor:pointer;
}
.faq-question h3{
  margin:0;
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.4;
}
.faq-question::after{
  content:"+";
  font-size: 22px;
  transition: transform .2s ease;
  color: var(--text);
  width: 1.25em; 
  text-align: center; 
  display: inline-block; /* фикс ширины для +/– */
}
.faq-item.open .faq-question::after{
  content:"–";
}
.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: all .3s ease;
  padding: 0 18px;
}
.faq-item.open .faq-answer{
  padding: 0 18px 18px;
  max-height: 650px; /* достаточно для большинства ответов */
}
.faq-answer p, .faq-answer ol{ 
  margin: 12px 0 0; 
  line-height: 1.4;
}

.faq-answer ol {
  margin-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.faq-answer a {
  color: var(--accent-color);
}

/* Обёртка секции */
.gift-card__info{
  margin: 40px auto 24px;
}

.giftcard-advantages__title{
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 16px;
  font-weight: 600;
}


/* Сетка преимуществ */
.giftcard-advantages{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px){
  .giftcard-advantages{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px){
  .giftcard-advantages{
    grid-template-columns: 1fr;
  }
}

/* Карточка преимущества */
.giftcard-advantages__wrap{
  display: grid;
  grid-template: auto / 55px 1fr;
  /* grid-template-areas: "photo desrc"; */
  gap: 24px;
  padding: 14px;
  transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 14px;
  align-items: start;
  min-height: 96px;
  align-items: center;
}

.giftcard-advantages__wrap:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(14,23,18,.08);
  border-color: #dfe8e2;
}

/* Плашка под иконку (делаем иконку визуально ровной) */
/* .giftcard-advantages__image{
  grid-area: photo;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 10px;
} */

.giftcard-advantages__number {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color);
    background-color: var(--accent-back);
    padding: 15px;
    border-radius: 100px;
}

/* Текст преимущества */
.giftcard-advantages__descr{
  /* grid-area: desrc; */
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  opacity: .9;
}

/* Мелкие улучшения: картинки без дерганья верстки */
.giftcard-advantages__wrap img[loading="lazy"]{
  /* Убираем “прыжки” при ленивой загрузке */
  aspect-ratio: 1 / 1;
}

/* Мобайл-твики */
@media (max-width: 900px){
  .gift-card__main{ gap: 20px; }
}
