552 lines
14 KiB
CSS
552 lines
14 KiB
CSS
.formipay-form, .form-fields-wrapper, .result-wrapper, .formipay-page-break {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1em;
|
|
/* margin-bottom: 1em; */
|
|
}
|
|
.formipay-form img {
|
|
max-width: 100%;
|
|
}
|
|
.formipay-2-cols {
|
|
display: grid;
|
|
grid-template-columns: 65% 35%;
|
|
gap: 1em;
|
|
}
|
|
.formipay-field-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.formipay-hidden-group{
|
|
display: none;
|
|
}
|
|
.formipay-label:not(:has(input)) {
|
|
font-weight: 600;
|
|
}
|
|
.divider-label {
|
|
font-size: larger;
|
|
margin-bottom: 0;
|
|
}
|
|
span.divider-line {
|
|
border-top: 1px dashed #ccc;
|
|
display: block;
|
|
}
|
|
.formipay-hidden-element {
|
|
display: none;
|
|
}
|
|
.formipay-input-desc {
|
|
font-size: smaller;
|
|
color: #b7b7b7;
|
|
margin-bottom: 0;
|
|
}
|
|
.formipay-field-group.preset.select-searchable > select.formipay-input.formipay-select{
|
|
display: none!important;
|
|
}
|
|
.formipay-input:not([type=radio]),
|
|
.formipay-qty-input {
|
|
border-radius: .5em!important;
|
|
border: 1px solid #b7b7b7!important;
|
|
padding: 12px 14px!important;
|
|
max-width: 100%;
|
|
width: unset;
|
|
}
|
|
.formipay-input, .formipay-qty-input {
|
|
font-size: 14px;
|
|
}
|
|
span.product-qty-wrapper {
|
|
display: flex;
|
|
gap: .5em;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
border: 1px solid #ddd;
|
|
border-radius: .5rem;
|
|
background-color: white;
|
|
width: fit-content;
|
|
}
|
|
span.product-qty-wrapper > button {
|
|
min-width: unset!important;
|
|
text-align: center;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 0 .25rem;
|
|
background-color: white;
|
|
}
|
|
span.product-qty-wrapper > button svg path {
|
|
stroke: var(--formipay-button-submit-text-color);
|
|
}
|
|
span.product-qty-wrapper > button {
|
|
background-color: transparent;
|
|
}
|
|
span.product-qty-wrapper > button svg path {
|
|
stroke: var(--formipay-button-submit-bg-color);
|
|
}
|
|
span.product-qty-wrapper > button:disabled svg path {
|
|
stroke: #666;
|
|
}
|
|
span.product-qty-wrapper > input {
|
|
width: 40px!important;
|
|
padding: .25rem!important;
|
|
border: unset!important;
|
|
background-color: transparent;
|
|
min-width: unset;
|
|
text-align: center;
|
|
}
|
|
span.product-qty-wrapper > input::-webkit-outer-spin-button,
|
|
span.product-qty-wrapper > input::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
span.product-qty-wrapper > input[type=number] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
/** CHOICES */
|
|
.choices__inner {
|
|
max-width: 100%;
|
|
width: unset;
|
|
display: block;
|
|
min-height: unset!important;
|
|
padding: 0!important;
|
|
border: 1px solid #b7b7b7!important;
|
|
border-radius: .5em!important;
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
.choices__list {
|
|
display: block;
|
|
}
|
|
|
|
.choices__list:not(.choices__list--dropdown) {
|
|
padding: 10px 14px;
|
|
}
|
|
|
|
.choices__list.choices__list--dropdown {
|
|
margin-top: .5em;
|
|
border-radius: .5em;
|
|
}
|
|
/** END CHOICES */
|
|
|
|
.formipay-qty-input {
|
|
width: 75px!important;
|
|
text-align: right;
|
|
}
|
|
.formipay-asterisk {
|
|
color: var(--formipay-required-field-sign-color);
|
|
}
|
|
.formipay-input-invalid {
|
|
border: 1px solid var(--formipay-required-field-sign-color)!important;
|
|
}
|
|
.formipay-button-error {
|
|
background-color: var(--formipay-required-field-sign-color)!important;
|
|
}
|
|
.formipay-button-success {
|
|
background-color: var(--formipay-button-submit-bg-color)!important;
|
|
}
|
|
.formipay-description {
|
|
margin-bottom: 2em;
|
|
}
|
|
.formipay-message {
|
|
background-color: #efefef!important;
|
|
border-radius: .5em;
|
|
padding: 1em;
|
|
border: 3px dashed #8d8d8d;
|
|
}
|
|
.formipay-message p {
|
|
margin-bottom: 0;
|
|
}
|
|
.formipay-message.formipay-message-success {
|
|
background-color: #d5eed4!important;
|
|
color: #4a8a46!important;
|
|
border-radius: 0.5em;
|
|
padding: 1em;
|
|
border: 3px dashed #4a8a46;
|
|
}
|
|
.formipay-message.formipay-message-failed {
|
|
background-color: #fec0c0!important;
|
|
color: #d82424!important;
|
|
border-radius: .5em;
|
|
padding: 1em;
|
|
border: 3px dashed #d82424;
|
|
}
|
|
.formipay-submit-button {
|
|
border-radius: .5em;
|
|
padding: .75em 1.5em;
|
|
background-color: var(--formipay-button-submit-bg-color);
|
|
color: var(--formipay-button-submit-text-color);
|
|
border: 2px solid var(--formipay-button-submit-border-color);
|
|
transition: all .3s;
|
|
font-size: var(--formipay-step-button-text-size);
|
|
position: relative;
|
|
}
|
|
.formipay-submit-button:hover {
|
|
background-color: var(--formipay-button-submit-bg-color-hover);
|
|
color: var(--formipay-button-submit-text-color-hover);
|
|
border-color: var(--formipay-button-submit-border-color-hover);
|
|
}
|
|
.formipay-submit-button:active {
|
|
background-color: var(--formipay-button-submit-bg-color-active);
|
|
color: var(--formipay-button-submit-text-color-active);
|
|
border-color: var(--formipay-button-submit-border-color-active);
|
|
}
|
|
.formipay-submit-button[disabled] {
|
|
opacity: 0.5;
|
|
}
|
|
.text-danger {
|
|
font-size: smaller;
|
|
color: red;
|
|
}
|
|
table td, table th, .wp-block-table td, .wp-block-table th {
|
|
border: unset;
|
|
}
|
|
.formipay-item-row th {
|
|
font-weight: normal;
|
|
}
|
|
.formipay-item-row td {
|
|
text-align: right;
|
|
vertical-align: bottom;
|
|
}
|
|
.formipay-total-row td {
|
|
text-align: right;
|
|
font-weight: bold;
|
|
padding-bottom: .25em;
|
|
}
|
|
.formipay-item-row:not(:first-child) {
|
|
border-top: 1px solid lightgray !important;
|
|
}
|
|
.formipay-item-row:not(:first-child) th, .formipay-item-row:not(:first-child) td{
|
|
padding-top: .15em;
|
|
}
|
|
.formipay-item-row:not(:nth-last-child(2)) th, .formipay-item-row:not(:nth-last-child(2)) td{
|
|
padding-bottom: .15em;
|
|
}
|
|
.formipay-total-row {
|
|
border-top: 1px solid;
|
|
}
|
|
.form-calculation {
|
|
border: 2px dashed;
|
|
padding: 1em;
|
|
border-radius: .5em;
|
|
background-color: #efefef;
|
|
}
|
|
span.formipay-value-badge {
|
|
font-size: small;
|
|
color: white;
|
|
background-color: #666;
|
|
padding: .25em 1em;
|
|
border-radius: 150px;
|
|
display: inline-flex;
|
|
margin-left: .25em;
|
|
}
|
|
table#formipay-review-order {
|
|
border: none;
|
|
width: 100%;
|
|
margin-bottom: 0;
|
|
}
|
|
#formipay-review-order td:last-child{
|
|
text-align: right;
|
|
padding-top: .25em;
|
|
padding-bottom: .25em;
|
|
text-wrap: nowrap;
|
|
}
|
|
#formipay-review-order th{
|
|
text-align: left;
|
|
padding-top: .25em;
|
|
padding-bottom: .25em;
|
|
}
|
|
table#formipay-review-order tr:not(:first-child):not(.formipay-grand-total-row) td,
|
|
table#formipay-review-order tr:not(:first-child):not(.formipay-grand-total-row) th {
|
|
border-top: 1px solid grey !important;
|
|
}
|
|
table#formipay-review-order .sub {
|
|
color: #008000;
|
|
}
|
|
table#formipay-review-order .add {
|
|
color: #FF0000;
|
|
}
|
|
table#formipay-review-order tr.sub,
|
|
table#formipay-review-order tr.add,
|
|
table#formipay-review-order tr.no-context{
|
|
font-size: small;
|
|
}
|
|
.formipay-validate-field {
|
|
margin-bottom: 0;
|
|
color: var(--formipay-required-field-sign-color);
|
|
}
|
|
.formipay-field-group > label {
|
|
font-weight: bold;
|
|
}
|
|
.formipay-payments {
|
|
display: grid;
|
|
grid-template-columns: repeat(var(--formipay-payment-desktop-columns), 1fr);
|
|
gap: .5em;
|
|
}
|
|
.formipay-payment-option-group > label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
height: 40px;
|
|
}
|
|
.formipay-payment-option-group > label > .formipay-payment-name {
|
|
margin-top: auto;
|
|
}
|
|
.formipay-payment-option-group > label > .formipay-payment-logo {
|
|
max-height: 40px;
|
|
object-fit: contain;
|
|
}
|
|
.formipay-payment-option-group {
|
|
position: relative;
|
|
border: 2px solid darkgrey;
|
|
border-radius: 10px;
|
|
padding: .5em;
|
|
}
|
|
.formipay-payment-option-group:has(input:checked) {
|
|
border-color: var(--formipay-button-submit-bg-color);
|
|
box-shadow: 0 5px 15px -5px darkgrey;
|
|
}
|
|
.formipay-input[type=radio], .formipay-input[type=checkbox] {
|
|
accent-color: var(--formipay-button-submit-border-color);
|
|
}
|
|
.formipay-payment-option-group input {
|
|
position: absolute;
|
|
top: 5px;
|
|
left: 5px;
|
|
}
|
|
.formipay-payment-logo.payment-logo-only {
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
}
|
|
.formipay-radio-option-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: .5rem;
|
|
}
|
|
.formipay-field-group > p {
|
|
margin: 0;
|
|
}
|
|
.checkbox-image {
|
|
width: 100%;
|
|
min-height: 125px;
|
|
max-width: 100%;
|
|
display: block;
|
|
background-size: contain;
|
|
background-position: left;
|
|
background-repeat: no-repeat;
|
|
}
|
|
tr.formipay-grand-total-row {
|
|
font-weight: bold;
|
|
}
|
|
.formipay-top-pagination {
|
|
display: grid;
|
|
grid-template-columns: repeat(var(--formipay-page-break-count), 1fr);
|
|
}
|
|
.formipay-progress {
|
|
width: 100%;
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
.formipay-index-wrapper {
|
|
display: flex;
|
|
gap: .5em;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
}
|
|
.formipay-page-index {
|
|
font-size: smaller;
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 2px solid #a7a7a7;
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: var(--formipay-step-shape-radius);
|
|
color: #a7a7a7;
|
|
background-color: white;
|
|
font-weight: bold;
|
|
flex-shrink: 0;
|
|
z-index: 1;
|
|
}
|
|
.formipay-page-label {
|
|
color: #a7a7a7;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
line-height: 1.25em;
|
|
}
|
|
.formipay-progress.active .formipay-page-index,
|
|
.formipay-progress:has(~ .active) .formipay-page-index {
|
|
border-color: var(--formipay-button-submit-bg-color);
|
|
color: var(--formipay-button-submit-bg-color);
|
|
}
|
|
.formipay-progress.active .formipay-page-label,
|
|
.formipay-progress:has(~ .active) .formipay-page-label {
|
|
color: var(--formipay-button-submit-bg-color);
|
|
}
|
|
.formipay-progress:not(:first-child)::before {
|
|
content:'';
|
|
display: block;
|
|
height: 2px;
|
|
width: 100%;
|
|
background-color: #a7a7a7;
|
|
position: absolute;
|
|
top: 20px;
|
|
transform: translateX(-50%);
|
|
}
|
|
.formipay-progress.active:not(:first-child)::before,
|
|
.formipay-progress:has(~ .active)::before {
|
|
background-color: var(--formipay-button-submit-bg-color);
|
|
}
|
|
#order-details tr:last-child{
|
|
color: var(--formipay-button-submit-bg-color);
|
|
background-color: var(--formipay-button-submit-text-color);
|
|
font-weight: bold;
|
|
font-size: larger;
|
|
}
|
|
span.pagination-icon svg {
|
|
margin-bottom: -3px;
|
|
width: 24px!important;
|
|
height: auto;
|
|
}
|
|
.formipay-bottom-pagination {
|
|
display: flex;
|
|
justify-content:center;
|
|
align-items: center;
|
|
gap: .5em;
|
|
}
|
|
.formipay-progress svg path {
|
|
fill: #a7a7a7!important;
|
|
}
|
|
.formipay-progress:has(~ .active) svg path, .formipay-progress.active svg path {
|
|
fill: var(--formipay-button-submit-bg-color)!important;
|
|
}
|
|
.formipay-static-elements .result-wrapper {
|
|
position: -webkit-sticky; /* for browser compatibility */
|
|
position: sticky;
|
|
top: 3em;
|
|
}
|
|
.formipay-bottom-pagination > button:not(.formipay-submit-button) {
|
|
flex-shrink: 0;
|
|
}
|
|
.formipay-page-break-prev-button,
|
|
.formipay-page-break-next-button {
|
|
border-radius: .5em!important;
|
|
padding: var(--formipay-step-button-size)!important;
|
|
height: var(--formipay-step-button-height)!important;
|
|
border: 2px solid var(--formipay-button-submit-border-color);
|
|
background-color: var(--formipay-button-submit-text-color);
|
|
color: var(--formipay-button-submit-bg-color);
|
|
font-size: var(--formipay-step-button-text-size);
|
|
}
|
|
.formipay-page-break-prev-button:disabled, .formipay-page-break-next-button:disabled {
|
|
border-color: #a7a7a7;
|
|
color: #a7a7a7;
|
|
background-color: #efefef;
|
|
}
|
|
.formipay-page-break-prev-button:disabled svg path,
|
|
.formipay-page-break-next-button:disabled svg path {
|
|
stroke: #a7a7a7;
|
|
}
|
|
.formipay-page-break-prev-button:hover:not(:disabled),
|
|
.formipay-page-break-prev-button:focus:not(:disabled),
|
|
.formipay-page-break-next-button:hover:not(:disabled),
|
|
.formipay-page-break-next-button:focus:not(:disabled) {
|
|
background-color: var(--formipay-button-submit-bg-color);
|
|
color: var(--formipay-button-submit-text-color);
|
|
}
|
|
.formipay-bottom-pagination > button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: .5em;
|
|
height: 40px;
|
|
}
|
|
.formipay-page-break-prev-button svg path,
|
|
.formipay-page-break-next-button svg path {
|
|
stroke: var(--formipay-button-submit-border-color);
|
|
}
|
|
.formipay-page-break-prev-button:hover:not(:disabled) svg path,
|
|
.formipay-page-break-prev-button:focus:not(:disabled) svg path,
|
|
.formipay-page-break-next-button:hover:not(:disabled) svg path,
|
|
.formipay-page-break-next-button:focus:not(:disabled) svg path {
|
|
stroke: var(--formipay-button-submit-text-color);
|
|
}
|
|
|
|
/** Coupon Field */
|
|
.formipay-coupon-field-group {
|
|
padding: .25rem;
|
|
border: 1px solid #b7b7b7!important;
|
|
border-radius: .5em!important;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
input:active, input:hover, input:focus {
|
|
outline: unset!important;
|
|
}
|
|
.formipay-coupon-field-group .formipay-code-input,
|
|
.formipay-coupon-field-group .formipay-code-input:hover,
|
|
.formipay-coupon-field-group .formipay-code-input:active,
|
|
.formipay-coupon-field-group .formipay-code-input:focus {
|
|
border: unset!important;
|
|
outline: unset!important;
|
|
flex: 0 1 100%;
|
|
}
|
|
.formipay-coupon-field-group #apply_coupon_code {
|
|
width: fit-content;
|
|
border: unset!important;
|
|
border-radius: .5em!important;
|
|
padding: .25rem 1rem;
|
|
background-color: #333;
|
|
color: white;
|
|
}
|
|
.formipay-coupon-field-group #apply_coupon_code.loading {
|
|
background-color: #666;
|
|
color: #cecece;
|
|
}
|
|
.formipay-radio-option-group > .formipay-label {
|
|
display: flex;
|
|
max-width: 100%;
|
|
gap: .5rem;
|
|
align-items: start;
|
|
}
|
|
.formipay-radio-option-group > .formipay-label input {
|
|
margin-top: .25rem;
|
|
}
|
|
.formipay-radio-option-group > .formipay-label > span {
|
|
flex: 0 1 200px;
|
|
}
|
|
@media (max-width: 820px) {
|
|
.formipay-static-elements .result-wrapper {
|
|
position: relative;
|
|
top: 0;
|
|
}
|
|
.formipay-checkbox-field-group {
|
|
grid-template-columns: repeat(2, 1fr)!important;
|
|
}
|
|
.formipay-payments {
|
|
grid-template-columns: repeat(var(--formipay-payment-tablet-columns), 1fr);
|
|
}
|
|
}
|
|
@media (max-width: 482px) {
|
|
span.formipay-value-badge {
|
|
font-size: x-small;
|
|
}
|
|
.formipay-payments {
|
|
grid-template-columns: repeat(var(--formipay-payment-mobile-columns), 1fr);
|
|
}
|
|
.formipay-2-cols {
|
|
display: grid;
|
|
grid-template-columns: 100%;
|
|
gap: 1em;
|
|
}
|
|
.formipay-checkbox-field-group {
|
|
grid-template-columns: repeat(1, 1fr)!important;
|
|
}
|
|
.formipay-page-label {
|
|
display:none;
|
|
}
|
|
.formipay-page-break-information {
|
|
text-align: center;
|
|
}
|
|
button.formipay-submit-button {
|
|
width: 100%!important;
|
|
}
|
|
} |