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;
}

.fitting-type .selectable-item { width: 60%; }
#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;
}

.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 {
    text-align: center;
    height: 125px !important ;
}
.customiser-card-product .customiser-card-image img {
    max-width: 100%;
    max-height: 170px;
    vertical-align: middle;
    border-style: none;
}

.customiser-card-content .title {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
}

.type-price-label {
    margin-bottom: 15px;
    color: #e83b68;
    font-size: 16px;
    display: block;
}

/* 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;
}

/* 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;
    width: 68%;
    margin-top: 40px;
}

.measurement-remove-icon {
    cursor: pointer;
    margin-left: 10px;
}

.measurement-rename-icon {
    cursor: pointer;
    margin-left: 185px;
}

.measurement-rename-save {
    display: none;
    cursor: pointer;
    margin-left: 10px;
}

.measurement-blind-input {
    display: none;
    width: 100%;
    max-width: 245px;
    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;
    align-items: center;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.input-box {
    flex: 1;
    min-width: 120px;
}

.input-box label {
    font-size: 13px;
    font-weight: 600;
    color: #d33;
}

.input-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid #d33;
    margin-top: 5px;
    outline: none;
}

/* Other CSS */
.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;
}

.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;
}

.light-filtering-colours:hover { color: #fff!important; }
.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 */
}

#fabric-ranges, #colours-range {
    display: none; /* Hide both tabs initially */
}

#fabric-ranges.tab-active, #colours-range.tab-active {
    display: block; /* Show active tab */
}

.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; }

.colours-fabric-img.active { 
    border: 2px solid #ff6699 !important; 
    /*padding: 3px;*/
}
.colours-fabric-img { display: inline-block; width: 50px !important;; height: 50px !important;; border-radius: 100px; border: 1px solid #cfd2d8;}
.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: #a7856e; border-radius: 9px; color: #fff; display: inline-block; font-size: 11px !important; font-weight: 700; line-height: 1; padding: 3px 6px; white-space: nowrap; }

/*.current_div_active {
    border-color: #e83e8c !important;
}*/

.child-color .current-colour-active {
    border: 2px solid #ff6699 !important;
    box-shadow: 0 0 10px rgba(255, 102, 153, 0.3);
}

.child-color .current-colour-active .selectable-item-selected-icon {
    display: block;
}

#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 {
        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%;
        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;
    }

    .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;
}