* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

form .grandmaName {
	display: none;
	tabindex: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}

.mySlides {
    display: none;
    text-align: center;
}

.mySlides img {
    width: 100%;
    height: auto;
    max-height: 500px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

label, p {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label span {
    margin-top: 10px;
    font-size: 18px;
    cursor: pointer;
}

input[type="radio"] {
    display: none;
}

.hidden {
    display: none;
}

textarea, input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, .clr-field {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
	resize: none;
}

#message {
	font-size: 18px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

.image-name, #totalPrice, #cautPrice {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

.thumbnail-container {
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 20px;
    padding: 10px;
}

.thumbnail {
    display: inline-block;
    margin: 5px;
    cursor: pointer;
}

.thumbnail img {
    width: 60px;
    height: auto;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.thumbnail-container::-webkit-scrollbar {
    height: 10px;
    background-color: #f4f4f4;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.thumbnail img:hover, .thumbnail img.active {
    border: 2px solid green;
}

@media (max-width: 600px) {
    .prev, .next {
        font-size: 18px;
        padding: 10px;
    }

    .mySlides img {
        max-height: 300px;
    }
}

div[id^=font-picker] {
    font-size: 50px !important;
	width: 100% !important;
	box-shadow: none !important;
}

div[id^=font-picker] .dropdown-button {
    height: 70px !important;
	margin-top: 10px;
	overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

div[id^=font-picker] ul li {
    height: 70px !important;
}

div[id^=font-picker].expanded ul {
    max-height: 400px !important;
}


.clr-field button {
    width: 100% !important;
    height: 100% !important;
    border-radius: 5px !important;
}

/* Hidden by default */
#loadingOverlay {
  display: none;
  position: fixed;
  inset: 0; /* top:0, right:0, bottom:0, left:0 */
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

/* Spinner style */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}