.gift-card-page {
    max-width: 640px;
    margin: 30px auto 60px;
    padding: 0 15px;
}

.gift-card-page .gc-header {
    text-align: center;
    margin-bottom: 25px;
}

.gift-card-page .gc-header .gc-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #c91f27;
    color: #fff;
    font-size: 24px;
    margin-bottom: 12px;
}

.gift-card-page .gc-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}

.gift-card-page .gc-header p {
    color: #777;
    font-size: 14px;
    margin: 0;
}

.gift-card-page .gc-section {
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 20px;
    background: #fff;
}

.gift-card-page .gc-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 15px;
}

.gift-card-page .gc-section-title i {
    color: #c91f27;
    margin-right: 8px;
}

.gift-card-page .gc-form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gift-card-page .gc-form-group {
    flex: 1 1 220px;
}

.gift-card-page .gc-form-group label {
    display: block;
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
}

.gift-card-page .gc-form-group input,
.gift-card-page .gc-form-group textarea {
    width: 100%;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 14px;
}

.gift-card-page .gc-amount-toggle {
    display: flex;
    margin-bottom: 15px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    overflow: hidden;
}

.gift-card-page .gc-amount-toggle .gc-toggle-btn {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.gift-card-page .gc-amount-toggle .gc-toggle-btn.active {
    background: #c91f27;
    color: #fff;
}

.gift-card-page .gc-amount-toggle .gc-toggle-btn:not(.active) {
    background: #f5f5f5;
    color: #666;
}

.gift-card-page .gc-amount-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.gift-card-page .gc-amount-toggle .gc-toggle-btn {
    border: 0;
    cursor: pointer;
}

.gift-card-page .gc-amount-item {
    text-align: center;
    padding: 12px 0;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    background: #fff;
}

.gift-card-page .gc-custom-amount input {
    width: 100%;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 14px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

.gift-card-page .gc-amount-item.selected {
    background: #c91f27;
    border-color: #c91f27;
    color: #fff;
}

.gift-card-page .gc-design-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gift-card-page .gc-design-item {
    position: relative;
    border: 0;
    border-radius: 6px;
    min-height: 90px;
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #2b2b38;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.gift-card-page .gc-design-item i {
    font-size: 20px;
    margin-bottom: 8px;
}

.gift-card-page .gc-design-item .gc-design-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-bottom: 8px;
}

.gift-card-page .gc-design-item.selected::after {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: #c91f27;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-card-page .gc-char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.gift-card-page .gc-help-text {
    font-size: 12px;
    color: #999;
    margin: 8px 0 0;
}

.gift-card-page input[type="date"] {
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 14px;
    cursor: pointer;
}

.gift-card-page .gc-section textarea {
    width: 100%;
    display: block;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 14px;
    resize: vertical;
}

.gift-card-page .gc-error-msg {
    display: none;
    color: #c91f27;
    font-size: 12px;
    margin-top: 6px;
}

.gift-card-page .gc-form-error {
    margin: 0 0 15px;
    text-align: center;
}

.gift-card-page .gc-input-error {
    border-color: #c91f27;
}

.gift-card-page .gc-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    color: #444;
    margin: 0;
    cursor: pointer;
}

.gift-card-page .gc-terms input[type="checkbox"] {
    margin: 2px 0 0;
}

.gift-card-page .gc-terms a {
    color: #c91f27;
    text-decoration: underline;
}

.gift-card-page .gc-submit-row {
    margin-bottom: 40px;
}

.gift-card-page .gc-add-to-cart-btn {
    width: 100%;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.gift-card-page .gc-add-to-cart-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .gift-card-page .gc-amount-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .gift-card-page .gc-design-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gc-cart-config-card {
    position: relative;
    margin-bottom: 7px;
    container-type: inline-size;
}

.gc-cart-config-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.gc-cart-config-logo {
    position: absolute;
    top: 9%;
    left: 10px;
    width: 125px !important;
    height: 28px !important;
    filter: brightness(0) invert(1);
}


.cart-product.product-body-v2 .product-features .gc-cart-config-card .gc-cart-config-logo {
    width: 125px !important;
    height: 28px !important;
}

.gc-cart-config-text {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 38%;
    bottom: 7%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
    text-align: left;
    line-height: 1.15;
}

.gc-cart-config-label {
    font-size: 12px;
    font-weight: 350;
}

.gc-cart-config-value {
    font-size: 30px;
    font-weight: 400;
}

.gc-cart-config-design {
    margin-top: auto;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    font-size: 11px;
    text-transform: uppercase;
}

.cart-product.product-body-v2 .product-features .gc-cart-config-card {
    flex: 0 0 100%;
    margin-bottom: 0;
}
.cart-product.product-body-v2 .product-features .gc-cart-config-card .gc-cart-config-image {
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .cart-product.product-body-v2 .product-features .gc-cart-config-card .gc-cart-config-logo {
        top: 8%;
        left: 6px;
        width: 64px !important;
        height: 14px !important;
    }

    .cart-product.product-body-v2 .product-features .gc-cart-config-text {
        left: 6px;
        right: 6px;
        top: 34%;
        bottom: 6%;
    }

    .cart-product.product-body-v2 .product-features .gc-cart-config-label {
        font-size: 8px;
    }

    .cart-product.product-body-v2 .product-features .gc-cart-config-value {
        font-size: 20px;
    }

    .cart-product.product-body-v2 .product-features .gc-cart-config-design {
        padding: 4px 4px;
        border-radius: 3px;
        font-size: 7px;
    }
}

.gc-cart-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    min-height: 80px;
    padding: 12px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #FF5B00, #FF0098);
    color: #fff;
    text-align: center;
}

.gc-cart-image-value {
    font-size: 16px;
    font-weight: 700;
}

.gc-cart-image-design {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
}

.gc-cart-image-v2 .gc-cart-image-design {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.shopping-cart .cart-item .item-image .gc-cart-image {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.shopping-cart .cart-item .item-image .gc-cart-icon {
    margin-bottom: 2px;
}

.shopping-cart .cart-item .item-image .gc-cart-image-design {
    margin-top: 0;
    line-height: 1.2;
}

.shopping-cart .cart-item .item-image .gc-cart-config-card {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
}

.shopping-cart .cart-item .item-image .gc-cart-config-card .gc-cart-config-image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    object-fit: cover;
}

.shopping-cart .cart-item .item-image .gc-cart-config-card .gc-cart-config-logo {
    top: 8%;
    left: 8px;
    width: 86px !important;
    height: auto !important;
    padding: 0;
}

.shopping-cart .cart-item .item-image .gc-cart-config-text {
    left: 8px;
    right: 8px;
    top: 34%;
    bottom: 6%;
}

.shopping-cart .cart-item .item-image .gc-cart-config-label {
    font-size: 11px;
}

.shopping-cart .cart-item .item-image .gc-cart-config-value {
    font-size: 27px;
}

.shopping-cart .cart-item .item-image .gc-cart-config-design {
    padding: 5px;
    border-radius: 3px;
    font-size: 9px;
    line-height: 1;
}

@media only screen and (max-width: 576px) {
    .shopping-cart .cart-item .item-image .gc-cart-config-card .gc-cart-config-logo {
        left: 6px;
        width: 59px !important;
    }

    .shopping-cart .cart-item .item-image .gc-cart-config-text {
        left: 6px;
        right: 6px;
    }

    .shopping-cart .cart-item .item-image .gc-cart-config-label {
        font-size: 8px;
    }

    .shopping-cart .cart-item .item-image .gc-cart-config-value {
        font-size: 18px;
    }

    .shopping-cart .cart-item .item-image .gc-cart-config-design {
        padding: 4px;
        font-size: 7px;
    }
}

.gc-cart-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 6px;
}

.gc-cart-icon.gc-cart-icon-custom {
    flex: 0 0 auto;
    object-fit: contain;
    filter: none;
}

.cart-product.product-body-v2 .product-features .gc-cart-image .gc-cart-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-bottom: 6px;
}

.product-title-sub {
    font-size: 14px;
    color: #767676;
    margin-top: 2px;
}

.gift-card-actions {
    margin-top: 16px;
}

.gift-card-trigger,
.gift-card-trigger:hover,
.gift-card-trigger:focus,
.gift-card-trigger:active {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    text-decoration: underline;
    outline: none;
}

.gift-card-trigger .fa-chevron-down {
    font-size: 10px;
    text-decoration: none;
}

/* Cart page variant: a bordered dropdown-style box instead of a plain underlined link */
.gift-card-trigger-box,
.gift-card-trigger-box:hover,
.gift-card-trigger-box:focus,
.gift-card-trigger-box:active {
    justify-content: space-between;
    width: 100%;
    max-width: 480px;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-weight: 400;
    text-decoration: none;
    box-sizing: border-box;
}

/* Cart page: the heading and the recipient details sit in one bordered box, split by a line when open */
.gift-card-details-box {
    width: 100%;
    max-width: 480px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    box-sizing: border-box;
}

.gift-card-details-box .gift-card-trigger-box,
.gift-card-details-box .gift-card-trigger-box:hover,
.gift-card-details-box .gift-card-trigger-box:focus,
.gift-card-details-box .gift-card-trigger-box:active {
    max-width: none;
    border: 0;
    padding: 0 20px;
}

.gift-card-details-box .gift-card-trigger-box .fa-chevron-down {
    transition: transform 0.2s;
}

.gift-card-details-box.open .gift-card-trigger-box .fa-chevron-down {
    transform: rotate(180deg);
}

.gift-card-details-box .gift-card-drawer,
.gift-card-details-box .gift-card-drawer.open {
    margin: 0 20px;
}

.gift-card-details-box .gift-card-drawer.open {
    padding: 12px 0;
    border-top: 1px solid #e5e5e5;
}

.gift-card-details-box .gift-card-table {
    max-width: none;
    font-size: 13px;
}

.gift-card-details-box .gift-card-table th,
.gift-card-details-box .gift-card-table td {
    padding: 6px 0;
}

.gift-card-details-box .gift-card-table th {
    width: 140px;
    font-weight: 500;
    color: #333;
}

.gift-card-details-box .gift-card-table td {
    color: #777;
}

.gift-card-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, margin 0.3s;
}

.gift-card-drawer.open {
    height: 100%;
    max-height: max-content;
    margin-top: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    overflow-y: auto;
}

.gift-card-table {
    width: 100%;
    max-width: 480px;
    border-collapse: collapse;
    font-size: 12px;
}

.gift-card-table th,
.gift-card-table td {
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.gift-card-table th {
    width: 90px;
    font-weight: 600;
    white-space: nowrap;
}

.gift-card-page .gc-notice {
    border: 1px solid #f0c36d;
    background: #fdf7e3;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #6b5420;
}

.gift-card-page .gc-notice a {
    color: #c91f27;
    text-decoration: underline;
    margin-left: 4px;
}

.credit-card-box.gift-card-payment-hidden {
    display: none !important;
}

.express-payment-buttons.one-button .express-btn-item,
.express-payment-buttons.one-button .express-btn-item > div,
.express-payment-buttons.one-button #applePayContainer,
.express-payment-buttons.one-button #paypalContainer,
.express-payment-buttons.one-button #paypalLaterContainer,
.express-payment-buttons.one-button #payjs-applePayBtn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.gift-card-change-history {
    max-height: 450px;
    overflow: auto;
}

.gift-card-history-design + .gift-card-history-design {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}

.gift-card-history-design-name {
    font-weight: 700;
    margin-bottom: 2px;
}

.gift-card-history-design-field {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.8;
}

.gift-card-history-design-field > span:first-child {
    color: #6b7280;
}

.gift-card-history-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    flex: 0 0 16px;
}

.gift-card-history-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .cart-product.product-body-v2 .product-features .gc-cart-config-card {
        flex: 0 1 auto;
        width: 100%;
        max-width: 315px;
    }

    .gift-card-details-box {
        max-width: none;
        margin-top: 20px;
        border: 0;
        border-radius: 0;
    }

    .gift-card-details-box .gift-card-trigger-box,
    .gift-card-details-box .gift-card-trigger-box:hover,
    .gift-card-details-box .gift-card-trigger-box:focus,
    .gift-card-details-box .gift-card-trigger-box:active {
        height: auto;
        padding: 0 0 14px;
        font-size: 14px;
        font-weight: 500;
        color: #333;
    }

    .gift-card-details-box .gift-card-trigger-box .fa-chevron-down {
        font-size: 14px;
        color: #4D4D4D;
    }

    .gift-card-details-box .gift-card-drawer,
    .gift-card-details-box .gift-card-drawer.open {
        margin: 0;
    }

    .gift-card-details-box .gift-card-drawer.open {
        padding: 14px 0 0;
        border-top: 1px solid #F2F2F2;
    }

    .gift-card-details-box .gift-card-table th {
        width: 72px;
        white-space: nowrap;
    }

    .gift-card-actions {
        margin-top: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .cart-product.product-body-v2 .product-features .gc-cart-config-card {
        flex: 0 0 auto;
        width: 149px;
        height: 105px;
    }
}

@media (max-width: 991px) {
    .gift-card-actions {
        padding-right: 15px !important;
    }
}

.gc-order-thumb {
    border: 0 !important;
    background: none !important;
}

.gc-order-thumb .gc-cart-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 4px;
}

.gc-order-thumb .gc-cart-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 0;
}

.gc-order-thumb .gc-cart-config-card {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
}

.gc-order-thumb .gc-cart-config-image {
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.gc-order-thumb .gc-cart-config-logo {
    top: 7%;
    left: 6%;
    width: 43px !important;
    height: auto !important;
}

.gc-order-thumb .gc-cart-config-text {
    left: 6%;
    right: 6%;
    top: 32%;
    bottom: 7%;
    line-height: 1.1;
}

.gc-order-thumb .gc-cart-config-label {
    font-size: 6px;
}

.gc-order-thumb .gc-cart-config-value {
    font-size: 13px;
}

.gc-order-thumb .gc-cart-config-design {
    padding: 1px 3px;
    border-radius: 2px;
    font-size: 5px;
}

.cart-product:not(.product-body-v2) .product-features .gc-cart-config-card {
    max-width: 225px;
}
