﻿.warranty-modal__overlay {
  display: none;
}

.warranty-modal {
  position: relative;
  width: 100%;
  max-width: 866px;
}

.warranty-modal__inner {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  position: relative;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.warranties-box-more {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  cursor: pointer;
}

.warranties-box-more-arrow {
  margin-left: 0.5rem;
  fill: #0071e3; 
  transition: transform 0.3s ease;
  transform: rotate(0deg); 
}

  .warranties-box-more-arrow.active {
    transform: rotate(180deg); 
  }

  .warranty-modal__header {
    padding-bottom: 32px;
    text-align: left;
    position: relative;
  }

  .warranty-modal__title {
    color: #1d1d1f;
    font-family: var(--font-body-family);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.16667;
    letter-spacing: 0.009em;
    margin: 0;
  }

  .warranty-modal__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

    .warranty-modal__success img {
      width: 64px;
      height: 64px;
    }

  .warranty-modal__close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: #f5f5f7;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
  }

    .warranty-modal__close:hover {
      background: #e8e8ed;
    }

    .warranty-modal__close svg {
      width: 20px;
      height: 20px;
      fill: #1d1d1f;
    }

  .warranty-modal__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin-bottom: 0;
  }
.warranties-box
{
  display:none;
  transition:2s;
}
  .warranties-box.active {
    display: block;
    transition: 2s;
  }

.warranty-modal__text {
  color: #1d1d1f;
  font-family: var(--font-body-family), sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  margin: 0 0 16px 0;
}

  .warranty-modal__input {
    border-radius: 8px;
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
    font-family: var(--font-body-family), sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    padding: 12px 16px;
    width: 100%;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
  }

    .warranty-modal__input::placeholder {
      color: #86868b;
    }

    .warranty-modal__input:focus {
      outline: none;
      border-color: #0071e3;
      box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    }

    .warranty-modal__input.error {
      border-color: #ff3b30;
    }

      .warranty-modal__input.error:focus {
        box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
      }

  .warranty-modal__error {
    color: #ff3b30;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42859;
    letter-spacing: -0.016em;
    min-height: 0;
    margin-bottom: 12px;
  }

    .warranty-modal__error span {
      display: none;
    }

    .warranty-modal__error.active span {
      display: block;
    }
  .warranty-modal__submit,
  .warranty-modal__done {
    background: #0071e3;
    border: none;
    border-radius: 980px; /
    color: #fff;
    cursor: pointer;
    font-family: var(--font-body-family), sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    padding: 14px 24px;
    width: 100%;
    transition: background 0.2s;
    margin-top: 0; 
  }

    .warranty-modal__submit:hover:not(:disabled),
    .warranty-modal__done:hover:not(:disabled) {
      background: #0077ed;
    }

    .warranty-modal__submit:active:not(:disabled),
    .warranty-modal__done:active:not(:disabled) {
      background: #006edb;
    }

    .warranty-modal__submit:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
  .screenreader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  .hide {
    display: none !important;
  }


  .warranty__button-text {
    text-decoration: none;
  }

  @media screen and (max-width: 1025px) {
    .warranty-modal {
      max-width: 690px;
    }

    .warranty-modal__title {
      text-align: center;
      font-size: 22px;
    }
  }

  @media screen and (max-width: 768px) {
    .warranty-modal__inner {
      padding: 64px 29px 40px 29px; 
    }

    .warranty-modal__close {
      right: 16px;
      top: 16px;
    }

    .warranty-modal__title {
      font-size: 20px;
    }

    .warranty-modal__text {
      font-size: 15px;
    }

    .warranty-modal__input {
      font-size: 16px;
      margin-bottom: 10px;
    }

    .warranty-modal__submit,
    .warranty-modal__done {
      font-size: 16px;
    }
  }
  .warranty-popup .popup {
    width: 100%;
    max-width: 866px;
  }
  @media screen and (min-width: 1025px) {
    .warranty-popup .popup {
      width: 866px;
    }
  }
  @media screen and (min-width: 768px) and (max-width: 1024px) {
    .warranty-popup .popup {
      width: 90%;
      max-width: 690px;
    }
  }
  @media screen and (max-width: 767px) {
    .warranty-popup .popup {
      width: 95%;
      max-width: 100%;
    }
  }
.warranties-item {
  display: block;
  cursor: pointer;
  margin-bottom: 10px;
}

.warranties-item-input {
  display: none;
}

.warranties-item-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  transition: all 0.2s ease;
}

.warranty-name{
  font-size:14px;
}
.warranties-item-input:checked + .warranties-item-box {
  border: 2px solid #0071e3;
  background: #f5faff;
}
.warranties-item-price {
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  white-space: nowrap;
}


.warranties-box-title-text {
  font-weight: 600;
  font-size: 18px;
}

.warranties-box-more {
  font-size: 12px;
  margin-bottom: 10px;
}

.selected-Warranties {
  display: flex !important;
  justify-content: space-between !important;
}

.Warranties {
  background: #f7f7f7;
  padding: 23px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.applecare-products-on-cart {
  border-radius: 8px;
}
.apl-section-cart-applecare-title
{
  font-size:18px;
  font-weight:600;
}
.applecare-products-on-cart.has-warranties {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.cart_itemadded.apl-section-cart-warranty-item {
  background: #f5f5f7;
}

.cart_itemadded:first-of-type {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.warranty-total-row {
  background: #f5f5f7;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.cart_itemadd .set_applecare-img-info {
  padding-left: 0!important;
}

.warranties-table {
  width: 100%;
  border-collapse: collapse;
}

  .warranties-table .warranty-name {
    width: 50%;
    padding: 8px;
  }

  .warranties-table .warranty-actions {
    width: 25%;
    text-align: right;
    padding: 8px;
  }
  .warranties-table .warranty-actions a{
    font-weight: 500;
  }

  .warranties-table .warranty-price {
    width: 26%;
    text-align: right;
    padding: 8px;
  }
.set_applecare-img-info {
  padding: 0 0 40 0 !important;
}

.warranty-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: #f5f5f7;
  border-radius: 8px;
  padding: 12px 16px;
  position: relative;
  min-height: 60px;
  margin-left: 10rem;
}

  .warranty-container.has-warranties {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

.warranty-icon {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .warranty-icon svg {
    width: 50px;
    height: 50px;
  }

.warranty-info {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.warranty-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #000;
}

.warranty-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.Warranties {
  background: #f7f7f7;
  padding: 16px 23px;
  position: relative;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  margin-left: 10rem;
}

.warranties-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}


  .warranties-table .warranty-name {
    width: 50%;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 400;
    color: #1d1d1f;
    vertical-align: middle;
  }

  .warranties-table .warranty-actions {
    width: 25%;
    text-align: right;
    padding: 12px 8px;
    vertical-align: middle;
  }

    .warranties-table .warranty-actions a {
      font-size: 14px;
      font-weight: 500;
      color: #0071e3;
      text-decoration: none;
      cursor: pointer;
    }

      .warranties-table .warranty-actions a:hover {
        text-decoration: underline;
      }

  .warranties-table .warranty-price {
    width: 25%;
    text-align: right;
    padding: 12px 8px;
    vertical-align: middle;
  }

    .warranties-table .warranty-price .price {
      font-size: 14px;
      font-weight: 600;
      color: #1d1d1f;
    }

      .warranties-table .warranty-price .price.free {
        color: #00a86b;
        font-weight: 500;
      }

@media (max-width: 768px) {
  .warranty-container {
    width: 100%;
    padding: 12px;
    gap: 8px;
    margin-left: 0;
  }

  .warranty-icon {
    flex: 0 0 50px;
  }

    .warranty-icon svg {
      width: 40px;
      height: 40px;
    }

  .warranty-title {
    font-size: 14px;
  }

  .warranties-btn {
    min-width: 80px;
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .Warranties {
    width: 100%;
    margin-left: 0;
    padding: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .warranties-table {
    min-width: 100%;
  }

    .warranties-table .warranty-name {
      width: 45%;
      min-width: 140px;
      padding: 8px 4px;
      font-size: 13px;
    }

    .warranties-table .warranty-actions {
      width: 30%;
      text-align: center;
      padding: 8px 4px;
    }

      .warranties-table .warranty-actions a {
        font-size: 13px;
      }

    .warranties-table .warranty-price {
      width: 25%;
      text-align: right;
      padding: 8px 4px;
      white-space: nowrap;
    }

      .warranties-table .warranty-price .price {
        font-size: 13px;
      }
}

/* Extra malé displeje - 480px a menší */
@media (max-width: 480px) {
  .warranty-container {
    padding: 8px;
    gap: 6px;
  }

  .warranty-icon {
    flex: 0 0 40px;
  }

    .warranty-icon svg {
      width: 35px;
      height: 35px;
    }

  .warranty-title {
    font-size: 12px;
    line-height: 1.3;
  }

  .warranties-btn {
    min-width: 70px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .Warranties {
    padding: 8px;
  }

  .warranties-table .warranty-name {
    width: 40%;
    min-width: 120px;
    padding: 6px 4px;
    font-size: 12px;
  }

  .warranties-table .warranty-actions {
    width: 35%;
    padding: 6px 4px;
  }

    .warranties-table .warranty-actions a {
      font-size: 12px;
    }

  .warranties-table .warranty-price {
    width: 25%;
    padding: 6px 4px;
  }

    .warranties-table .warranty-price .price {
      font-size: 12px;
    }
}
