/* ability selection */

#tab_person_ability div.w3-third div.w3-half {
    width: 100%;
}

#tab_person_ability ul {
    list-style-type: none;
    padding: 0px;
    margin: 0;
}

@media screen and (max-width: 600px) {
    #tab_person_ability div.w3-third div.w3-half {
        width: 50%;
    }
    #tab_person_ability div.w3-third.active ul {
        color: var(--primary-colour);
    }
    #tab_person_ability div.w3-third.active {
        border: none;
    }
    #tab_person_ability div.w3-third.active img {
        filter: grayscale(0);
        border: 3px solid var(--primary-colour);
    }
    #tab_person_ability h4 {
        width: 50%;
    }
}


/* container header for when boxes are minimised */

.container-minimise-grey {
    /*overflow-y: hidden;
    height: 50px;*/
    background-color: var(--extra-light-grey);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease-in-out;
}

.container-header {
    position: relative;
    margin: 0!important;
}

.container-header span {
    font-size: 1.3em;
}

.container-header i {
    position: absolute;
    top: 0px!important;
    right: 0px!important;
    left: unset!important;
    font-size: 1.2em;
    display: none;
}

.collapsible {
    overflow: hidden;
    transition: height 0.3s ease-out;
    height: auto;
}

.p0 {
    padding: 0!important;
}

.p0 .container-header {
    padding: 10px;
}

.p0 .container-header i {
    top: 10px!important;
    right: 10px!important;
}

.p0 .collapsible,
.p0 .collapsible-holder {
    padding-left: 10px;
    padding-right: 10px;
}

#span_booking_reference,
#span_booking_price,
#span_payment_status {
    display: block;
}

#span_booking_reference {
    font-size: 2em;
    color: var(--primary-colour);
}

#hero_img_container span {
    opacity: 0;
}

#hero_img_container img.hero {
    position: fixed;
    left: 0;
    top: 0;
    width: 50%;
    border-top-right-radius: 20%;
    border-bottom-right-radius: 20%;
    height: 100%;
    object-fit: cover;
}

#hero_img_container img.icon {
    position: fixed;
    top: 20%;
    opacity: 0;
}

@media screen and (max-width: 600px) {
    #hero_img_container,
    .header .background {
        display: none;
    }
}

@media screen and (min-width: 600px) {
    .header {
        background: none!important;
    }
}


/* padding for single column */

@media screen and (min-width: 800px) {
    .content-wrapper>div>.w3-half:last-child {
        padding-left: 1%;
        padding-right: 1%;
    }
}

@media screen and (min-width: 850px) {
    .content-wrapper>div>.w3-half:last-child {
        padding-left: 2%;
        padding-right: 2%;
    }
}

@media screen and (min-width: 900px) {
    .content-wrapper>div>.w3-half:last-child {
        padding-left: 3%;
        padding-right: 3%;
    }
}

@media screen and (min-width: 950px) {
    .content-wrapper>div>.w3-half:last-child {
        padding-left: 4%;
        padding-right: 4%;
    }
}

@media screen and (min-width: 1000px) {
    .content-wrapper>div>.w3-half:last-child {
        padding-left: 5%;
        padding-right: 5%;
    }
}


/* booking confirmation screen */

#tab_complete {
    margin-top: 10%;
    color: #7b7b7b;
}

#tab_complete .greyBox {
    position: relative;
    background-color: white;
    border-radius: 25px;
    margin: 0;
    /*box-shadow: 0px 12px 50px -8px #0e92f880;
    -webkit-box-shadow: 0px 12px 50px -8px #0e92f880;*/
}

#tab_complete span.fa-stack {
    position: relative;
    top: -54px;
    height: 40px;
}

#tab_complete .icon-background {
    color: #57baf8;
}

#tab_complete .icon-foreground {
    color: white;
}

#tab_complete .title {
    color: var(--primary-colour);
}

#span_booking_reference {
    color: #333333;
}

#span_booking_price {
    color: #545454;
    font-size: 2em;
}

#tab_complete .dashed-line {
    position: absolute;
    bottom: 0px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent 50%, #d3d3d3 50%), linear-gradient(to right, #ffffff, #ffffff);
    background-size: 24px 2px, 100% 2px;
}

#tab_complete .primary-colour {
    color: var(--primary-colour);
}

#div_gear_extra_holder {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#div_gear_extra_holder button {
    text-transform: capitalize;
    flex: 1 0 46%;
    margin: 5px;
    border: none;
    background-color: var(--extra-light-grey);
    display: flex;
    font-size: 1.2em;
    align-items: center;
    justify-content: space-between;
    padding: 3px 10px;
}

#div_gear_extra_holder button.selected {
    border: 2px solid var(--primary-colour)!important;
}

#div_gear_extra_holder button .title {
    text-align: left;
}

#div_gear_extra_holder button .price {
    text-align: right;
    color: var(--primary-colour);
}

@media screen and (max-width: 400px) {
    #div_gear_extra_holder {
        flex-direction: column;
    }
    #div_gear_extra_holder button {
        width: 100%;
    }
}


/* gear packages */

#div_packages_ski {
    border-radius: 15px;
}

#div_packages_ski>.title {
    display: block;
    width: 100%;
    font-size: 5vw;
    color: var(--primary-colour);
}

#div_packages_ski button.view-details {
    padding: 2px 5px;
    border: none;
    font-size: 4vw;
    width: fit-content;
}

#modal_package_details .equipment {
    text-transform: capitalize;
}

#div_packages_ski .flex {
    display: flex;
    justify-content: space-between;
    padding: 0px 10px;
}

#div_packages_ski .price {
    font-size: 5vw;
}

#div_packages_ski .image-holder {
    width: 100%;
    background-color: white;
}

#div_packages_ski img.main {
    max-width: 100%;
    max-height: 100%;
}

#div_packages_ski .accessories-holder {
    background-color: white;
}

#div_packages_ski .accessories-holder .w3-half {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#div_packages_ski .accessories-holder img {
    max-height: 100%;
    max-width: 48%;
}

#div_packages_ski .accessories-holder label {
    display: grid;
    max-width: 48%;
}

#div_packages_ski .accessories-holder span.checkmark {
    position: relative;
    justify-self: center;
}

#div_packages_ski .accessories-holder .title {
    color: var(--dark-grey);
    font-size: 5vw;
}

#div_packages_ski .accessories-holder .subtitle {
    color: var(--mid-grey);
    font-size: 3vw
}

#div_packages_ski .accessories-holder .checkbox-container {
    padding-left: 0;
}

#div_packages_ski button.action-button {
    border-radius: 15px;
    background-color: var(--primary-colour);
    padding: 5px;
    width: 100%;
    width: -webkit-fill-available;
    margin: 10px;
    border: none;
}

#div_packages_ski button.add-package {
    background-color: var(--primary-colour);
    color: white;
}

#div_packages_ski button.remove-package {
    background-color: var(--bright-danger);
    color: white;
}

#div_packages_ski button.upgrade-package {
    background: linear-gradient(135deg, var(--upsell-purple), var(--primary-colour));
    color: white;
}

#div_packages_ski button.downgrade-package {
    background-color: var(--chains-yellow);
    color: white;
}

@media screen and (min-width: 600px) {
    #div_packages_ski>.title {
        font-size: 2.5vw;
        font-size: clamp(14px, 2.5vw, 30px);
    }
    #div_packages_ski button.view-details {
        font-size: 1.5vw;
        font-size: clamp(12px, 1.5vw, 16px);
    }
    #div_packages_ski .price {
        font-size: 2.5vw;
        font-size: clamp(14px, 2.5vw, 25px);
    }
    #div_packages_ski .accessories-holder .title {
        font-size: 2.5vw;
        font-size: clamp(12px, 2.5vw, 20px);
    }
    #div_packages_ski .accessories-holder .subtitle {
        font-size: 3vw;
        font-size: clamp(12px, 3vw, 16px);
    }
}


/* upsell banner for packages */

.upsell-package,
.upsell-family-package {
    background: linear-gradient(45deg, #00d5f9, #d450f5);
    border-radius: 15px;
    padding: 5px;
    display: grid;
    grid-template-areas: 'title price' 'description button';
    color: white;
    margin-bottom: 10px;
    grid-template-columns: 70% 30%;
}

.upsell-family-package {
    background: linear-gradient(45deg, #e02b20, #d450f5);
}

.upsell-package .title,
.upsell-family-package .title {
    font-size: 5vw;
    color: white;
    font-weight: bold;
    grid-area: title;
}

.upsell-package .description,
.upsell-family-package .description {
    color: #f2f2f2;
    grid-area: description;
    align-self: center;
}

.upsell-family-package .disclaimer {
    font-size: 0.8em;
    color: white;
    padding: 5px;
}

.upsell-package .price,
.upsell-family-package .price {
    width: 50%;
    grid-area: price;
    align-self: center;
    font-size: 5vw;
    justify-self: center;
}

.upsell-package button,
.upsell-family-package button {
    width: 100%;
    grid-area: button;
    background-color: var(--off-white);
    border: none;
    color: var(--primary-colour);
    justify-self: right;
    border-radius: 15px;
}

@media screen and (min-width: 600px) {
    .upsell-package .title,
    .upsell-package .price,
    .upsell-family-package .title,
    .upsell-family-package .price {
        font-size: 2vw;
    }
}


/* Stripe payment form */

#tab_payment button#submit {
    width: 100%;
    padding: 8px;
    border: none;
    background-color: var(--primary-colour);
    border-radius: 8px;
    color: white;
}


/* select dropdown for person selection */

#select_person {
    width: auto;
    display: inline-block;
    background: none;
    color: var(--primary-colour);
    font-weight: bold;
    min-width: auto;
    font-size: 1.5em;
}


/* hide icons in gear choice buttons */

#div_gear_choice i {
    display: none;
}


/* container for snow chains */

#div_extras_chains img {
    max-width: 100%;
    border-radius: 10px;
}

#div_extras_chains .warning {
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
    align-items: center;
}

#div_extras_chains .warning .text {
    font-size: 0.9em;
}

#div_extras_chains .module {
    display: flex;
    align-content: center;
    background-color: var(--extra-light-grey);
    border-radius: 15px;
    padding: 5px;
    align-items: center;
    justify-content: space-around;
}

#div_extras_chains .module .title {
    font-size: 1.4em;
    font-size: 4svw;
}

#div_extras_chains .module .price {
    display: block;
    font-size: 1.2em;
}

#div_extras_chains .module button {
    border: none;
    background-color: var(--primary-colour);
    color: white;
    border-radius: 15px;
    padding: 5px 30px;
}

.chain-capture-size,
.chain-explain-size {
    display: none;
}

.chain-explain-size {
    flex-wrap: wrap;
}

@media screen and (min-width: 600px) {
    #div_extras_chains .module .title {
        font-size: 1.4em;
        font-size: 1.8svw;
    }
}


/* slide-out for price summary */

.slide-out {
    position: fixed;
    right: 0px;
    top: 8px;
    background-color: var(--primary-colour);
    border-radius: 15px 0 0 15px;
    padding: 3px 10px;
    z-index: 2000;
    min-width: 80px;
}

.slide-out .price {
    text-align: center;
    color: white;
}

.slide-out .text,
.slide-out .name {
    display: block;
    text-align: left;
}

.slide-out .amount {
    font-weight: bold;
    font-size: 1.5em;
}

.slide-out .name {
    font-size: 1.2em;
    font-weight: bold;
}


/* logo banner */

#tab_logo_banner {
    max-height: 100px;
    background-color: black;
    border-radius: 10px;
    margin-bottom: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

#tab_logo_banner img {
    max-height: 60px;
}


/* modal popup for signature canvas */

#modal_signature button.clear-signature {
    padding: 8px;
    border: none;
    border-radius: 8px;
    background-color: var(--light-grey);
    color: var(--semi-dark-grey);
}

#modal_signature button.cancel {
    padding: 10px 18px;
    background-color: #d6d6d6;
    color: #f44336;
    border: 1px solid #f44336;
    border-radius: 8px;
}

#modal_signature button.sign {
    padding: 10px 18px;
    background-color: var(--primary-colour);
    color: white;
    border: none;
    border-radius: 8px;
}

#modal_signature .button-container,
#modal_waiver .button-container,
#modal_package_details .button-container {
    display: flex;
    justify-content: space-evenly;
    background-color: var(--extra-light-grey);
    padding: 10px;
    border-radius: 0 0 10px 10px;
}


/* waiver */

#modal_waiver .text {
    max-height: 50vh;
    max-height: 50svh;
    overflow-y: scroll;
}

#modal_waiver .text::-webkit-scrollbar {
    width: 4px;
}

#modal_waiver .text::-webkit-scrollbar-track {
    background: var(--light-grey);
}

#modal_waiver .text::-webkit-scrollbar-thumb {
    background: var(--mid-grey);
}

#div_waiver .checkbox-container {
    display: flex;
}

#div_waiver .checkbox-container .checkmark {
    border: 2px solid var(--mid-grey);
}

#div_waiver .checkbox-container .title {
    font-size: 0.8em;
    font-size: 4.5vw;
}

@media screen and (min-width: 600px) {
    #div_waiver .checkbox-container .title {
        font-size: 1em;
        font-size: 2vw;
    }
}

#div_waiver a {
    color: var(--primary-colour);
    text-decoration: underline;
}

#modal_waiver button.close {
    padding: 10px 18px;
    background-color: var(--mid-grey);
    color: white;
    border: none;
    border-radius: 8px;
}

#modal_waiver button.sign {
    padding: 10px 18px;
    background-color: var(--primary-colour);
    color: white;
    border: none;
    border-radius: 8px;
}

#div_waiver img {
    width: 100%;
    border: 1px solid grey;
    margin-bottom: 10px;
}

#modal_signature_checkbox {
    width: 1.2em;
    height: 1.2em;
    border: 1px solid var(--mid-grey);
    float: left;
}

#modal_package_details button.close {
    padding: 10px 18px;
    background-color: var(--mid-grey);
    color: white;
    border: none;
    border-radius: 8px;
}

#modal_package_details .title {
    color: var(--primary-colour);
    font-size: 1.5em;
}

#modal_package_details label {
    font-weight: bold;
}


/* container for chains only */

#tab_chains_only,
#tab_chains_confirm {
    display: none;
}

#div_chains_only_holder {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#div_chains_only_holder button {
    text-transform: capitalize;
    flex: 0 0 90%;
    margin: 5px;
    border: none;
    background-color: var(--extra-light-grey);
    display: flex;
    font-size: 1.2em;
    align-items: center;
    justify-content: space-between;
    padding: 3px 10px;
}

#div_chains_only_holder button.active {
    border: 2px solid var(--primary-colour);
}

#td_price_summary_chains_list {
    color: var(--mid-grey);
    font-size: 1em!important;
    text-transform: capitalize;
}

#tab_chains_confirm img.banner {
    width: 100%;
    max-height: 200px;
}

#tab_chains_confirm img.equipment {
    max-width: 100%;
    max-height: 200px;
}

#tab_chains_confirm .flex {
    display: flex;
    height: 200px;
    align-content: center;
    flex-wrap: wrap;
}

#tab_chains_confirm button.add {
    background-color: var(--primary-colour);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    display: block;
    width: 100%;
    margin-bottom: 10px;
    flex: 1 0 100%;
    height: fit-content;
}

#tab_chains_confirm .w3-half {
    width: 50%;
}

.outline-primary {
    border: 2px solid var(--primary-colour)!important;
}

.btn-primary-text {
    color: var(--primary-colour)!important;
    background-color: var(--extra-light-grey)!important;
}

.daily-rates {
    display: block;
    color: var(--mid-grey);
    text-align: right;
    padding-right: 10px;
}

#div_number_of_people .invalid {
    display: none;
    color: red;
}


/* summary - discount code */

#div_discount_code>div {
    display: flex;
    justify-content: space-between;
}

#div_discount_code input {
    width: auto;
    min-width: auto;
    max-width: 50%;
    margin-right: 10px;
}

#div_discount_code button {
    width: auto;
    padding: 4px 16px;
    border-radius: 10px;
    border: none;
}

#div_discount_code .invalid {
    display: none;
    color: red;
}

#div_discount_code .valid {
    display: none;
    color: green;
}

#td_price_summary_discounts_list {
    color: var(--mid-grey);
    font-size: 1em!important;
    text-transform: capitalize;
}

label.subtle {
    color: var(--semi-dark-grey);
    font-style: italic;
    font-size: 0.8em;
}


/* ski package cards */

.package-card {
    background: white;
    border-radius: 10px;
    padding: 10px;
    filter: drop-shadow(2px 2px 2px grey);
    display: flex;
}

.package-card-option {
    border-radius: 10px;
    margin: 4px;
    /*filter: drop-shadow(2px 2px 2px grey);*/
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.75);
    background: #ededed;
    z-index: 2;
    background: none;
}

.package-card-option.selected {
    /*border: 2px solid var(--primary-colour);*/
    box-shadow: 0px 0px 10px 0px var(--primary-colour);
}

.package-card-option img {
    max-width: 75px;
    max-height: 50px;
    padding: 5px 10px;
}

.package-card-option.boots,
.package-card-option.helmet {
    display: flex;
    align-items: center;
}

.package-card-left {
    display: flex;
    flex-wrap: wrap;
}

.package-card .boots-info,
.package-card .helmet-info {
    padding-right: 10px;
}

.package-card-right {
    display: flex;
    justify-content: center;
    flex: 1;
    align-items: stretch;
    flex-wrap: wrap;
    padding-left: 5px;
    z-index: 2;
}

.package-card-right .title {
    display: block;
    font-weight: 800;
    color: #4f4e4e;
    font-size: 1.5vw;
    width: 100%;
}

.package-card button.view-details {
    font-size: 0.7em;
    display: block;
    width: 100%;
}

.package-card-right .price {
    font-size: 2.2em;
    font-weight: 800;
    color: #4f4e4e;
    width: 100%;
}

.package-card button.add-package {
    width: auto;
    font-size: 1em;
    padding: 4px 10px;
}

/* Grouped asset size dropdown styling */
.size-dropdown-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 0;
}

.size-dropdown-container label {
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 0;
}

.size-dropdown-container .size-selector {
    flex: 1;
    max-width: 250px;
    font-size: 1em;
    padding: 6px 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.size-dropdown-container .size-selector:hover {
    border-color: var(--primary-colour);
}

.size-dropdown-container .size-selector:focus {
    outline: none;
    border-color: var(--primary-colour);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.grouped-asset .add-grouped-asset:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.grouped-asset .add-grouped-asset:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media screen and (min-width: 601px) and (max-width: 900px) {
    .size-dropdown-container .size-selector {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 600px) {
    .package-card-right .title {
        font-size: 3vw;
    }
    
    .size-dropdown-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .size-dropdown-container label {
        margin-bottom: 5px;
    }
    
    .size-dropdown-container .size-selector {
        max-width: 100%;
        width: 100%;
    }
}

/* jQuery datepicker */

.ui-datepicker {
    z-index: 2!important;
}

.ui-state-default {
    border-radius: 5px;
    border: none;
    text-align: center;
    background: #dfdfdf;
}

.ui-state-active {
    background-color: var(--primary-colour);
    border: none;
}


/* image background for package */

#modal_package_details_container {
    position: relative;
    font-size: 1.3em;
}

#img_package_details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.15;
}

.package-background-image {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 10px;
    opacity: 0.15;
    z-index: 1;
    object-fit: cover;
}

.package-main-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 10px;
}


/* people group */

.colPerson {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.colPerson input,
.colPerson select {
    margin-bottom: 10px;
}

.colPerson button {
    position: absolute;
    right: -1px;
    top: 21px;
    font-size: 1.2em;
    background: none;
}

.colPerson div.name {
    flex: 1 0 100%;
}

div.colPerson div.dob {
    min-width: 50%!important;
}

div.colPerson div.height,
div.colPerson div.weight,
div.colPerson div.sole_length,
div.colPerson div.shoe-size,
div.colPerson div.age,
div.colPerson div.skill-level,
div.colPerson div.clothing-size,
div.colPerson div.jacket-size,
div.colPerson div.pants-size {
    display: inline-block;
    position: relative;
    padding-right: 10px;
    min-width: 125px;
}

div.colPerson div.height i,
div.colPerson div.weight i,
div.colPerson div.sole_length i,
div.colPerson div.shoe-size i,
div.colPerson div.age i,
div.colPerson div.skill-level i,
div.colPerson div.clothing-size i,
div.colPerson div.jacket-size i,
div.colPerson div.pants-size i {
    position: absolute;
    top: 9px;
    left: 8px;
    color: var(--primary-colour);
    font-size: 1.3em;
}

div.colPerson div.height input,
div.colPerson div.weight input,
div.colPerson div.sole_length input,
div.colPerson div.shoe-size input,
div.colPerson div.age input,
div.colPerson div.skill-level select,
div.colPerson div.clothing-size select,
div.colPerson div.jacket-size select,
div.colPerson div.pants-size select {
    padding-left: 35px;
    width: 100%;
}

div.colPerson div.age input {
    padding-right: 60px;
}

div.colPerson div.height input,
div.colPerson div.weight input,
div.colPerson div.sole_length input,
div.colPerson div.shoe-size input {
    padding-right: 35px;
}

div.colPerson div.skill-level select,
div.colPerson div.clothing-size select,
div.colPerson div.jacket-size select,
div.colPerson div.pants-size select {
    padding-right: 5px;
}

div.colPerson div.height>span,
div.colPerson div.weight>span,
div.colPerson div.sole_length>span,
div.colPerson div.shoe-size>span,
div.colPerson div.age>span,
div.colPerson div.skill-level>span,
div.colPerson div.clothing-size>span,
div.colPerson div.jacket-size>span,
div.colPerson div.pants-size>span {
    position: absolute;
    top: 7px;
    right: 20px;
}

div.colPerson span.required {
    color: red;
}

div.colPerson input.invalid-input,
div.colPerson select.invalid-input {
    border: 1px solid red;
}

.colPerson div.flex-half {
    flex: 1 0 50%;
}

.colPerson div.flex-third {
    flex: 1 0 33%;
}


/* container for rental insurance */

#div_insurance_customer_container .customer-rate {
    color: var(--primary-colour);
    font-size: 1.5em;
}

.btn-label-white {
    background-color: white;
    color: black;
    border: none;
}

.insurance-customer-button {
    margin-right: 10px;
}

.add-insurance-button {
    margin-bottom: 10px;
}

.skip-insurance-button {
    margin-bottom: 10px;
}

#div_insurance_customer_container .waiver-text {
    font-size: 0.9em;
}

/* banner for asset grade price */
#div_package_grade_price {
    background: var(--primary-colour);
    color: white;
    display: flex;
    justify-content: space-around;
    border-radius: 10px;
    padding: 5px;
}

#div_package_grade_price .title {
    display: block;
    font-size: 2em;
    font-weight: bold;
}

#div_package_grade_price .price {
    align-content: center;
    font-size: 2em;
}

/* assets */

#div_packages_container .asset-booked img {
    opacity: 0.3;
}

/* Size button grid (Shopify-style) for grouped assets */
.size-button-container {
    padding: 5px 0;
}

.size-button-container label {
    font-weight: 600;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    width: 100%;
}

.size-button {
    padding: 10px 5px;
    font-size: 0.9em;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.size-button.size-available:hover:not(.size-selected) {
    border-color: var(--primary-colour);
    background-color: rgba(var(--primary-colour-rgb, 87, 186, 248), 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.size-button.size-selected {
    border-color: var(--primary-colour);
    background-color: var(--primary-colour);
    color: white;
    box-shadow: 0 0 0 2px var(--primary-colour);
}

.size-button.size-unavailable {
    opacity: 0.4;
    color: #999;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

.size-button.size-unavailable::after {
    content: '';
    position: absolute;
    left: -10%;
    top: 50%;
    width: 120%;
    height: 2px;
    background-color: #999;
    transform: translateY(-50%) rotate(-15deg);
}

/* Responsive sizing for mobile */
@media screen and (max-width: 600px) {
    .size-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 6px;
    }
    
    .size-button {
        padding: 8px 3px;
        font-size: 0.85em;
    }
}

@media screen and (min-width: 601px) and (max-width: 900px) {
    .size-grid {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
        gap: 7px;
    }
}