/*
 * EI WooCommerce Tips – minimal frontend styles.
 * Intentionally lets the active WooCommerce/theme checkout design do most of the work.
 */

.ei-wc-tips-box {
    border-radius: 8px;
}

.ei-wc-tips-heading {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
}

.ei-wc-tips-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 5px;
    width: 100%;
    margin: 0 0 4px;
    padding: 0;
}

.ei-wc-tip-button {
    width: 100%;
    min-height: 38px;
    margin: 0 !important;
    padding: 8px 12px !important;
    box-sizing: border-box;
    border: 1px solid #9f7f1b !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center;
    text-transform: uppercase;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ei-wc-tip-button:hover,
.ei-wc-tip-button:focus,
.ei-wc-tip-button.is-selected {
    border-color: #9f7f1b !important;
    background: #9f7f1b !important;
    color: #fff !important;
    outline: none !important;
}

.ei-wc-tips-custom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    align-items: end;
    gap: 5px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.ei-wc-tips-custom label {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit;
}

.ei-wc-tips-custom label > span {
    display: block;
    margin: 0 0 4px;
    padding: 0;
    color: inherit;
    font: inherit;
	padding: 10px 0;
}

.ei-wc-tips-custom input,
.ei-wc-tips-custom input[type="number"],
.woocommerce .ei-wc-tips-custom input[type="number"] {
    width: 100% !important;
    min-width: 0;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit;
}

.ei-wc-tips-custom .button,
.ei-wc-tip-custom-apply,
.woocommerce .ei-wc-tips-custom .button,
.woocommerce-page .ei-wc-tips-custom .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    box-sizing: border-box;
    border: 1px solid #9f7f1b !important;
    border-radius: 0 !important;
    background: #9f7f1b !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

.ei-wc-tips-custom .button:hover,
.ei-wc-tip-custom-apply:hover,
.woocommerce .ei-wc-tips-custom .button:hover,
.woocommerce-page .ei-wc-tips-custom .button:hover {
    opacity: .9;
}

.ei-wc-tips-message {
    margin: 6px 0 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.35;
}

.ei-wc-tips-message:empty {
    display: none;
}

.ei-wc-tips-box.is-loading {
    opacity: .7;
    pointer-events: none;
}

.ei-wc-tips-block-wrap {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

@media (max-width: 767px) {
    .ei-wc-tips-box {
        margin-top: 20px;
    }

    .ei-wc-tips-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ei-wc-tips-custom {
        grid-template-columns: minmax(0, 1fr) 90px;
    }
}
