/* =================================================================
   COMPONENTS.CSS - Form Components & UI Elements
   Delta Foremost Chemical Corp. Quote Form
   ================================================================= */

/* =================================================================
   BUTTONS
   ================================================================= */

.btmBtn {
    float: left;
    width: 30%;
    height: 50px;
    margin: 4px;
    padding: 13px;
    background-color: #027b47;
    border: 1px solid #000;
    font-size: 17px;
    font-weight: normal;
    color: white;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.btmBtn:hover {
    color: white;
    text-decoration: none;
}

#submitButton {
    width: 90%;
}

/* Quantity Breaks Button */
.discount-button {
    background-color: #027b47;
    color: white;
    border: none;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

.discount-button:hover {
    background-color: #025d36;
    transform: translateY(-50%) translateY(-1px);
}

.discount-button:active {
    transform: translateY(-50%);
}

/* Product Name cell with discount button */
td:has(.discount-button) {
    position: relative;
}

/* Product Name input with discount button */
input.productNameSelect {
    width: 100% !important;
    padding-right: 160px !important;
}

/* Mobile responsive for discount button */
@media (max-width: 767px) {
    .discount-button {
        font-size: 10px;
        padding: 4px 10px;
        right: 4px;
    }

    input.productNameSelect {
        padding-right: 140px !important;
    }
}

/* =================================================================
   FILE UPLOAD
   ================================================================= */

.custom-file-input {
    color: transparent;
    width: 100%;
}

.custom-file-input::-webkit-file-upload-button {
    visibility: hidden;
}

.custom-file-input::before {
    content: 'Select A File to Attach';
    color: white;
    text-align: center;
    width: 100%;
    display: inline-block;
    background: -webkit-linear-gradient(top, #027b47, #027b46);
    border: 1px solid #999;
    border-radius: 3px;
    padding: 10px;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
}

.custom-file-input:hover::before {
    border-color: black;
}

.custom-file-input:active {
    outline: 0;
}

.custom-file-input:active::before {
    background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);
}

/* =================================================================
   CREDIT CARD SELECT (jQuery UI Custom)
   ================================================================= */

/* Select with custom icons */
.ui-selectmenu-menu .ui-menu.customicons .ui-menu-item-wrapper {
    padding: 0.5em 0 0.5em 3em;
}

.ui-selectmenu-menu .ui-menu.customicons .ui-menu-item .ui-icon {
    height: 19px;
    width: 30px;
    top: 0.1em;
}

.ui-icon.mastercard {
    background: url("../images/mastercard.png") 0 0 no-repeat;
}

.ui-icon.visa {
    background: url("../images/visa.png") 0 0 no-repeat;
}

.ui-icon.americanexpress {
    background: url("../images/americanexpress.png") 0 0 no-repeat;
}

/* Select with CSS avatar icons */
option.avatar {
    background-repeat: no-repeat !important;
    padding-left: 20px;
}

.avatar .ui-icon {
    background-position: left top;
}

.ui-selectmenu-button.ui-button {
    width: 100%;
}
