/**
* 2007-2023 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2023 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

.page-home #appletform {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    max-width: 1170px;
    margin: 0 auto 32px;
    padding: 24px;
    border: 1px solid #dce6ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(29, 54, 66, 0.08);
    font-family: 'Roboto', sans-serif;
    font-style: normal;
}

.page-home #formtitle {
    margin: -24px -24px 6px;
    padding: 20px 24px;
    border-bottom: 1px solid #dce6ea;
    border-radius: 10px 10px 0 0;
    background: #eef7fa;
    color: #24343b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
}

.page-home #appletform .piececalc-field {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.page-home #appletform .appletlabel {
    width: auto;
    margin: 0;
    color: #24343b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.page-home .piececalc-length-control {
    display: grid;
    grid-template-columns: 44px minmax(100px, 240px) 44px auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.page-home #appletform .appletbutton {
    width: 44px;
    height: 46px;
    padding: 0;
    border: 1px solid #91c0d0;
    border-radius: 6px;
    background: #eef7fa;
    color: #4b879e;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.page-home #appletform .appletbutton:hover,
.page-home #appletform .appletbutton:focus {
    background: #91c0d0;
    color: #fff;
    outline: 0;
}

.page-home #appletform #slope-length,
.page-home #appletform #step-type {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #ccd9de;
    border-radius: 6px;
    background: #fff;
    color: #34454d;
    font-size: 15px;
}

.page-home #appletform #slope-length:focus,
.page-home #appletform #step-type:focus {
    border-color: #91c0d0;
    box-shadow: 0 0 0 3px rgba(145, 192, 208, 0.2);
    outline: 0;
}

.page-home #appletform .piececalc-unit {
    color: #63757d;
    font-size: 15px;
}

.page-home #appletform .piececalc-result {
    padding: 18px 20px;
    border: 1px solid #cfe2e9;
    border-radius: 8px;
    background: #eef7fa;
    text-align: left;
}

.page-home #appletform #labelresult,
.page-home #appletform #result {
    color: #24343b;
    font-size: 17px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .page-home #appletform {
        margin-right: 10px;
        margin-left: 10px;
        padding: 20px;
    }

    .page-home #formtitle {
        margin: -20px -20px 4px;
        padding: 18px 20px;
    }

    .page-home #appletform .piececalc-field {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .page-home .piececalc-length-control {
        grid-template-columns: 44px minmax(0, 1fr) 44px auto;
    }
}

/* Hide HTML5 number input’s spin box */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}
/* Hide HTML5 number input’s spin box */
