/* g-scan-z2 page only override */
.g-scan-z2-product {
  display: block;

  #section-support {
    .unordered-list {
      display: flex;
      align-items: stretch;
      justify-content: center;
      gap: 8px;

      li {
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
    .support-container {
      color: #fff;

      .headline-4 {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;

        &::before,
        &::after {
          content: "";
          width: 100px;
          height: 1px;
          background: #fff;
        }
      }
    }
  }

  /* ==============================
    * Plan & Package section
    * ============================== */
  #section-plan {
    .card {
      background: #fff;
    }

    .headline-4 {
      margin-top: 32px;
      margin-bottom: 16px;
      text-align: center;

      .haedline-note {
        display: inline-block;
        margin-bottom: 4px;
        font-size: 16px;
        font-weight: bold;
        color: #d97a00;
      }

      .headline-main {
        display: inline-block;
        font-size: 24px;
        line-height: 32px;
        font-weight: bold;
        color: #000;
      }
    }

    .section-note {
      margin: 4px 0 16px;
      font-size: 13px;
      line-height: 1.6;
      text-align: right;
      color: #666;
    }

    .badge-sale {
      flex: 0.5;
      display: flex;
      align-items: center;
      justify-content: center;

      .sale-container {
        width: 60px;
        height: 60px;
        padding: 12px 0;
        border-radius: 50%;
        box-sizing: border-box;
        background: #fff;
        border: 2px solid #d97a00;
        color: #d97a00;
        text-align: center;
        font-size: 16px;
        line-height: 1;
        font-weight: bold;

        span {
          font-size: 12px;
        }
      }
    }

    /* == Plan Group == */
    .plan-group {
      display: flex;
      justify-content: center;
      align-items: stretch;
      gap: 16px;
      padding-bottom: 4px;
      margin-bottom: 8px;

      .center {
        display: flex;
        align-items: center;
        justify-content: center;
        writing-mode: vertical-rl;
      }

      .card {
        width: 50%;
        padding: 0;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;

        &.card-left {
          flex: 1;
        }

        &.card-right {
          flex: 1.4;
          padding-bottom: 0;
        }

        .card-header {
          width: 100%;
          padding: 16px 16px 0;
          box-sizing: border-box;

          .headline-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            padding-bottom: 8px;
            border-bottom: 1px solid #000;

            .headline-left {
              margin: 0;
              .product-name {
                font-size: 20px;
                font-weight: bold;
              }
              .product-type {
                margin-top: 4px;
                font-size: 12px;
              }
            }

            .headline-right {
              .main-plan {
                font-size: 14px;
                font-weight: bold;
                border-radius: 50px;
                padding: 4px 8px;
                text-align: center;
                background: #ff9c00;
                color: #fff;

                .price-amount {
                  font-size: 12px;
                }
              }
              .main-guarantee {
                text-align: right;
                margin-top: 4px;
              }
            }
          }
        }

        .card-body {
          width: 100%;
          padding: 16px;
          flex: 1;
          box-sizing: border-box;

          .definition-list {
            width: 100%;
            position: relative;

            .badge-sale {
              position: absolute;
              top: 0;
              right: 0;
            }

            .definition-term {
              font-size: 16px;

              &:nth-of-type(n + 2) {
                margin-top: 8px;
              }
            }

            .definition-description {
              padding: 16px;
              margin: 16px 0;
              background: #fff9ef;

              .list-item {
                display: flex;
                align-items: flex-end;
                justify-content: space-between;
                border-bottom: 1px dashed #000;
                padding: 0 4px 4px;

                &:not(:last-of-type) {
                  margin-bottom: 12px;
                }

                .item-left {
                  .product-name {
                    font-size: 16px;
                    font-weight: bold;
                  }
                  .product-type {
                    margin-top: 4px;
                  }
                }

                .item-right {
                  text-align: right;

                  .product-price-basic {
                    font-size: 16px;
                    font-weight: bold;
                    color: #d97a00;
                  }
                  .product-price-amount {
                    margin-top: 4px;
                  }
                }
              }
            }
          }
        }

        .card-footer {
          display: flex;
          align-items: center;
          justify-content: flex-start;
          gap: 16px;
          width: 100%;
          padding: 16px;
          background: #fff9ef;
          box-sizing: border-box;

          .card-image-container {
            margin: 0;
            flex: 1;
          }
          .card-image-description {
            flex: 3;

            .card-description-title {
              font-size: 16px;
              font-weight: bold;
            }

            .card-description-note {
              margin-top: 8px;
            }
          }
        }
      }
    }

    /* == Package Group == */
    .package-group {
      display: block;
      padding-bottom: 0;

      .card {
        padding: 0;
        margin-bottom: 0;
        width: 100%;

        .card-header {
          padding: 0;
          border-bottom: 0;

          > p {
            display: block;
            margin: 0;
            padding: 12px 16px;
            text-align: center;
            font-size: 16px;
            line-height: 1.5;
            font-weight: bold;
            color: #000;
            background: #fff4df;
            border-bottom: 1px solid #d7c7a6;

            span {
              color: #d97a00;
            }
          }
        }

        .card-body {
          padding: 0 16px 16px;

          > ul {
            margin: 0;
            padding: 0;
            list-style: none;
          }

          > ul > .list-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            padding: 18px 0;
            border-bottom: 1px dashed #ccc;

            &:last-child {
              border-bottom: 0;
              padding-bottom: 0;
            }

            .item-product {
              flex: 1.4;

              .product-note {
                margin-bottom: 6px;
                font-size: 14px;
                line-height: 1.5;
                font-weight: bold;
                color: #d97a00;
              }

              .product-name {
                font-size: 20px;
                line-height: 1.15;
                font-weight: bold;
                color: #000;
              }

              .product-type {
                margin-top: 4px;
                font-size: 15px;
                line-height: 1.4;
                color: #555;
              }
            }

            .item-container {
              flex: 5;
              min-width: 0;

              ul {
                display: flex;
                align-items: stretch;
                flex-wrap: wrap;
                gap: 8px;
                margin: 0;
                padding: 0;
                list-style: none;
                flex-direction: column;
                max-height: 100px;

                &:not(:first-child) {
                  margin-top: 8px;
                }
              }

              .item-name {
                width: calc(50% - 6px);
                line-height: 1.6;

                &.item-headline {
                  padding: 2px 8px;
                  font-size: 11px;
                  text-align: center;
                  border: 1px solid #d7c7a6;
                  background: #fff9ef;
                  border-radius: 2px;
                }
              }

              &.full-package {
                ul {
                  flex-wrap: nowrap;
                  flex-direction: row;
                  justify-content: center;
                  align-items: center;

                  &::after {
                    content: "";
                    clip-path: polygon(0 calc(50% - 1px), calc(50% - 1px) calc(50% - 1px), calc(50% - 1px) 0, calc(50% + 1px) 0, calc(50% + 1px) calc(50% - 1px), 100% calc(50% - 1px), 100% calc(50% + 1px), calc(50% + 1px) calc(50% + 1px), calc(50% + 1px) 100%, calc(50% - 1px) 100%, calc(50% - 1px) calc(50% + 1px), 0 calc(50% + 1px));
                    width: 20px;
                    height: 20px;
                    background: #d97a00;
                    order: 2;
                  }

                  .item-name {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 16px;
                    min-height: 50px;
                    padding: 8px 12px;
                    text-align: center;
                    font-size: 14px;
                    line-height: 1.4;
                    font-weight: bold;
                    color: #000;
                    background: #fff9ef;
                    border: 1px solid #d7c7a6;
                    border-radius: 4px;
                    white-space: nowrap;

                    &:first-of-type {
                      order: 1;
                      flex: 1;
                    }
                    
                    &:last-of-type {
                      order: 3;
                      flex: 1;
                    }
                  }
                }
              }
            }

            .item-price {
              flex: 1.2;
              text-align: right;

              .price-basic {
                font-size: 16px;
                line-height: 1.2;
                font-weight: bold;
                color: #d97a00;
              }

              .price-amount {
                margin-top: 4px;
                font-size: 14px;
                line-height: 1.4;
                color: #555;
              }
            }
          }
        }
      }
    }

    /* ==============================
     * Warranty Group
     * ============================== */
    .warranty-group {
      margin-bottom: 60px;

      .warranty-main {
        display: flex;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
        background: #fff;
      }

      .warranty-list {
        display: flex;
        justify-content: flex-start;
        gap: 16px;
        flex-direction: column;
        width: 100%;

        .warranty-item {
          display: flex;
          align-items: stretch;
          gap: 12px;
          padding: 8px;
          background: #fff9ef;
          border: 2px solid #d7c7a6;
          border-radius: 4px;

          &::after {
            content: '';
            display: block;
            width: 0;
            height: 100%;
            order: 2;
            border: 1px dashed #d97a00;
          }

          .warranty-label {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            order: 1;
            padding: 8px 12px;
            min-width: 148px;

            .warranty-label-text {
              color: #d97a00;
              font-size: 15px;
              font-weight: bold;
            }
            .warranty-label-note {
              font-size: 12px;
            }
          }

          .warranty-desc {
            display: flex;
            flex-direction: column;
            justify-content: center;
            order: 3;
            gap: 8px;
            margin: 0;
            font-size: 14px;
            color: #333;
            padding: 8px 16px;

            .warranty-text {
              &.warranty-premium {
                font-size: 14px;
                border-bottom: 1px solid #ccc;
                padding-bottom: 8px;
                width: fit-content;
                margin-bottom: 8px;
  
                span {
                  color: #d97a00;
                  font-size: 16px;
                  font-weight: bold;
                }
              }
            }

            .warranty-image {
              display: flex;
              align-items: center;
              justify-content: center;
              max-width: 360px;
      
              img {
                display: block;
                width: 100%;
              }
            }
          }
        }
      }
    }

    /* ==============================
     * Other Product Group
     * ============================== */
    .other-product-group {
      .record-name {
        padding: 10px 14px;
        vertical-align: top;
        font-size: 14px;
        line-height: 1.5;
        color: #333;
        vertical-align: middle;

        .name-main {
          font-weight: bold;
        }
        .name-type {
          font-weight: normal;
          font-size: 12px;
        }
        .name-note {
          font-size: 12px;
        }
      }

      .record-price {
        padding: 10px 14px;
        text-align: right;

        .price-basic {
          color: #d97a00;
          font-size: 16px;
          font-weight: bold;
          white-space: nowrap;
        }
      }


      /* ===== Table Title ===== */
      .table-title {
        margin-bottom: 8px;
        font-size: 22px;
        line-height: 1.4;
        font-weight: bold;
        color: #000;

        .table-title-note {
          font-size: 14px;
          font-weight: normal;
        }
      }

      /* ===== Table Container ===== */
      .table-container {
        margin-bottom: 32px;

        table {
          width: 100%;
          border-collapse: collapse;
          table-layout: fixed;
          margin-bottom: 0;
        }

        thead {
          th {
            padding: 10px 14px;
            text-align: left;
            font-size: 15px;
            line-height: 1.4;
            font-weight: bold;
            color: #000;
            background: #fff4df;
            border-bottom: 1px solid #d7c7a6;
          }
        }

        tbody {
          .table-record {
            &:not(:last-child) {
              td {
                border-bottom: 1px solid #ece3cf;
              }
            }
          }
        }

        /* ===== Table Caupler ===== */
        &.table-container-coupler {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 12px;
          padding: 16px;

          .table-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 0;

            &.all-set {
              grid-column: 1 / -1;
              border-left: 4px solid #ff9c00;

              .table-record {
                background: #fff9ef;
              }
            }
          }
        }

        /* ===== Table Warranty ===== */
        &.table-container-warranty {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 12px;
          padding: 16px;

          .table-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 0;

            &.col1 {
              grid-column: 1 / -1;
            }
          }
        }

        /* ===== Table Exclusive ===== */
        &.table-container-exclusive {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 12px;
          padding: 16px;

          .table-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 0;

            &.col1 {
              grid-column: 1 / -1;
            }
          }
        }
      }
    }
  }
  #section-spec {
    .iso-container {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px;

      .icon-iso {
        padding: 0px 4px;
        background: #666;
        border: 1px solid #999;
        border-radius: 999px;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 11px;
      }
    }
  }
}