/*
 * Copyright © 2025 Magestore, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

.table-gift-codes, .table-gift-code-history{
    width: 100%
}
.table-gift-codes td.col, .table-gift-code-history td.col {
    text-align: center;
}
.table-gift-codes .col.code {
    text-align: left;
}
.table-gift-codes caption.table-caption, .table-gift-code-history caption.table-caption{
    display: none;
}
.gift-codes-actions button.action.primary.add{
    background: #1979c3;
    border: 1px solid #1979c3;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    padding: 2px 15px;
    font-size: 1.4rem;
    box-sizing: border-box;
    margin-top: 4px;
    vertical-align: middle;
}
.gift-codes-actions .gift-codes-search__submit::before{
    content: ''
}
.gift-card #email-giftcard-tofriend legend.legend {
    border-bottom: 1px solid #c6c6c6;
    width: 100%;
}
.gift-card #email-giftcard-tofriend input {
    background: #ffffff;
    background-clip: padding-box;
    border: 1px solid #c2c2c2;
    border-radius: 1px;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    height: 32px;
    line-height: 1.42857143;
    padding: 0 9px;
    vertical-align: baseline;
    width: 100%;
    box-sizing: border-box;
}
.gift-card #email-giftcard-tofriend textarea {
    background: #ffffff;
    background-clip: padding-box;
    border: 1px solid #c2c2c2;
    border-radius: 1px;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    height: auto;
    line-height: 1.42857143;
    margin: 0;
    padding: 10px;
    vertical-align: baseline;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}
.gift-card .table.gift-code-basic > tbody > tr > td {
    padding: 0 15px 0 0;
}

.lsc-giftcard-pdp {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    gap: 32px;
    align-items: start;
    padding-bottom: 36px;
}

.lsc-giftcard-pdp__left {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 22px;
}

.lsc-giftcard-pdp__purchase {
    position: sticky;
    top: 18px;
    min-width: 0;
}

.lsc-giftcard-pdp__purchase .card {
    margin-bottom: 0;
    border: 1px solid #d9e5ea;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 31, 58, 0.08);
}

.lsc-giftcard-pdp__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.lsc-giftcard-pdp__details .product.info.detailed,
.lsc-giftcard-pdp__details .block.related,
.lsc-giftcard-pdp__details .block.upsell {
    margin: 0;
    border: 1px solid #d9e5ea;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 31, 58, 0.05);
}

.lsc-giftcard-pdp__details .product.info.detailed {
    padding: 20px;
}

.lsc-giftcard-pdp__details .product.info.detailed [role="tablist"],
.lsc-giftcard-pdp__details .product.info.detailed .data.item.title {
    display: none;
}

.lsc-giftcard-pdp__details .product.info.detailed .data.item.content,
.lsc-giftcard-pdp__details .product.info.detailed .prose {
    max-width: none;
}

.lsc-giftcard-pdp__details .block.related {
    padding: 20px;
}

.lsc-giftcard-pdp__details .block.related .title {
    margin-bottom: 12px;
}

.lsc-giftcard-default-preview {
    overflow: hidden;
    margin: 0;
    border: 1px solid #d7e4ea;
    border-radius: 18px;
    background: #f6fafc;
    box-shadow: 0 20px 50px rgba(15, 31, 58, 0.08);
}

.lsc-giftcard-default-preview img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.lsc-giftcard-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
    padding: 0;
    color: #14243a;
}

.lsc-giftcard-section {
    overflow: hidden;
    border: 1px solid #d9e5ea;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 31, 58, 0.06);
}

.lsc-giftcard-section__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf3f5;
    background: #f8fbfc;
}

.lsc-giftcard-section__header h2 {
    margin: 0;
    color: #0f2137;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.lsc-giftcard-section__header p {
    margin: 4px 0 0;
    color: #637385;
    font-size: 13px;
    line-height: 1.4;
}

.lsc-giftcard-step {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #007c9f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.lsc-giftcard-field,
.lsc-giftcard-section > template + div,
.lsc-giftcard-section > div:not(.lsc-giftcard-section__header) {
    padding: 18px 20px;
}

.lsc-giftcard-form .form-group {
    margin: 0;
}

.lsc-giftcard-form label,
.lsc-giftcard-form .label_value {
    display: block;
    margin: 0 0 8px;
    color: #26364f;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.lsc-giftcard-form em {
    margin-left: 3px;
    color: #d92d20;
}

.lsc-giftcard-form input[type="text"],
.lsc-giftcard-form input[type="email"],
.lsc-giftcard-form input[type="number"],
.lsc-giftcard-form input[type="date"],
.lsc-giftcard-form select,
.lsc-giftcard-form textarea,
.lsc-giftcard-form #amount_range {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cfdbe3;
    border-radius: 8px;
    background: #ffffff;
    color: #14243a;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
}

.lsc-giftcard-form input:focus,
.lsc-giftcard-form select:focus,
.lsc-giftcard-form textarea:focus {
    border-color: #0082a5;
    outline: 2px solid rgba(0, 130, 165, 0.16);
    outline-offset: 0;
}

.lsc-giftcard-form textarea {
    min-height: 112px;
    resize: vertical;
}

.lsc-giftcard-static-price {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #0f2137;
    font-size: 24px;
    font-weight: 800;
}

.lsc-giftcard-choice-grid,
.lsc-giftcard-template-grid,
.lsc-giftcard-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lsc-giftcard-choice,
.lsc-giftcard-template-option {
    padding: 0 10px;
    border: 1px solid #bfd4de;
    border-radius: 8px;
    background: #ffffff;
    color: #153247;
    font-size: 14px;
    font-weight: 700;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.lsc-giftcard-choice:hover,
.lsc-giftcard-template-option:hover,
.lsc-giftcard-choice.is-active,
.lsc-giftcard-template-option.is-active {
    border-color: #0082a5;
    background: #ecfbff;
    box-shadow: 0 0 0 2px rgba(0, 130, 165, 0.14);
}

.lsc-giftcard-image-option {
    overflow: hidden;
    width: 58px;
    height: 58px;
    padding: 2px;
    border: 1px solid #bfd4de;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.lsc-giftcard-image-option img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.lsc-giftcard-image-option:hover,
.lsc-giftcard-image-option.is-active {
    border-color: #0082a5;
    box-shadow: 0 0 0 2px rgba(0, 130, 165, 0.14);
}

.lsc-giftcard-range {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 8px;
    color: #5f7085;
    font-size: 13px;
}

.lsc-giftcard-range strong {
    color: #14243a;
}

.lsc-giftcard-upload {
    padding-top: 0;
}

.lsc-giftcard-upload small {
    display: block;
    margin-top: 4px;
    color: #6f7d8f;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.lsc-giftcard-upload input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px dashed #b8cbd5;
    border-radius: 10px;
    background: #f8fbfc;
}

.lsc-giftcard-custom-image {
    position: relative;
    display: inline-flex;
    margin-top: 12px;
    padding: 3px;
    border: 1px solid #bfd4de;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.lsc-giftcard-custom-image img {
    border-radius: 6px;
}

.lsc-giftcard-check {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 14px 20px;
    border-top: 1px solid #edf3f5;
    color: #26364f;
    line-height: 18px;
    cursor: pointer;
}

.lsc-giftcard-check input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0082a5;
}

.lsc-giftcard-recipient-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 20px;
    border-top: 1px solid #edf3f5;
    background: #fbfdfe;
}

.lsc-giftcard-recipient-panel h3,
.lsc-giftcard-note,
.lsc-giftcard-recipient-email {
    grid-column: 1 / -1;
}

.lsc-giftcard-recipient-panel h3 {
    margin: 0;
    color: #0f2137;
    font-size: 15px;
    font-weight: 800;
}

.lsc-giftcard-note {
    padding: 12px 14px;
    border: 1px solid #d7eaf0;
    border-radius: 10px;
    background: #eefaff;
    color: #37536a;
    font-size: 13px;
    line-height: 1.5;
}

.lsc-giftcard-help,
.lsc-giftcard-form small {
    margin: 7px 0 0;
    color: #6f7d8f;
    font-size: 12px;
    line-height: 1.4;
}

.lsc-giftcard-schedule {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 14px;
    padding: 0 20px 18px;
}

.lsc-giftcard-schedule .row,
.lsc-giftcard-schedule .col-xs-12 {
    margin: 0;
    padding: 0;
}

@media (max-width: 767px) {
    .lsc-giftcard-pdp {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lsc-giftcard-pdp__purchase {
        position: static;
        order: 1;
    }

    .lsc-giftcard-pdp__left {
        order: 2;
    }

    .lsc-giftcard-pdp__details .product.info.detailed,
    .lsc-giftcard-pdp__details .block.related {
        padding: 16px;
    }

    .lsc-giftcard-section__header,
    .lsc-giftcard-field,
    .lsc-giftcard-section > template + div,
    .lsc-giftcard-section > div:not(.lsc-giftcard-section__header),
    .lsc-giftcard-check,
    .lsc-giftcard-recipient-panel {
        padding-right: 16px;
        padding-left: 16px;
    }

    .lsc-giftcard-recipient-panel,
    .lsc-giftcard-schedule {
        grid-template-columns: 1fr;
    }
}
