/* =========================
   GIFT CARD CATEGORY
========================= */
#gift-card-category h1 {
    color: var(--color-primary);
    font-size: 21px;
    text-transform: uppercase;
}

/* =========================
   GIFT CARD GRID
========================= */
#gift-card-grid .card {
    border-radius: 15px;
    height: calc(100% - 27px);
    transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
    transform: scale(1);
}

#gift-card-grid .card:hover {
    transform: scale(1.05);
    transition: transform 0.45s ease;
}

#gift-card-grid .img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 130px;
    text-align: center;
}

#gift-card-grid .img-container img{
    width: 100%;
    height: auto;
    max-width: 165px;
    max-height: 130px;
    object-fit: contain;
}

#gift-card-grid  .fv p {
    font-size: 24px;
    font-weight: 600;
}

#gift-card-grid  p.brand {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* =========================
   SIDEBAR
========================= */
#cg-sidebar .border-top-radius {
    border-top-left-radius: var(--hb-cta-border-radius);
    border-top-right-radius: var(--hb-cta-border-radius);
    overflow: hidden;
}

#cg-sidebar .border-bottom-radius {
    border-bottom-left-radius: var(--hb-cta-border-radius);
    border-bottom-right-radius: var(--hb-cta-border-radius);
}

#cg-sidebar h3 {
    color: var(--color-primary);
    font-size: 21px;
}

#cg-sidebar a {
    font-size: 15px;
    color: var(--hb-black);
    font-weight: 600;
    font-weight: 500;
    line-height: 1.35;
    text-transform: uppercase;
    margin: 0;
    text-decoration: none;
    border: none;
}

#cg-sidebar a.active,
#cg-sidebar a:hover {
    color: var(--color-tertiary);
}

#cg-sidebar .card,
#cg-sidebar .card:hover {
    transform: none;
    transition: none;
}

@media (max-width: 1199px) {
    #cg-sidebar ul {
        display: flex;
        margin-bottom: 15px;
        overflow: scroll;
    }

    #cg-sidebar a {
        white-space: nowrap;
        margin-right: 18px;
    }
}

@media (min-width: 992px) {
    #cg-sidebar a {
        word-wrap: break-word;
        word-break: break-word;
    }
}

/* =========================
   SEARCH INPUT [SIDEBAR]
========================= */
#cg-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
}

#cg-search-form a#clearBtn {
    right: 52px;
    cursor: pointer;
    background: #ffffff;
    border: none;
    position: absolute;
    text-transform: none;
    margin: 0;
    font-family: inherit;
    border-radius: 0;
    font-size: 16px;
    padding: 0;
    box-sizing: border-box;
}

#cg-search-form input {
    border-radius: 0;
    border: none;
    border-bottom:1px solid #F4EEFB;
    padding-right: 72px;
}

#cg-search-form input {
    border-radius: 0;
    border: none;
    border-bottom:1px solid #F4EEFB;
}


/* =========================
   DETAILS
========================= */

#gc-details {
    background: var(--bg-soft);
}

/* #gc-details .giftcard-image {
    background: #fff;
    border-radius: 24px;
    padding: 18px;
} */

#gc-details .giftcard-image img{
    max-width: 250px;
    max-height: 150px;
    margin: auto;
}

#gc-details .giftcard-placeholder span {
    font-size: 2.5rem;
}

#gc-details .delivery-box {
    background: #e9edf8;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

#gc-details .delivery-icon {
    width: 50px;
    height: auto;
}

#gc-details .delivery-box h6 {
    font-weight: 700;
    font-size: 13px;
}

#gc-details .delivery-box p {
    line-height: 1.2em;
    font-size: 12px;
}

/* TITOLI */

#gc-details .gc-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

#gc-details .gc-subtitle {
    color: var(--color-primary);
    font-weight: 600;
}

#gc-details .gc-description {
    max-width: 350px;
    color: #27415c;
}

/* PURCHASE */

#gc-details .purchase-card {
    background: #e9edf817;
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

#gc-details .purchase-card input,
#gc-details .purchase-card select{
    border: 1px solid #aec1de;
    border-radius: 10px;
    padding: 5px 12px;
}

#gc-details .purchase-title {
    margin-bottom: 20px;
    font-weight: 700;
}

#gc-details .amount-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

#gc-details .amount-grid button {
    width: auto;
}

#gc-details .amount-custom {
    grid-column: span 2;
}

#gc-details .price-summary {
    margin-top: 35px;
}

#gc-details .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

#gc-details .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
}

@media (max-width: 375px){
   #gc-details .total-row {
        flex-direction: column;
        justify-content: center;
        align-items: start;
        margin: 25px 0;
    }
}

#gc-details .total-row span {
    font-size: 15px;
    font-weight: 600;
}

#gc-details .total-row .gc-total-price {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.65rem;
}

#gc-details .buy-btn {
    width: 100%;
    border: none;
    background: var(--color-tertiary);
    color: white;
    border-radius: 12px;
    height: 58px;
    font-size: 1.1rem;
    font-weight: 700;
}

#gc-details .buy-btn i {
    margin-right: 10px;
    font-size: 20px;
}

#gc-details .secure-payment {
    font-size: 12px;
    font-weight: 500;
    opacity: .95;
    text-align: center;
    color: var(--hb-black);
}

/* HOW IT WORKS */

#gc-details .how-it-works {
    margin-top: 80px;
}

#gc-details .how-it-works h3 {
    text-align: center;
    color: var(--color-primary);
    font-weight: 700;
}

#gc-details .steps-card {
    background: #e9edf8;
    border-radius: 24px;
    padding: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#gc-details .step {
    display: flex;
    gap: 20px;
    align-items: center;
}

#gc-details .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #cfdcf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}

#gc-details .step h5 {
    font-weight: 600;
    font-size: 13px;
}

#gc-details .step p {
    margin: 0;
    font-size: 12px;
    line-height: 1.2em;
}

#gc-details .step-arrow {
    color: #8fb7ff;
    font-size: 2rem;
}

#gc-details #btn-toggle-recipients svg#add-a-friend,
#gc-details #btn-toggle-recipients svg#add-a-friend g,
#gc-details #btn-toggle-recipients svg#add-a-friend path {
    fill: #ffffff;
    width: 27px;
    margin-right: 10px;
    transition: all 0.3s ease-out 0s;
}

#gc-details #btn-toggle-recipients:hover svg#add-a-friend,
#gc-details #btn-toggle-recipients:hover svg#add-a-friend g,
#gc-details #btn-toggle-recipients:hover svg#add-a-friend path{
    fill: var(--color-secondary);
    transition: all 0.3s ease-out 0s;
}

#gc-details .recipient-row{
    border: 1px dashed #aec1de;
    border-radius: 8px;
}

#gc-details .recipient-row input,
#gc-details .recipient-row select{
    border: 1px dashed #aec1de;
    font-size: 15px !important;
}

#gc-details .cta.four{
    width: auto;
}

#gc-details .cta.four i{
    font-size: 21px;
    font-weight: 700;
}

#gc-details #btn-toggle-recipients{
    font-size: 15px !important;
    width: auto;
    padding: 0 15px;
}

 #gc-details #btn-add-recipient {
    font-size: 12px!important;
 }

 #gc-details #btn-add-recipient i {
    font-size: 18px;
    color: var(--color-primary);
 }

  #gc-details .btn-close.btn-remove-recipient {
    width: .35em;
    height: .35em;
  }

/* RESPONSIVE */

@media (max-width: 991px) {

    #gc-details .gc-title {
        font-size: 30px;
    }

    #gc-details .steps-card {
        flex-direction: column;
        align-items: stretch;
    }

    #gc-details .step-arrow {
        transform: rotate(90deg);
        text-align: center;
        margin-right: auto;
        margin-left: 6px;
    }

    #gc-details .how-it-works h3 {
        font-size: 27px;
    }

    #gc-details .total-row .gc-total-price {
        font-size: 1.55rem;
    }
}