.gift-cards_form .gift-cards-list button.ywgc-predefined-amount-button,
.gift-cards_form .gift-cards-list .ywgc-manual-amount-container.ywgc-amount-buttons {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    margin: 0 0 6px;
    margin-inline-end: 6px;
    padding: 0 12px;
    vertical-align: top;
    background: #fff !important;
    border: 1px solid #d8dadd;
    border-radius: 6px;
    box-shadow: none;
    color: #232629 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.gift-cards_form .gift-cards-list button.ywgc-predefined-amount-button:hover {
    border-color: #a4a9af;
}

/* Product templates can apply their cart-button sizing to every button. */
.gift-cards_form .gift-cards-list button.ywgc-predefined-amount-button {
    cursor: pointer;
    height: 36px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

/* The legacy selected style is also marked important. */
.gift-cards_form .gift-cards-list button.ywgc-predefined-amount-button.selected_button {
    background: var(--mc-gift-cart-bg, #232629) !important;
    border-color: var(--mc-gift-cart-bg, #232629);
    color: var(--mc-gift-cart-fg, #fff) !important;
}

.gift-cards_form .gift-cards-list button.ywgc-predefined-amount-button .woocommerce-Price-amount {
    color: inherit;
}

.gift-cards_form .gift-cards-list .ywgc-manual-amount-container.ywgc-amount-buttons {
    width: 148px !important;
    padding: 0 9px;
    gap: 5px;
    direction: ltr;
}

.gift-cards_form .gift-cards-list #ywgc-manual-amount-div-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.gift-cards_form .gift-cards-list .ywgc-manual-currency-symbol {
    position: static;
    flex: none;
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
}

.gift-cards_form .gift-cards-list input#ywgc-manual-amount {
    flex: 1;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    text-align: start;
}

.gift-cards_form .gift-cards-list input#ywgc-manual-amount::placeholder,
.gift-cards_form .gift-cards-list input#ywgc-manual-amount:focus::placeholder {
    color: #686d72;
    font-size: 13px;
    opacity: 1;
}

.gift-cards_form .gift-cards-list button.ywgc-predefined-amount-button:focus-visible,
.gift-cards_form .gift-cards-list .ywgc-manual-amount-container:focus-within {
    outline: 2px solid var(--mc-gift-cart-bg, #232629);
    outline-offset: 2px;
}

.gift-cards_form .gift-cards-list .ywgc-manual-amount-container.ywgc-red-border {
    border-color: #b32d2e !important;
}

html[dir="rtl"] .gift-cards_form,
html[dir="rtl"] .ywgc_enter_code,
html[dir="rtl"] .ywgc-shortcode-form {
    text-align: start;
}

html[dir="rtl"] .gift-cards_form .gift-cards-list input#ywgc-manual-amount {
    text-align: right;
}

html[dir="rtl"] .gift-cards_form .ywgc-recipient-name,
html[dir="rtl"] .ywgc_enter_code .form-row {
    float: inline-start;
}

.gift-cards_form .gift-cards-list .ywgc-manual-amount-error {
    display: inline-block;
    float: none;
    max-width: 100%;
    margin-block-end: 6px;
    vertical-align: middle;
    text-align: start;
}

html[dir="rtl"] .gift-cards_form .ywgc-recipient-email,
html[dir="rtl"] .gift-cards_form .ywgc-sender-name,
html[dir="rtl"] .gift-cards_form .ywgc-postdated,
html[dir="rtl"] .gift-cards_form .add-recipient {
    float: inline-end;
}

html[dir="rtl"] .gift-cards_form .ywgc-delivery-notification-checkbox-container {
    text-align: start;
}

html[dir="rtl"] .ywgc-design-categories-title {
    padding-left: 0;
    padding-inline-start: 40px;
}

@media (min-width: 601px) {
    html[dir="rtl"] .ywgc-design-list-menu,
    html[dir="rtl"] ul.ywgc-template-categories {
        float: inline-start;
    }

    html[dir="rtl"] .ywgc-design-list-modal,
    html[dir="rtl"] .ywgc-custom-upload-container-modal {
        float: inline-end;
    }

    html[dir="rtl"] .ywgc-design-list-modal {
        right: auto;
        inset-inline-end: 0;
        padding-inline: 25px 7px;
    }
}

@media (max-width: 600px) {
    html[dir="rtl"] .gift-cards_form .ywgc-recipient-name,
    html[dir="rtl"] .gift-cards_form .ywgc-recipient-email,
    html[dir="rtl"] .gift-cards_form .ywgc-sender-name,
    html[dir="rtl"] .gift-cards_form .ywgc-postdated {
        float: none;
        width: 100%;
    }
}

.gift-cards_form .gift-card-content-editor.step-content {
    display: grid;
    gap: 12px;
    text-align: start;
    margin-block: 0 18px;
}

.gift-cards_form .gift-card-content-editor.step-content .ywgc-single-recipient {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.gift-cards_form .gift-card-content-editor.step-content :is(.ywgc-recipient-name, .ywgc-recipient-email, .ywgc-sender-name, .ywgc-postdated, .ywgc-message) {
    display: grid;
    gap: 5px;
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.gift-cards_form .gift-card-content-editor.step-content :is(.clearfix, .ywgc-single-recipient)::before,
.gift-cards_form .gift-card-content-editor.step-content :is(.clearfix, .ywgc-single-recipient)::after,
.gift-cards_form .gift-card-content-editor.step-content::after {
    content: none;
}

.gift-cards_form .gift-card-content-editor.step-content h5 {
    margin: 4px 0 0;
    font-size: 14px;
    text-align: start;
}

.gift-cards_form .gift-card-content-editor.step-content label {
    width: auto;
    margin: 0;
    text-align: start;
    line-height: 1.4;
}

.gift-cards_form .gift-card-content-editor.step-content :is(input[type="text"], input[type="email"], textarea) {
    box-sizing: border-box;
    float: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #d8dadd;
    border-radius: 6px;
    background: #fff;
}

@media (max-width: 600px) {
    .gift-cards_form .gift-card-content-editor.step-content .ywgc-single-recipient {
        grid-template-columns: minmax(0, 1fr);
    }
}
