body#gift-vouchers,
body#gift-vouchers-purchase {
    background: #f7f7f5;
}

.voucher-page {
    padding: 40px 20px 50px;
}

.voucher-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.voucher-intro {
    margin-bottom: 30px;
    text-align: center;
}

.voucher-intro h1,
.voucher-form h1 {
    font-size: 2em;
    line-height: 1.2;
    margin: 0 0 15px;
}

.voucher-intro p,
.voucher-form > p {
    margin-bottom: 10px;
}

.voucher-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.voucher-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 15px;
    background: #fff;
    border: 1px solid #d9d9d5;
    color: #303030;
    text-decoration: none;
}

.voucher-choice:hover {
    border-color: #507533;
    text-decoration: none;
}

.voucher-choice img {
    width: 180px;
    max-width: 100%;
    height: 200px;
    object-fit: contain;
}

.voucher-choice strong {
    font-size: 1.5em;
}

.voucher-choice span {
    color: #4c6638;
}

.voucher-store {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #d9d9d5;
    text-align: center;
}

.voucher-store h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.voucher-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 60px;
    align-items: start;
}

.voucher-art {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 40px;
    min-height: 400px;
}

.voucher-art img {
    width: 280px;
    max-width: 100%;
    height: auto;
}

.voucher-form {
    min-width: 0;
}

.voucher-form fieldset {
    margin: 25px 0;
    padding: 0;
    border: 0;
}

.voucher-form legend,
.voucher-field label {
    display: block;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
}

.voucher-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.voucher-amounts label {
    position: relative;
    cursor: pointer;
}

.voucher-amounts input {
    position: absolute;
    opacity: 0;
}

.voucher-amounts span {
    display: block;
    min-width: 75px;
    padding: 10px 15px;
    border: 1px solid #aaa;
    background: #fff;
    text-align: center;
}

.voucher-amounts input:checked + span {
    background: #344f25;
    border-color: #344f25;
    color: #fff;
}

.voucher-names {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

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

.voucher-field label {
    padding-left: 15px;
}

.voucher-field input,
.voucher-field textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 15px;
    min-height: 45px;
    border: 1px solid #aaa;
    border-radius: 5px;
    background: #fff;
    color: #303030;
    font: inherit;
}

.voucher-field textarea {
    min-height: 110px;
    resize: vertical;
}

.voucher-field input::placeholder,
.voucher-field textarea::placeholder {
    color: #686868;
    opacity: 1;
}

.voucher-error:empty {
    display: none;
}

.voucher-help {
    display: block;
    font-size: 0.9em;
    color: #555;
    margin: 10px 0 0;
    line-height: 1.5;
}

.voucher-error {
    color: #a02424;
    margin: 10px 0;
}

.voucher-field [aria-invalid="true"] {
    border-color: #a02424;
}

.voucher-submit {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 10px 20px;
    border: 0;
    border-radius: 3px;
    background: #008b00;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.voucher-submit:hover {
    background: #006b00;
}

.voucher-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.voucher-page a:focus-visible,
.voucher-page button:focus-visible,
.voucher-field input:focus-visible,
.voucher-field textarea:focus-visible,
.voucher-amounts input:focus-visible + span {
    outline: 3px solid #225e9a;
    outline-offset: 3px;
}

@media (max-width: 750px) {
    .voucher-page {
        padding: 25px 20px 35px;
    }

    .voucher-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .voucher-choice img {
        height: 150px;
    }

    .voucher-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .voucher-art {
        min-height: 0;
        padding: 15px;
    }

    .voucher-art img {
        width: 120px;
    }

    .voucher-names {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
