/* product template styles */
button.price-button {
    background-color: #eeeeee !important;
    border-color: #eeeeee;
    color: #333333;
    border: 0;
    border-radius: 0;
    background: none;
    cursor: pointer;
    padding: .6180469716em 1.41575em;
    text-decoration: none;
    font-weight: 600;
    text-shadow: none;
    display: inline-block;
}

button.price-button.selected, button.price-button:hover {
    background-color: #d5d5d5 !important;
    border-color: #d5d5d5 !important;
    color: #333333 !important;
}

.gift-card-templates {
    display: flex;
    flex-wrap: wrap;
}

.gift-card-template img {
    width: 250px;
    height: 130px;
    object-fit: cover;
}

.gift-card-template:not(.selected) img {
    width: 266px !important;
}

.gift-card-template {
    margin-bottom: 20px;
    margin-right: 20px;
    padding: 5px;
    cursor: pointer;
}

.gift-card-template.selected {
    border: 4px solid #cda4a4;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
}

.gift-card-template.selected::before {
    content: "";
    position: absolute;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0iI2NkYTRhNCI+CjxwYXRoIGQ9Ik0yNCw0QzEyLjk3Miw0LDQsMTIuOTcyLDQsMjRzOC45NzIsMjAsMjAsMjBzMjAtOC45NzIsMjAtMjBTMzUuMDI4LDQsMjQsNHogTTMyLjU2MSwyMC41NjFsLTEwLDEwCUMyMi4yNjgsMzAuODU0LDIxLjg4NCwzMSwyMS41LDMxcy0wLjc2OC0wLjE0Ni0xLjA2MS0wLjQzOWwtNS01Yy0wLjU4Ni0wLjU4Ni0wLjU4Ni0xLjUzNSwwLTIuMTIxczEuNTM1LTAuNTg2LDIuMTIxLDBsMy45MzksMy45MzkJbDguOTM5LTguOTM5YzAuNTg2LTAuNTg2LDEuNTM1LTAuNTg2LDIuMTIxLDBTMzMuMTQ2LDE5Ljk3NSwzMi41NjEsMjAuNTYxeiI+PC9wYXRoPgo8L3N2Zz4=);
    background-repeat: no-repeat;
    right: 5px;
    top: 5px;
    font-size: 26px !important;
    color: #cda4a4;
    width: 20px;
    height: 20px;
}

.gift-card-template.selected {
    position: relative;
}

.form-field.send-to-someonce label {
    display: block;
}

.form-field {
    margin-bottom: 20px;
}

.form-field.send-to-someonce input, .form-field.send-to-someonce textarea {
    width: 50%;
}

.form-field.send-to-someonce textarea {
    resize: none;
}

.form-field input[type=datetime-local] {
    padding: .6180469716em;
    background-color: #f2f2f2;
    color: #43454b;
    border: 0;
    box-sizing: border-box;
    font-weight: 400;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.125);
}

.preview-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}
.preview-overlay.show {
    visibility: visible;
    opacity: 1;
}
.preview-popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 40%;
    position: absolute;
    transition: all 2s ease-in-out;
    z-index: 999999999;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.preview-popup .preview-close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.preview-popup .gift-card-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gift-card-details p {
    margin-bottom: 0;
}

.preview-popup .gift-card-message {
    text-align: center;
    margin-top: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-popup img {
    border-radius: 10px;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* store credit */

.store-credit-amount.hidden {
    display: none !important;
}

p.store-credit-amount {
    display: flex;
    flex-direction: column;
    width: 60%;
    margin: 20px 0;
}

/* gift card block cart */
.redeem-gift-card {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.redeem-gift-card > * {
    margin: 0 !important;
}

.redeem-gift-card input {
    width: 80%;
}

.gift-card-error,
.store-credit-error {
    color: rgb(231, 96, 96);
}

/* gift card block checkout */
form[name="checkout"] .redeem-gift-card {
    flex-direction: column;
}

form[name="checkout"] .redeem-gift-card > * {
    width: 100%;
}

form[name="checkout"] .redeem-gift-card input[name="redeem-gift-card"] {
    margin-bottom: 10px !important;
}

form[name="checkout"] h2.redeem-gift-card-heading {
    font-size: 1.618em;
}

/* store credit checkout */
.store-credit-block {
    margin-bottom: 20px;
}

.store-credit-block h3, .store-credit-block p {
    margin-bottom: 0;
}

.store-credit {
    display: flex;
    flex-direction: column;
}

.store-credit input {
    margin-bottom: 10px !important;
}

/* my-account */
.add-to-credit p {
    margin-bottom: 5px;
}

.add-to-credit-fields input.add_to_credit {
    width: 40%;
}

.add-to-credit {
    margin-bottom: 20px;
}

p.gc-ode {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 30px;
}

.gift-card-balance-details {
    display: flex;
    margin-bottom: 50px;
}

.gift-card-balance-details > div p {
    font-size: 26px;
    margin: 0 !important;
}

.gc-balance {
    margin-left: 50px;
}

.activity-table p {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}
/* product template styles */

/* block cart */
button.wc-block-components-panel__button.gift-card-toggle-button:focus {
    outline: none;
}

/* block theme */

body.woocommerce-uses-block-theme input[type="datetime-local"] {
    background: white !important;
    border: 1px solid rgb(118, 118, 118), !important;
    border-radius: 4px;
}

body.woocommerce-uses-block-theme .send-to-someone-email,
body.woocommerce-uses-block-theme .add_to_credit,
body.woocommerce-uses-block-theme input[name="other_amount"],
body.woocommerce-uses-block-theme .cart_totals input[name="redeem-gift-card"],
body.woocommerce-uses-block-theme input[name="store-credit"]
 {
    height: 30px;
}

body.woocommerce-uses-block-theme p.store-credit-amount small {
    font-size: 12px;
    margin-top: 2px;
}

body.woocommerce-uses-block-theme p.store-credit-amount label {
    font-size: 18px;
}

body.woocommerce-uses-block-theme table.gift-card-store-credit, 
body.woocommerce-uses-block-theme .gift-card-store-credit th, 
body.woocommerce-uses-block-theme .gift-card-store-credit td,
body.woocommerce-uses-block-theme table.single-gift-card, 
body.woocommerce-uses-block-theme .single-gift-card th, 
body.woocommerce-uses-block-theme .single-gift-card td {
    border: 1px solid black;
    border-collapse: collapse;
}

body.woocommerce-uses-block-theme .store-credit-block,
body.woocommerce-uses-block-theme form.checkout  .redeem-gift-card {
    width: 70%;
}

body.woocommerce-uses-block-theme .cart_totals .redeem-gift-card input {
    width: 78% !important;
}