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%; }
.drive-control .selectable-item { width: 50%; }
.bracket-type .selectable-item {width: 50%;}
.base-rail-shape .selectable-item {width: 50%;}
.base-rail-colour .selectable-item {
    flex: 0 1 calc(20% - 10px); /* For 5 per row with gap */
    max-width: calc(20% - 10px);
    min-width: 120px;
    box-sizing: border-box;
}

.roll-direction .selectable-item {
    width: 25%;
}
.motor-type .selectable-item {
    width: 50% !important;
}
/* Desktop: 5 per row */
.base-rail-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.base-rail-selection .selectable-item {
    flex: 0 1 calc(20% - 10px);
    max-width: calc(20% - 10px);
    box-sizing: border-box;
}

#curtain-splits-selection .selectable-item { width: 60%; }
#curtain-splits-selection .curtain-splits-head-desc a { text-decoration: none; color: #e83b68; font-weight: 700; }
#curtain-splits-selection .curtain-splits-head-desc a:hover { color: #444c5f; }

/* 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 .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;
    width:100%;
}

.selectable-item:hover {
  border-color: #ff6699;
  box-shadow: 0 0 8px rgba(255, 102, 153, 0.25);
}
.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-remote-image {
    text-align: center;
    height: 125px;
}

.customiser-card-product .customiser-charger-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 125px !important;
    width: 100%;
}

.customiser-card-product .customiser-charger-image img {
    max-width: 100px; /* limit image size */
    height: auto;
}

.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;
    margin-top: 10px;
}

#sunscreen-colours-range { margin-top: 10px; }

#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: 115px; }
    .measurement-rename-save { display: none; cursor: pointer; margin-left: 32px; }
    .measurement-blind-input {
        display: none;
        width: 50%;
        max-width: 240px;
        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 */
    .current_div_active{border-color: #e83e8c !important; }
    .drive-control .blinds-selection .motorised { display:none; }
    .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;
}

.sunscreen-light-filtering-colours.active {
    color: #fff!important;
    background-color: #000000;
}

.blockout-light-filtering-colours.active {
    color: #fff!important;
    background-color: #000000;
}

.mask--circle {
    border-radius: 50% !important;
    border: 1px solid #cfd2d8 !important;
}

.parent-color {
    display: none; /* Hide all fabric/color options by default */
}

.sunscreen-colours-fabric-img.active, .blockout-colours-fabric-img.active { border: 2px solid #ff6699 !important; padding: 3px; }

#blockout-fabric-ranges,
#blockout-colours-range {
    display: none;
}

#blockout-fabric-ranges.tab-active,
#blockout-colours-range.tab-active {
    display: block;
}

.fabric_ranges_btn, .fabric-child-color {
    width: 150px;
    margin: 3px;
    /*background-color: #f4f4f4 !important;*/
    color: black !important;
}

.fabric_ranges_btn img { border-radius: 50%; width: 110px; border: 1px solid #cfd2d8; }
.fabric-child-color img { border-radius: 50%; width: 55px!important; }

.fabric-name, .colours-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; }
.color-tag { background-color: #5f6c8b; border-radius: 9px; color: #fff; display: inline-block; font-size: 11px !important; font-weight: 700; line-height: 1; padding: 3px 6px; white-space: nowrap; margin-top: 5px; }

/*.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;
}
.blinds-selection .base-rail-selection:not(.active) {
    display: none;
}

/* Hide entire base rail colour section initially */
.base-rail-colour {
    display: none;
}

/* Show it when base rail shape is selected */
.base-rail-shape.shape-selected ~ .base-rail-colour {
    display: block;
}

/* Only hide base-rail-selection if not active */
.blinds-selection .base-rail-selection:not(.active) {
    display: none;
}

/* Active base rail selection container – 5 per row */
.base-rail-selection.active {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 15px;
    justify-content: flex-start;
}

/* Individual items – 5 per row */
.base-rail-selection.active .selectable-item {
    flex: 0 1 calc(20% - 20px);
    max-width: calc(20% - 20px);
    min-width: 120px;
    box-sizing: border-box;
    margin: 0;
}

/* Prevent inherited width breaking layout */
.base-rail-colour .selectable-item {
    width: auto !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; }

/*Color acitive css*/
.child-color .blockout-current-colour-active, .child-color .sunscreen-current-colour-active {
    border: 2px solid #ff6699 !important;
    box-shadow: 0 0 10px rgba(255, 102, 153, 0.3);
}

.child-color .blockout-current-colour-active .selectable-item-selected-icon, .child-color .sunscreen-current-colour-active .selectable-item-selected-icon {
  display: block;
}


/* Media Queries for Responsive Design */

/* Mobile: 2 per row */
@media (max-width: 768px) {
    .base-rail-selection .selectable-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Override for mobile (100%) */
@media screen and (max-width: 767px) {
    .fitting-type .selectable-item,
    .roll-direction .selectable-item,
    .drive-control .selectable-item,
    .base-rail-colour .selectable-item,
    .pelmet-height .selectable-item,
    .bracket-type .selectable-item,
    .base-rail-shape .selectable-item {
        width: 100%;
    }
}

@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% !important;
        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;
    }
}

@media (max-width: 768px) {
    .measurement-box {
        padding: 10px;
        min-height: auto;
    }

    .rename-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .measurement-rename-icon, 
    .measurement-rename-save {
        margin-left: 0;
        margin-top: 8px;
    }

    .control-section {
        float: none;
        margin-top: 15px;
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .measurement-control {
        width: 48%;
        padding: 10px;
        text-align: center;
    }

    .input-group {
        flex-direction: column;
        gap: 12px;
    }

    .input-box input {
        width: 100%;
    }

    .input-box label {
        font-size: 14px;
    }
}

#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;
}