.popup-intro {
	
	width: 100%;
	text-align: center;
	padding: 20px 20px 0px 20px;
	
}

#popup-intro-message {
	
	font-size:20px;
	
}

.tab-navigation {
	
	width:95%;
	margin: 10px auto 0 auto;
	border-bottom: 1px solid lightgrey;
	
}

.tab-button {
	
	background-color: #ffffff;
	color: #6c757d;
	font-size: 18px;
	padding:10px;
	
}

.tab-button.active {
	
	background-color: #6c757d;
	color: white;
	
}

.accessory-popup {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
		height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: left;
    position: relative;
    width: 100%;
		max-width: 1200px;
}

.popup-title-area {
	
	width:100%;
	padding: 30px;
	background-color: #4169e1;
	
}

.popup-title-area h3 {

	color: white;
	letter-spacing: 1px;
	
}

#accessory-list {
	
	padding: 20px;
	max-height: 60vh;
	overflow:scroll;
	
}

.popup-accessory-row img {
	
	display:block;
	
}

.popup-details-and-cart {
	
	display: flex;
	flex-direction: row;
	min-width:86%;
	
}

.popup-product-title {
	
	display: flex;
	flex-direction: column;
	max-width:50%;
	padding-left:10px;
	
}

.popup-add-to-cart {
	
	display:flex;
	margin-left:auto;
	flex-direction: row;
	
}

.popup-accessory-row {
    display: flex;
    align-items: center; /* Vertically align items */
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.popup-accessory-row a {
    text-decoration: none;
    color: #6c757d;
    font-weight: bold;
    flex: 2; /* Allow links to take more space */
}

.popup-accessory-row a:hover {
    text-decoration: underline;
}

.popup-accessory-row span {
    margin-right: 20px;
    flex: 1;
    text-align: right; /* Align the price to the right */
}

.popup-accessory-row input {
    width: 60px !important;
    margin-right: 10px !important;
    padding: 5px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    text-align: center;
	height: 40px !important;
}

.popup-accessory-row button {
    background-color: #4169e1;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
		height: 40px;
		min-width:105px;
}

.popup-accessory-row button:hover {
    background-color: #6c757d;
    color: #ffffff;
}

.popup-buttons {
    margin: 20px;
		text-align:center;
}

.popup-added-to-cart-button {
	
	background-color: #ffffff !important;
	color: #6c757d !important;
	
}

.popup-buttons a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
		width:200px;
		font-size:20px;
		background-color:#4169e1;
}

.popup-buttons a:hover {
    background-color: #ffffff;
		color: #6c757d;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: white;
		font-weight: 800;
}

@media (max-width: 600px) {

	.popup-product-title {
		max-width:100%;
	}
	.popup-add-to-cart {
		margin-left:unset;
		padding-left:10px;
		padding-top:10px;
	}
	.popup-details-and-cart {
		flex-direction:column;
		min-width:unset;
	}
	.accessory-popup { 
		overflow:scroll;
		align-items:unset;
	}
	#accessory-list {
		overflow:unset;
		max-height:unset;		
	}
	.popup-content {
		height:fit-content;
	}
}

/* Wider screens: landscape tablets, laptops, desktops */
@media (min-width: 601px) {

  .popup-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px); /* keep the whole popup inside the viewport */
    margin: 20px auto;
  }

  /* These should never shrink, so they stay fully visible */
  .popup-title-area,
  .popup-intro,
  .tab-wrapper,
  .popup-buttons {
    flex-shrink: 0;
  }

  /* The accessories area takes the remaining space and scrolls */
  #accessory-list {
    flex: 1 1 auto;
    min-height: 0;      /* allows it to shrink properly inside flex */
    overflow-y: scroll;
    max-height: none;   /* override the global 60vh */
    scrollbar-gutter: stable;
  }
}

#add-to-cart-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    color: #6c757d;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    z-index: 100001;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	
}

.single-product-input-output {
    padding: 30px 0;
    border-bottom: 1px solid lightgray;
}

.area-input {
    max-width: 100% !important;
		margin-left: 0;
}

.wfk-add-to-cart-button, .wfk-add-to-cart-button:focus {
    padding: 20px 40px;
    background-color: #4169e1;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 50px !important;
}

.wfk-add-to-cart-button:hover {
	color: white;
	background-color:#6c757d;
	
	
}

.units-required-col-2025 input, .units-select-2025 select {
    height: 50px;
		border-radius: 0;
}

.units-required-col-2025, .units-select-2025 {
    padding: 0;
}

.wastage-div {
    display: flex;
    justify-content: flex-end;
}

.wastage-div select {
    max-width: 150px;
}

.wastage-div select {
    border-radius: 0;
    height: 50px;
}

.measuring-guide {
    margin-top: 30px;
	  margin-bottom: -25px;
}

.total-price-bottom-2025 {
    text-align: center;
    margin-top: 20px;
}

.measuring-guide-link {
    margin: -15px 0px 20px 0px;
    text-align: center;
    display: block;
    width: 100%;
    font-weight: bold;
}

.delivery-time-2025 {
    padding: 30px 0;
    text-align: center;
}

.add-to-cart-2025 {
    width: 100% !important;
    align-items: center;
}

.pack-qty-2025 label {
    display: inline-block;
    font-size: 20px;
}

.pack-qty-2025 input {
    display: inline-block;
    width: 55px;
    margin: 0 10px;
}

.pack-qty-2025 h4 {
    display: inline-block;
    font-size: 20px;
}

.add-to-cart-button-2025 {
    text-align: right;
}

.need-help {
    margin-top: 30px;
    text-align: center;
}

.delivery-time-2025 p {
    
    margin: 0;
    
}
