/* .purchase-container {
    width: 100%;
    text-align: center;
    margin: 100px;
    display: flex;
    align-items: flex-start;
}

.purchase_img {
    width: 40%;
    aspect-ratio: 498.391 / 588;
}

.product-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
}

.purchase-title {
    font-size: 25px;
    font-weight: bold;
    text-align: left;
}

.purchase-subtitle {
    font-size: 16px;
    text-align: left;
}

.plan-box {
    border: 1px solid #ccc;
    padding: 20px;
    width: 300px;
    cursor: pointer;
}

.plan-box h3 {
    margin-bottom: 10px;
}

.price {
    font-weight: bold;
    color: #000;
}

.plan-details {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
}

.plan-details .select-info {
    font-weight: bold;
    margin-bottom: 10px;
}

.plan-details button {
    background-color: #ba0407;
    color: #fff;
    border: #ba0407;
    width: 100%;
    height: 3vh;
    border-radius: 5px;
}

.option {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hidden {
    display: none;
}

.field {
    width: 20%;
    font-size: 16px;
    text-align: center;
}

.description {
    width: 80%;
    font-size: 16px;
    text-align: left;
}

@media (max-width: 768px) {
    .purchase-container {
      flex-direction: column;
      margin: 100px 0 0 0;
    }
    .purchase_img {
      align-self: center;
    }
    .plan-box {
      display: none;
    }
    
    #purchase-btn {
      position: fixed;
      bottom: 0;
      width: 100%;
      left: 50%;
      transform: translateX(-50%);
      z-index: 1000;
      padding: 10px 20px;
      background-color: #ba0407;
      color: #fff;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 1.5em;
    }
    
    #close-btn {
      position: fixed;
      top: 10vh;
      right: 20px;
      z-index: 1000;
      background: transparent;
      border: none;
      font-size: 24px;
      cursor: pointer;
      display: none;
    }
    
    .purchase-active {
      overflow: hidden;
    }
    
    .purchase-active .purchase_img,
    .purchase-active .product-container > :not(.plan-box),
    .purchase-active .ft {
      display: none;
    }
    
    .purchase-active .plan-box {
      display: block;
    }
    
    .purchase-active #purchase-btn {
      display: none;
    }
    
    .purchase-active #close-btn {
      display: block;
    }
  }
   */

.purchase-container {
    width: 100%;
    /* text-align: center; */
    display: flex;
    flex-direction: column;
    /* margin: 100px 0 0 0; */
    align-items: flex-start;
}

.purchase_img {
    align-self: center;
    width: 90%;
    aspect-ratio: 1 / 1;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 5% 0;
}

.thumbnail {
    width: 60px;
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
  }
  
  .thumbnail:hover {
    border: 2px solid #ba0407;
  }

.product-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 5%;
}

.purchase-title {
    font-size: 20px;
    font-weight: bold;
    text-align: left;
}

.purchase-subtitle {
    font-size: 14px;
    text-align: left;
}

.cost-container {
    display: flex;
    gap: 16px;
}

.purchase-cost {
    font-size: 24px;
    text-align: left;
    font-weight: bold;
    color: #5177FF;
}

.free-shipping {
    background-color: rgba(27,31,38, 0.72);
    color: white; 
    padding: 4px 12px;
    border-radius: 15px;
    align-self: center;
}

.plan-box {
    border: 1px solid #ccc;
    padding: 20px;
    width: 300px;
    cursor: pointer;

    display: none;
}

.plan-box h3 {
    margin-bottom: 10px;
}

.price {
    font-weight: bold;
    color: #000;
}

.plan-details {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
}

.plan-details .select-info {
    font-weight: bold;
    margin-bottom: 10px;
}

.plan-details button {
    background-color: #ba0407;
    color: #fff;
    border: #ba0407;
    width: 100%;
    height: 3vh;
    border-radius: 5px;
}

.option {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hidden {
    display: none;
}

.field {
    width: 20%;
    font-size: 16px;
    text-align: center;
}

.description {
    width: 80%;
    font-size: 16px;
    text-align: left;
}

#cart-btn {
    position: fixed;
    bottom: 0;
    width: 50%;
    left: 25%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 20px 0;
    background-color: #19244D;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
}

#purchase-btn, #confirm-btn, #modal-cancel-btn, #modal-submit-btn {
    position: fixed;
    bottom: 0;
    width: 50%;
    left: 75%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 20px 0;
    background-color: #5177FF;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
}

#cancel-btn, #modal-cancel-btn {
    position: fixed;
    bottom: 0;
    width: 50%;
    left: 25%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 20px 0;
    background-color: #F4F6FB;
    color: black;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
}