body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
   /* margin: 0;
    padding: 0;*/
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 24px;
    color: #333;
}

h3 {
    font-size: 20px;
    color: #333;
    padding-top: 10px;
}

.blind-customise-blinds-wrapper .blinds-selection button {
    box-shadow: 2px 2px 0 rgba(46, 53, 71, .2);
    transition: border-color .2s cubic-bezier(.26,.01,.73,.99);
    will-change: border-color;
    transition-delay: 0;
    background-color: #fff;
    border-radius: 2px;
    border: 1px solid transparent;
    display: block;
    margin-bottom: 0;
    position: relative;
}
.blind-customise-blinds-wrapper .selectable-item:focus {
    border-color: #E83E8C !important;
    color: black;
}

/* Blind wrapper layout */
.blind-wrapper {
    margin: 25px;
    display: flex;
    flex-wrap: wrap;
}

.blind-left-selection {
    width: 66.66%;
}

.blind-right-selection {
    position: sticky;
    top: 20px;
    width: 33.33%;
    align-self: flex-start;
}

/* Selectable items */
.selectable-item {
    background: #fff !important;
    border: 2px solid #ddd;
    border-radius: 10px;
    width: 30%;
    /*padding: 10px;*/
    padding-top: 15px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 15px;
    cursor: pointer;
    text-align: center;
    transition: border 0.3s, box-shadow 0.3s;
    position: relative;
}

/* Ensure cursor pointer on all content inside the button */
.selectable-item * {
    cursor: pointer;
}

.fitting-type .selectable-item { width: 60%; }
.bracket-type .selectable-item {width: 50%;}
.frame-option .blinds-selection,
.midrail-option .blinds-selection,
.panel-combination .blinds-selection {
    width: 110%;
    box-sizing: border-box;
}

.roll-direction .selectable-item {
    width: 25%;
}
.motor-type .selectable-item {
    width: 50% !important;
}

/* Pink border only shown when user selects something */
.selectable-item.active {
  border: 2px solid #ff6699 !important;
  box-shadow: 0 0 10px rgba(255, 102, 153, 0.3);
}

.blind-type-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 15px;
}

.blind-type-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blind-type-wrapper .blinds-selection {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.blind-type-wrapper .blinds-selection button {
    box-shadow: 2px 2px 0 rgba(46, 53, 71, .2);
    transition: border-color .2s cubic-bezier(.26,.01,.73,.99);
    will-change: border-color;
    transition-delay: 0;
    background-color: #fff;
    border-radius: 2px;
    border: 1px solid transparent;
    display: block;
    margin-bottom: 0;
    position: relative;
}



.selectable-item:hover {
  border-color: #ff6699;
  box-shadow: 0 0 8px rgba(255, 102, 153, 0.25);
  background: #fff; 
  color: #000; 
}

.blind-type-wrapper .selectable-item:focus {
    border-color: #e83e8c !important;
    color: black;
}

.blinds-selection {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    /*max-width: 100%;*/
}



/* Customiser card product */
.customiser-card-product {
    line-height: 1.42857;
    height: 100%;
    font-family: Libre Franklin, Helvetica Neue, Helvetica, Arial, sans-serif;
    position: relative;
    background: #fff;
    border-radius: 2px;
    color: #444c5f;
    font-weight: 400;
    text-align: center;
}

.customiser-card-product .customiser-card-image {
    margin-bottom: 15px;
    text-align: center;
}

.customiser-card-product .customiser-card-image img {
    max-width: 100%;
    max-height: 170px;
    vertical-align: middle;
    border-style: none;
}

.customiser-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.customiser-card-content .title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.customiser-card-content span {
    display: block;
    font-size: 13px;
    color: #999;
}

.type-price-label {
    margin-bottom: 15px;
    color: #e83b68;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-weight: 500;
    
}
.prod-roller-blinds .type-price-label .type-price {
    font-size: 16px;
    color: #d1005c;
}
/* Lists */
.list-ticks {
    list-style: none;
    display: contents;
}

.list-ticks li {
    margin-top: 2px;
    margin-bottom: 2px;
    list-style: none;
}

.list-ticks li:before {
    content: "";
    display: inline-block;
    width: .8em;
    height: .8em;
    margin-right: 4px;
    position: relative;
    background: url(https://media.diyblinds.com.au/assets/svg/icons/check.svg);
}

ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

ul li {
    font-size: 14px;
    margin-bottom: 5px;
}

/* Selected icon */
.selectable-item-selected-icon {
    display: none;
}

.selectable-item .selectable-item-selected-icon {
  display: none;
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  z-index: 5;
}
.selectable-item.active .selectable-item-selected-icon {
  display: block;
}
#blockout-fabric-ranges,
#blockout-colours-range {
    display: none;
}

#blockout-fabric-ranges.tab-active,
#blockout-colours-range.tab-active {
    display: block;
}
/* Hide blockout and sunscreen colours by default */
.fabric-colour-child-wrapper.blockout-colours,
.fabric-colour-child-wrapper.sunscreen-colours {
  display: none;
}

/* Add to cart section */
.sidebar-panel {
    position: sticky;
    top: 20px;
    z-index: 999;
    width: 100%;
    margin-left: auto;
    max-width: 410px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.cart-title {
    align-items: center;
    gap: 15px;
}

.cart-title-image {
    margin-bottom: 15px;
    text-align: center;
}

.cart-title img {
    max-width: 200px;
    width: 100%;
}

.cart-title h4 {
    font-size: 20px;
    margin: 0;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 10px 0;
    border-top: 1px solid #ddd;
}

.features-list li:first-child {
    border-top: none;
}

.details-toggle {
    cursor: pointer;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.details-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s;
}

.hidden-details {
    display: none;
}

.hidden-details li {
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

.cart-totals {
    text-align: left;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: red;
}

.add-to-cart {
    width: 100%;
    padding: 20px;
    background-color: pink;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 3.2em !important;
}

.add-to-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.inline-list {
    display: flex;
    justify-content: space-between;
    padding-left: 0px;
    flex-wrap: wrap;
}

.inline-list li {
    border: none;
    list-style: none;
    margin-bottom: 5px;
}

.control-side {
    padding: 10px 0px;
}

.control-side span {
    display: block;
    padding: 5px 0px;
}

/* Measurements css */

 .measurement-box {
        box-shadow: 2px 2px 0 rgba(46, 53, 71, .2);
        border-radius: 2px;
        padding: 15px;
        margin-bottom: 5px;
        min-height: 150px;
    }

    .measurement-remove-icon { cursor: pointer; margin-left: 10px;}
    .measurement-rename-icon { cursor: pointer; margin-left: 320px; }
    .measurement-rename-save { display: none; cursor: pointer; margin-left: 45px; }
    .measurement-blind-input {
        display: none;
        width: 50%;
        max-width: 330px;
        padding: 8px;
        border: 1px solid #aaa !important;
        outline: none;
    }

    .measurement-rename-icon span, .measurement-rename-save span{
        padding: 5px;
        border-radius: 50%;
        background-color: var(--e-global-color-accent);
    }

    .rename-section {
        display: flex;
        /*justify-content: space-between;*/
        align-items: center;
    }

    .input-group { display: flex; gap: 10px; margin-top: 10px; }
    .input-box { flex: 1; }
    .input-box label { font-size: 13px; font-weight: 600; color: #d33; }
    .input-box input {
        width: 90%;
        padding: 8px;
        border: 1px solid #d33;
        margin-top: 5px;
        outline: none;
    }

    .msrmt-add-button {
        display: flex;
        align-items: center;
        font-size: 18px;
        font-weight: 600;
        color: #000;
        cursor: pointer;
        box-shadow: 2px 2px 0 rgba(46, 53, 71, .2);
        border-radius: 2px;
        padding: 10px;
    }
    
    .measurement-control {
    color: #000 !important; /* Ensure default text is visible */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
    }

    .measurement-control:hover,
    .measurement-control.selectable-item:hover {
        background-color: #f5f5f5; /* Subtle hover */
        color: #000 !important; /* Prevent text disappearing */
    }

    .measurement-control span {
        color: #000 !important; /* Force text color visible */
    }


    .control-section {float: right; margin-top: -43px;}
    .msrmt-add-button::before { content: "+"; font-size: 22px; margin-right: 5px; }
    .measurement-control { width:100px; }
    .measurement-control span { display: block; }
/* Other CSS */
    
    .midrail-option,
    .midrail-alignment,
    .midrail-height,
    .panel-combination,
    .hinge-combination {
        display: none;
    }
    .hinge-combination .blinds-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust spacing between buttons */
}

    .hinge-combination .blinds-selection .selectable-item {
        flex: 0 0 calc(33.333% - 14px); /* 3 in a row with some gap compensation */
        box-sizing: border-box;
}


    .fabric_ranges_btn{ width:150px; }
    .fabric_ranges_btn img{ border-radius: 50%; width: 110px; }

    .current_div_active{border-color: #e83e8c !important; }
    .motor-type, .motor-selection, #remote-selection, #charger-selection { display:none; }

.round-number {
    background-color: #444c5f;
    border-radius: 50%;
    font-size: 18px;
    height: 28px;
    line-height: 24px;
    margin-right: 12px;
    padding-top: 2px;
    position: relative;
    text-align: center;
    top: -2px;
    vertical-align: middle;
    width: 28px;
}

.round-number, .rounded-text {
    color: #fff;
    display: inline-block;
}

.sunscreen-light-filtering-colours {
    position: relative;
    padding: 10px 24px;
    border-radius: 20px !important;
    font-size: 14px;
    font-weight: 700 !important;
    font-family: 'Libre Franklin', sans-serif !important;
    color: #444c5f !important;
    background: transparent;
    z-index: 2;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.blockout-light-filtering-colours {
    position: relative;
    padding: 10px 24px;
    border-radius: 20px !important;
    font-size: 14px;
    font-weight: 700 !important;
    font-family: 'Libre Franklin', sans-serif !important;
    color: #444c5f !important;
    background: transparent;
    z-index: 2;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.sunscreen-light-filtering-colours:hover{
    color: #fff!important;
}
.blockout-light-filtering-colours:hover{
    color: #fff!important;
}
.mask--circle {
    border-radius: 50% !important;
    border: 1px solid #cfd2d8 !important;
}

.parent-color {
    display: none; /* Hide all fabric/color options by default */
}

#blockout-fabric-ranges,
#blockout-colours-range {
    display: none;
}

#blockout-fabric-ranges.tab-active,
#blockout-colours-range.tab-active {
    display: block;
}

.fabric_ranges_btn {
    width: 150px;
    margin: 3px;
    background-color: #f4f4f4 !important;
    color: black !important;
}

.fabric_ranges_btn img {
    border-radius: 50%;
    width: 110px;
    border: 1px solid #cfd2d8;
}

.colour-name { font-size: 12px; line-height: 1.25; font-family: Libre Franklin, Helvetica Neue, Helvetica, Arial, sans-serif; font-weight: 700; }
.fabric-subtitle { color: #5f6c8b; font-family: Libre Franklin, Helvetica Neue, Helvetica, Arial, sans-serif; font-weight: 400; font-size: 11px !important; line-height: 1.5 !important; }

/*.current_div_active {
    border-color: #e83e8c !important;
}*/

/* Hide Pelmet related sections by default */
.pelmet-height,
.pelmet-finish,
#metal-pelmet-colour {
    display: none;
}

.motor-type {
    display: none;
}
.motor-selection {
    display: none !important;
}

.selectable-item,
.selectable-item:hover,
.selectable-item.active {
  background: #fff !important;
  color: #000 !important;
}


#curtain-splits-measurement, #remote-selection, #motor-selection, #motor-position, #charger-selection, #curtain-splits-selection, .child-color #cart-type-colours, .track-type .blinds-selection .designer, .track-type .blinds-selection .motorised { display:none; }

/* Media Queries for Responsive Design */

/* Override for mobile (100%) */
@media screen and (max-width: 767px) {
    .fitting-type .selectable-item,
    .frame-option .blinds-selection,
    .midrail-option .blinds-selection,
    .midrail-alignment .blinds-selection,
    .panel-combination .blinds-selection {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 1024px) {
    .blind-wrapper {
        margin: 15px;
    }

    .blind-left-selection {
        width: 60%;
    }

    .blind-right-selection {
        width: 40%;
    }
}

@media screen and (max-width: 768px) {
    .blind-wrapper {
        margin: 10px;
        flex-direction: column;
    }

    .blind-left-selection,
    .blind-right-selection {
        width: 100%;
    }

    .blind-right-selection {
        position: sticky;
        /*bottom: 0;*/
        order: 1;
        margin-top: 20px;
        z-index: 999;
    }

    .sidebar-panel {
        position: sticky;
        bottom: 0;
        max-width: 100%;
        margin-bottom: 0;
    }

    .selectable-item {
        width: 100%;
        margin-bottom: 10px;
    }

    .blinds-selection {
        flex-direction: column;
    }

    .measurement-rename-icon {
        margin-left: 10px;
    }

    .input-group {
        flex-direction: column;
    }

    .input-box {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .blind-wrapper {
        margin: 5px;
    }

    .container {
        width: 95%;
        padding: 10px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    .customiser-card-content .title {
        font-size: 18px;
    }

    .type-price-label {
        font-size: 14px;
    }

    .add-to-cart {
        padding: 15px;
        font-size: 14px;
    }

    .sunscreen-light-filtering-colours {
        padding: 8px 16px;
        font-size: 12px;
    }
    .blockout-light-filtering-colours {
        padding: 8px 16px;
        font-size: 12px;
    }
}

#mobileCartBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#mobileCartBtn a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d4a574;
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    white-space: nowrap;
    transition: all 0.3s ease;
}

#mobileCartBtn a:hover {
    background: #c49564;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#mobileCartBtn a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Only show when 'show' class is added AND on mobile */
@media (max-width: 768px) {
    #mobileCartBtn.show {
        display: block !important;
    }
}

/* Always hide on desktop */
@media (min-width: 769px) {
    #mobileCartBtn {
        display: none !important;
    }
}

/* Animation */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#mobileCartBtn.show {
    animation: slideInUp 0.3s ease-out;
}
