.product-form__quantity {
    display: none;
}
.cw-container {
        background-color: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .cw-title {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
        color: #333;
    }

    #cw-word-selector {
        border: 1px solid #ccc;
        border-radius: 5px;
        min-height: 50px;
        display: flex;
        flex-wrap: wrap;
        padding: 5px;
        cursor: text;
line-height: normal;
    }

    #cw-word-input {
        border: none;
        outline: none;
        flex: 1;
        min-width: 100px;
        margin: 5px 0;
		text-transform: uppercase;
    }

    .cw-tag {
        background-color: #ececec;
    color: #000000;
    border: 1px solid #c2c2c2;
        border-radius: 5px;
        padding: 5px 10px;
        margin: 5px;
        display: flex;
        align-items: center;
		text-transform: uppercase;
    }

    .cw-remove-tag {
        background-color: #ff6347;
        border-radius: 50%;
        color: white;
        margin-left: 10px;
        padding: 0 5px;
        cursor: pointer;
        display: inline-block;
    }

    .cw-button-container {
        text-align: center;
        margin-top: 20px;
    }

    #cw-show-preview {
        padding: 10px 20px;
        font-size: 16px;
        color: white;
        background-color: #28a745;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
		margin-top: 10px;
    }

    #cw-show-preview:hover {
        background-color: #218838;
    }

    #cw-crossword-container {
        margin-top: 20px;
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 8px;
        background-color: #fafafa;
        overflow: auto;
    }

    #puzzle {
        display: inline-grid;
        grid-template-columns: repeat(auto-fill, 40px);
        gap: 5px;
        justify-content: center; /* Center the grid */
    }

    .cell:empty {
        display: flex; /* or another display property as needed */
        background-color: transparent; 
    }

    .cell {
        width: 30px;
        height: 30px;
        display: flex; /* Ensure cells use flexbox layout */
        align-items: center;
        justify-content: center;
        font-size: 22px;
        text-transform: uppercase;
        box-sizing: border-box;
        font-family: "Roboto", sans-serif;
        font-weight: bold;
        background-color: #ffff; /* Light background for non-empty cells */
    }

    .cell:not(:empty) {
        color: #e8d4b3;
        background-color: #452d23;
        border-radius: 3px;
      filter: drop-shadow(3px 3px 3px #b8b8b8);
    }

    #cw-tile-count {
        margin-top: 10px;
        font-size: 18px;
        font-weight: bold;
        color: #333;
    }
#cw-tile-info {
        margin-top: 20px;
    }

    #cw-total-price {
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin-bottom: 10px;
    }

    .cw-add-to-cart-button {
        display: none;
        padding: 10px 20px;
        font-size: 16px;
        color: white !important;
    background-color: #28a745;
    font-weight: bold;
        border: none;
        border-radius: 5px;
        text-decoration: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .cw-add-to-cart-button:hover {
        background-color: #0056b3;
    }

.cw-checkout-button {
        display: none;
        padding: 10px 20px;
        font-size: 16px;
        color: white !important;
    background-color: #28a745;
    font-weight: bold;
        border: none;
        border-radius: 5px;
        text-decoration: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .cw-checkout-button:hover {
        background-color: #0056b3;
    }

#loader {
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 12px solid #f3f3f3; /* Light grey */
  border-top: 12px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
.woocommerce div.quantity {
    display: none;  /* Hides the default quantity selector */
}

.center-button {
    margin: 20px auto !important;
    text-align: center !important;
}


#icon-tiles-section {
    margin-top: 20px;
}

.icon-tiles-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between each icon and quantity selector */
}

.icon-tile {
    display: flex;
    align-items: center;
}

.tile-icon {
   width: 30px;
    height: 30px;
    margin-right: 30px;
    margin-left: 5px;
}

.tile-qty {
    display: flex;
    align-items: center;
}

.tile-qty button {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: center;
    font-size: 18px;
    margin: 0 5px;
}

.tile-qty input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

    @media (max-width: 600px) {
        .cw-container {
            padding: 15px;
        }

        .cw-title {
            font-size: 20px;
        }

        #cw-show-preview {
            font-size: 14px;
            padding: 8px 16px;
        }
    }