html { overflow-x:auto; overflow-y:scroll; } /* force scroll bar to be always present to prevent jitter */
body {
font-family: Arial, Helvetica, sans-serif;
padding: 0;
border: 0;
font-weight: normal;
font-size: 100%;
vertical-align: baseline;
margin: 0 auto;
line-height: 1.5;
-webkit-text-size-adjust: none;
}
body,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
padding: 0;
margin: 0 auto;
line-height: normal; /* 2018-11-21 */
}
#container {
background: repeat-y top left;
max-width: 923px; /* 2023-12-12 added */
margin-left: auto;
   margin-right: auto;
position:relative;
min-height: 100vh;
}
#company {
/*
background: transparent repeat-x top left;
background: url(banners/default_banner.png) center no-repeat;
background-size:contain;
width:100%;
*/
/* moved to inc_header */
}
#company h1 {
width: auto;
height: 220px;
margin: 0;
padding: 0;
text-align:center;
}
#company h1 span {
display: inline;
color: #fe2727;
}
#xxcompany {
width:923px;
max-height:209px;
display:inline;
}
#company img {
max-width: 100%;
height: auto;
display: block;
}
#quicklinks {
/*height: 27px;*/
padding-left: 0;
padding-top: 0;
font-weight: bold;
font-size: 14px;
margin: 0 auto; /* 2018-11-07 10px auto; */
width: 100%;
}
#quicklinks h2 {
display: inline;
font-weight: bold;
font-size: 14px;
color: #FFFFCC;
}
#quicklinks h2 span {
display: none;
}
#quicklinks ul {
list-style-type: none;
    margin: 0;
    padding: 7px 2px 0 2px;
    overflow: hidden;
    /* background-color: $navBackground; */
background-color: #99c592;
min-height: 22px; /* 2023-12-12 was height */
}
#quicklinks li {
    float: left;
}
#quicklinks li:last-child {
    float: right;
padding: 2px 0 3px 0;
}
#quicklinks li a {
    display: inline;
    color: #006400;
    text-align: center;
    padding: 8px;
    text-decoration: none;
}
#quicklinks li:last-child a {
    display: inline;
    color: white;
    text-align: center;
    padding: 8px 8px 8px 2px;
    text-decoration: none;
}
#quicklinks li a:hover {
background-color: #009900;
}
.clear {
clear: both;
}
/****************** SIBLINGS ****************/
#siblings {
font-size: 12px;
line-height: 15px;
padding: 0 10px 10px 0;
margin-top: 10px;
margin-bottom: 10px;
text-align: right;
}
#siblings h3 {
display: inline;
font-size: 12px;
font-weight: bold;
color: #666666;
margin: 0;
}
#siblings h3 span {
display: inline;
font-size: 12px;
font-weight: bold;
color: #666666;
}
#siblings ul {
padding: 0;
display: inline;
}
#siblings li {
padding-left: 2px;
padding-right: 4px;
display: inline;
font-size: 14px;
font-weight: bold;
color: #333333;
text-decoration: underline;
cursor:pointer;
}
#siblings li:hover {
color: #FF9999;
}
#siblings li a,
#siblings li a:visited,
#siblings li a:active,
#siblings li a:link {
color: #990000;
font-weight: normal;
}
#siblings li a:hover {
color: #FF9999;
}
#actions {
width: 60px;
}
#actions img {
vertical-align: middle; /* 2018-11-06 */
}
#actions ul {
padding: 0;
margin: 0;
display: inline;
}
#actions li:first-child {
padding-left: 2px;
margin-right: -2px;
}
#actions li {
font-size: 12px;
text-decoration: none;
display: inline;
cursor: pointer;
line-height: 2.2; /* 2018-11-06 */
}
#actions li:hover {
color: #FF9999;
}
#actions li a,
#actions li a:visited,
#actions li a:active,
#actions li a:link {
color: #990000;
font-weight: normal;
}
#actions li a:hover {
color: #FF9999;
}
/********************** content **********************/
#content {
background: #fcfbfc;
width: 100%;
padding: 0 0 10px 0;
color: #333333;
margin-top: 4px;
/*border: thick #0099CC solid;*/
}
#content p, /*#content td,*/ #content li {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
}
#content td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
#content h1 {
color: #006400;
font-size: 21px;
font-weight: bold;
margin: 0; /* 2018-11-07 */
}
#content .h1 {
color: #864683;
font-size: 21px;
}
#content h2 {
color: #000000;
font-size: 18px;
margin-top: 3px;
margin-bottom: 3px;
}
#content .h2 {
color: #000000;
font-size: 18px;
font-weight: bold;
}
#content a:link {
color: inherit; /*#5A085A;*/
font-weight:bold;
text-decoration: underline;
}
#content a:visited {
text-decoration: underline;
color: #285baa;
}
#content a:hover {
text-decoration: none;
color: #9C009C;
}
#content .sublinks {
color: #313031;
font-size: 10px;
}
#content .fldnm {
background-color: #99c592;
color: #285baa;
font-weight: bold;
}
#content .formtitle {
font-weight: bold;
background-color: #285baa;
color: #FFFFFF;
}
#content .frmfld {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #7C9577;
background-color: #FFFFFF;
border: #A479A2;
border-style: solid;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 2px;
border-left-width: 1px;
}
#content .btngo {
font-size: 12px;
font-weight: bold;
color: #FFFFFF;
background-color: #285baa;
border: #FFFFFF;
border-style: solid;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 2px;
border-left-width: 1px;
}
#content .smltxt {
font-size: 10px;
}
#content .purple {
font-weight: bold;
color: #90238E;
}
#content .hilite {
background-color: #FFFF99;
}
#content .errmsg {
color:red;
padding-bottom:10px;
padding-left:10px;
}
#content .hey {
color: #FFFFFF;
}
table {
border-collapse: initial;
border-width: 1px;
/*width: 100%;*/
}
table th {
color: #006400;
background-color: #99c592;
font-size: 14px;
font-weight: bold;
text-align:center;
}
table tr {
font-family: Arial, Helvetica, sans-serif;
text-align:center;
width:inherit;
line-height: 1.2; /* 2018-11-11 */
}
table tr:first-child {
line-height: 2.6; /* 2018-11-06 35px*/
}
table tr.row1 {
background-color: #ebedec;
height: 30px; /* 2018-11-11 */
}
table tr.row1 td {
border: 0.1em solid #ebedec;
    border-collapse: collapse;
    box-shadow: 0 0 2px #99c592;
}
table tr.row2 {
background-color: #99c592;
height: 30px; /* 2018-11-11 */
}
table tr.row2 td {
border: 0.1em solid #99c592;
border-collapse: collapse;
box-shadow: 0 0 2px white;
}
table th a>img {
margin-left:3px;
}
table td {
font-size: 12px;
font-weight: normal;
text-align: center;
margin: 0;
padding: 0;
}
/* Reinforce the table against any parent squeeze */
table.f1 {
    min-width: 320px !important;
    width: 320px !important;
    max-width: 320px !important;
    flex-shrink: 0 !important;
    flex-basis: 320px !important; /* Treat as rigid flex item */
}
/* Lock the button row vertically to stop upward movement */
table.f1 tr:last-child,
table.f1 td.f1 { /* button td */
    /* height: 60px !important; */
    min-height: 60px !important;
    max-height: 60px !important;
}
table.f1 td {
padding: 5px;
background-color: #eaeceb;
}
td.f1 {
background-color: #E3E7EC;
vertical-align: middle;
}
/* Minimize impact from any hidden reCAPTCHA iframes */
.g-recaptcha iframe,
.grecaptcha-badge-wrapper,
.grecaptcha-badge {
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important; /* If needed; doesn't disable reCAPTCHA */
}
#membertable th {
/*line-height: normal; 2018-11-06 */
}
#santatable table {
margin-left: 20px;
margin-top: 20px;
}
#santatable table, #santatable td {
border: 1px solid gray;
/*   border-collapse: collapse; - invalid on td */
}
#santatable th {
border: 1px solid gray;
border-bottom: 2px solid gray;
   border-collapse: collapse;
}
#santatable th:first-child, #santatable td:first-child {
border-right: 2px solid gray;
/*   border-collapse: collapse; - invalid on td */
}
#santatable th:first-child {
border-right: 2px solid gray;
/*   border-collapse: collapse; - invalid on td */
}
.wishtable {
width: 100%;
overflow-x: auto;
}
#wishtable table{
table-layout:auto;
word-wrap:break-word;
overflow-x: auto;
}
#wishtable th a:link, #membertable th a:link {
color: #006400;
font-weight:bold;
text-decoration: underline;
}
#wishtable th a:visited, #membertable th a:visited {
color: #006400;
text-decoration: underline;
}
#wishtable th a:hover, #membertable th a:hover {
color: #006400;
color: #FF9999;
text-decoration: none;
}
#wishtable td button, #membertable td button {
-webkit-appearance: media-exit-fullscreen-button;
-moz-appearance: menubar;
appearance: menubar;
}
/* keg limit width of images inserted on Wish lists 2024-12-04 */
#wishtable td img {
    max-width: 300px !important;
    height: auto !important;
display:block;
}
#wishtable td p input {
    max-width: 300px !important;
    height: auto !important;
display:block;
}
/* keg limit width of images inserted on Wish lists 2024-12-04 */
#wishtable2 td img input {
max-width: 300px !important;
    height: auto !important;
display:block;
}
#wishtable2 td p input {
    max-width: 300px !important;
    height: auto !important;
display:block;
}
#wishlist_edit .row1 {
background-color: #ebedec;
}
#wishlist_edit .row2 {
background-color: #99c592;
}
.row2 input {
  overflow: auto;
}
.row2 input.checkbox {
transform: scale(1.6);
    margin: 0 0 0 5px;
padding: 0;
   vertical-align: bottom;
   position: relative;
   top: -8px;
border: solid white;
border-width: 0 2px 2px 0;
}
#edittable table {
text-align:center;
}
#edittable .row1,#edittable .row2 {
height:24px;
}
#edittable td {
font-size: 12px;
font-weight: normal;
text-align: left;
height:24px;
margin: 0;
padding: 0;
}
#edittable th a:link {
color: #006400;
font-weight:bold;
text-decoration: underline;
}
#edittable th a:visited {
color: #006400;
text-decoration: underline;
}
#edittable th a:hover {
color: #006400;
color: #FF9999;
text-decoration: none;
}
#edittable td button {
-webkit-appearance: media-exit-fullscreen-button;
-moz-appearance: menubar;
appearance: menubar;
}
#edittable tr:first-child {
line-height:0px;
}
#xedittable tr:last-child {
padding-top: 40px;
}
#xedittable tr:last-child td{
margin-top: 40px;
text-align:center;
}
#edittable input,#edittable select {
height:24px; /* 24 */
}
#submitbuttons {
text-align: center;
margin-top: 12px;
}
#submitbuttons input {
background: #990000;
font-weight:bold;
color:#FFFFFF;
cursor:pointer;
margin-right:5px;
width:65px;
}
#submitbuttons input:last-child {
margin-right:0;
}
#submitbuttons span {
display:block;
margin-bottom:30px;
}
.linkbutton {
padding: 3px 4px 2px;
border-top: 2px solid #CCCCCC;
border-right: 2px solid #333333;
border-bottom: 2px solid #333333;
border-left: 2px solid #CCCCCC;
margin: 0 0 0 22px;
background: #990000;
text-decoration: none !important;
font-weight:unset !important;
color: white !important;
-webkit-text-size-adjust:100% !important;
}
#bottom {
width: 100%;    /* 923px; */
width:-webkit-fill-available;
background: transparent;
margin: 10px auto 0;
background: #99c592;
height: 20px;
font-size: 12px;
color: #006400;
padding-top: 5px;
padding-bottom: 0px;
    position: absolute;
    bottom: 0;
}
@media (max-width: 400px) {
#bottom {
font-size: 10px;
}
}
#bottom div:first-child {
float:left;
text-align: left;
padding-left: 12px;
}
#bottom div:last-child {
float:right;
text-align: right;
padding-right: 12px;
}
#bottom a {
text-decoration: none;
color: #313031;
font-size: 10px;
}
#bottom a:hover {
color: #b1440c;
background-color: #fff;
}
#submit_drawing {
text-align: center;
margin-top: 12px;
}
#submit_drawing input {
background: #990000;
font-weight:bold;
color:#FFFFFF;
cursor:pointer;
margin-right:5px;
width:65px;
padding: 6px;
}
#submit_drawing input:last-child {
margin-right:0;
}
#drawing_warning {
margin-top: 23px;
color: red;
font-size: 18px;
line-height: 1.9;
}
#quicklinks li:last-child .mail_envelope {
    background: url(images/envelope.png) no-repeat;
background-size: 18px 18px;
text-decoration: none;
display: inline;
    position: relative;
    left: 9px;
    top: 0px;
    padding: 0 14px;
}
#quicklinks li .mail_envelope a:hover {
    background: url(images/open_envelope.png) no-repeat;
}
.mail_envelope_msgs {
    font-size: 10px;
    vertical-align: super;
    color: red;
    position: relative;
    left: -3px;
    top: -2px;
}
#msg {
    width: 100%;
    margin: 0 auto;
}
#msg h3:first-of-type {
margin: 3px 15px 8px;
}
#msg h3{
margin: 25px 15px 8px;
}
.msg_display {
margin: 0 0 0 30px;
}
#msg .msg_reply {
margin: 0 0 10px 30px;
border: solid #CCCCCC 0px;
padding: 0px;
}
#msg .msg_reply textarea{
width:92%;
margin: 0 0 0 56px;
resize: none;
}
#msg .msg_reply span{
display:table;
margin:10px auto 30px;
}
#msg_recipient{
width:100%;
display:block;
margin:10px 0;
}
#msg a:link {
color: inherit;
font-weight:normal;
text-decoration: underline;
}
#msg a:visited {
text-decoration: underline;
color:black;
}
#msg a:hover {
text-decoration: none;
color: #9C009C;
}
#msg_header_banner {
background-color: #99c592;
    padding: 10px 7px 20px;
}
#msg_reply_banner {
background-color: cornsilk;
    padding: 7px;
}
/* User Popup styles */
#popup {
  position: absolute;
  top: 320px;
  right: -67.1px;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 1px solid black;
}
#popup .popup-content {
  float: right;
}
#popup .popup-content h2 {
background: lightgrey;
color:#006400;
    padding: 4px;
    margin: 0 0 14px 0;
text-align: center;
font-size:145%
}
#popup .popup-content a {
text-decoration: underline;
color: #285baa;
cursor:pointer;
padding: 15px;
}
/* Close button styles */
#popup .popup-content button {
margin: 20px auto;
text-align: center;
display: block;
}
.login-box {
}
 /* Style for the birthday table */
.birthdays {
    /*border-collapse: collapse;*/
display: contents;
width: 300px;
margin:0 auto;
}
tbody {
display: inline-table;
}
.birthdays tr:first-child {
height: 14px; /*was 12 */
line-height:1.1; /* normal; */
}
.birthdays tr {
line-height:1.4;
}
 
 /* Style for table cells */
.birthdays th {
color: black;
background-color: inherit;
font-size: 14px;
    font-weight: bold;
padding: 0 12px;
padding: 0 3px;
    width: 90px;
}
.birthdays td {
color: black;
padding: 0 12px;
padding: 0 3px;
    width: 100px;
}
.scrollable-window {
text-align:center;
width: 277px;
height: 110px;
        overflow-y: scroll;
        border: 1px solid #ccc;
        padding: 0px;
margin-left: 18px;
 }
 /* These entries are used in Settings.php */
.image-item {
display: flex; /* Use Flexbox for alignment */
align-items: center; /* Vertically align items */
gap: 10px; /* Space between the radio button and the image */
margin-bottom: 20px;
}
.image-item .label-content {
display: flex; /* Wrap the input and image together */
align-items: center; /* Vertically center items */
}
.image-item img {
width: 55%;
height: auto;
max-width: 550px;
}
.image-item span {
display: block;
font-size:14px;
min-height: 16px;
padding: 4px 5px;
margin: 2px 8px;
width: fit-content;
}
.image-item input[type="radio"] {
margin-left: 0;
margin-right: 8px;
}
/* following code was added for the new Wishlist display */
#content .gowish-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
    gap: 1rem;
    margin: 2rem auto;
    max-width: 1400px;
    padding: 0 10px;
    justify-content: center;
}
#content .gowish-style-grid a.item-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
#content .gowish-style-grid .item-card {
    height: 100%;                 /* fill grid cell */
    display: flex;
    flex-direction: column;       /* stack image + text vertically */
    justify-content: flex-start;  /* hug top, avoid extra gaps */
}
#content .gowish-style-grid .card-image-container {
    aspect-ratio: 1 / 1; /* square, or 4 / 3, 3 / 4, etc. */
    width: 100%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative; /* ensures badge stays over image */
    height: auto; 
    min-height: 120px; 
    max-height: 140px;

}
#content .gowish-style-grid img.card-image,
#content .gowish-style-grid .image-fallback {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
#content .gowish-style-grid .card-image-container img,
#content .gowish-style-grid .image-fallback {
  transition: transform 0.25s ease;
}

#content .gowish-style-grid .card-image-container:hover img,
#content .gowish-style-grid .image-fallback:hover {
  transform: scale(1.075);
}
#content .gowish-style-grid .image-fallback {
    width: 100%;
    height: 140px; /* match your max-height for consistency */
    min-height: 140px; /* prevent collapse on short cards */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8; /* light gray to make it obvious */
    color: #777;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}
.card-text {
    display: flex;
    flex-direction: column;
    align-items: center;  /* center text horizontally */
    gap: 0;               /* 3px space between title and price */
    margin-top: 12px;       /* consistent spacing below image */
}

/* Title */
.card-title {
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;          
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-height: 62px; /* 3 lines */
    word-break: break-word; /* optional for very long words */
}

/* Price */
.card-price {
    /* padding: 2px 8px; */
    font-size: 0.9rem;
    text-align: center;
    flex-shrink: 0;
    margin: 0;
    color: #555;
}
#content .gowish-style-grid .reserved-badge {
    position: absolute;
    top: 0;		/* move badge to top of grid */
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    font-size: 0.7rem;
    padding: 3px 7px;
    border-radius: 10px;
    font-weight: 600;
}


@media (max-width: 600px) {
    #content .gowish-style-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 160px));
        gap: 1.5rem;
        row-gap: 1.8rem;
    }
    #content .gowish-style-grid .card-image-container {
        /* max-width: 120px; */
        width: 100%; /* fill available width */
        height: auto; /* remove fixed height */
        min-height: 120px; /* minimum to prevent collapse change from 120*/
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f8f8; /* visible when empty */
    }
    /* Ensure fallback text is readable */
    #content .gowish-style-grid .image-fallback {
        font-size: 0.9rem;
        padding: 10px;
        text-align: center;
        color: #777;
    }
    #content .gowish-style-grid .card-title {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 0 !important; /* was 3rem reserve space */
        overflow: visible !important;
        white-space: normal !important;
        text-overflow: unset !important;
        -webkit-line-clamp: unset !important;
        line-height: 1.3 !important;
        color: #000 !important; /* ensure visible */
        padding: 10px 6px 0 6px !important;  /* remove bottom padding */
        font-size: 0.95rem;
        line-height: 1.35;
        max-height: fit-content;
    }
   
    #content .gowish-style-grid .item-card {
        margin-bottom: 0.5rem; /* optional extra buffer */
        margin-left: 0.5rem; /* optional extra buff2 */
    }
    #content .gowish-style-grid .card-text {
        gap: 2px;   /* adjust this number to22te */
    }
    
}
/* Wishlist Detail Page */
.detail-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}
.detail-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: start;
}
.detail-image-container {
    text-align: center;
    position: relative; /* for badge positioning */
}
.detail-image {
    max-width: 380px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    object-fit: contain;
}
#content .gowish-style-grid .image-fallback,
.no-image-placeholder {
    width: 100%;
    height: 140px;
    min-height: 140px;
    background: url('/images/no-image-placeholder.jpg') center/cover no-repeat !important;
    background-color: #f8f8f8;          /* fallback if image fails */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0;
}
/* Detail page specific sizing (larger) */
.no-image-placeholder {
    height: 300px;
    min-height: 300px;
}

/* Ensure grid placeholder doesn't show text */
#content .gowish-style-grid .image-fallback {
    color: transparent !important;
    font-size: 0 !important;
}
.detail-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.detail-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #111;
    line-height: 1.25;
}
.detail-description {
    font-size: 1.35rem;
    font-weight: 500;
    color: #222;
    line-height: 1.6;
    margin: 0 0 24px 0;
}
.detail-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0288d1;
    margin: 0 0 24px;
}
.detail-reserved-notice {
    background: #ffebee;
    color: #d32f2f;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 16px 0;
}
.detail-reserved-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.detail-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 32px 0;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    margin-bottom: 24px;
    font-size: 1.05rem;
    color: #444;
}
.detail-meta-item {
    text-align: left;
}
.detail-meta-label {
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 4px;
}
.detail-back-link {
    text-align: justify;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .detail-image,
    .no-image-placeholder {
        max-width: 500px;
        margin: 0 auto;
    }
    .detail-title {
        font-size: 2rem;
    }
    .detail-description {
        font-size: 1.25rem;
    }
    .detail-price {
        font-size: 2rem;
    }
    .detail-action-row {
        justify-content: center;
    }
}
/* Wishlist Edit Page */
.edit-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}
.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.edit-title {
    font-size: 2.2rem;
    color: #c2185b;
    margin: 0;
}
.close-x {
    font-size: 1.5rem;
    color: #006400 !important;
    text-decoration: none;
    font-weight: bold;
}
.close-x:hover {
    color: #333;
}
.edit-form,
.add-form {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
}
.form-left {
    flex: 1;
    padding: 40px;
}
.form-right {
    flex: 0 0 400px;
    background: #f8fafc;
    padding: 40px 30px;
    border-left: 1px solid #e0e0e0;
    text-align: center;
}
.form-group {
    margin-bottom: 28px;
}
.form-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}
.edit-form input[type="text"],
.edit-form input[type="url"],
.edit-form input[type="number"],
.edit-form textarea,
.edit-form select, 
.add-form input[type="text"],
.add-form input[type="url"],
.add-form input[type="number"],
.add-form textarea,
.add-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    transition: border 0.2s;
}
.edit-form input:focus,
.edit-form textarea:focus,
.edit-form select:focus,
.add-form input:focus,
.add-form textarea:focus,
.add-form select:focus {
    border-color: #0288d1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2,136,209,0.1);
}
.edit-form textarea,
.add-form textarea {
    min-height: 180px;
    resize: vertical;
}
.upload-box {
    border: 2px dashed #0288d1;
    border-radius: 12px;
    padding: 60px 20px;
    background: #f0f9ff;
    cursor: pointer;
    transition: all 0.2s;
}
.upload-box:hover {
    background: #e0f2fe;
    border-color: #0369a1;
}
.upload-icon {
    font-size: 3.5rem;
    color: #0288d1;
    margin-bottom: 12px;
}

.btn-insert {
    background: #0288d1;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-insert:hover {
    background: #0277bd;
}
.edit-image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.edit-no-preview {
    height: 200px;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.1rem;
}
.add-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}
.add-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.add-title {
    font-size: 2.2rem;
    color: #c2185b;
    margin: 0;
}
.add-form {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
}
.errmsg { 
	color: #d32f2f; 
    margin-bottom: 20px; 
    font-weight: 500; 
}






.qty-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.qty-row > div {
    flex: 1;
    min-width: 140px;
}
.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-btn {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border: none;
    border-radius: 8px;
    font-size: 1.3rem;
    cursor: pointer;
}
.qty-btn:hover {
    background: #d0d0d0;
}
.edit-action-row {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.edit-errmsg {
    color: #d32f2f;
    margin-bottom: 20px;
    font-weight: 500;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 1rem;
    color: #444;
}
.edit-last-edit {
    margin: 0 18px;
    color: #666;
    font-size: .9rem;
}
@media (max-width: 900px) {
    .edit-form {
        flex-direction: column;
    }
    .add-form {
        flex-direction: column;
    }
    .form-right {
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
    .qty-row {
        flex-direction: column;
    }
}

/* Wishlist Edit Buttons - Full Shape, Hover, and Colors */
/* Global Button Styles - Apply to ALL .btn instances */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Color-specific rules */
.btn-save {
    background: #0288d1;
    color: white;
}
.btn-save:hover {
    background: #0277bd;
}

.btn-cancel {
    background: #757575;
    color: white;
}
.btn-cancel:hover {
    background: #616161;
}

.btn-delete {
    background: #d32f2f;
    color: white;
}
.btn-delete:hover {
    background: #b71c1c;
}

.btn-unreserve {
    background: #757575;
    color: white;
}
.btn-unreserve:hover {
    background: #616161;
}

.btn-reserve {
    background: #0288d1;
    color: white;
}
.btn-reserve:hover {
    background: #0277bd;
}

.btn-store {
    background: #4CAF50;
    color: white;
}
.btn-store:hover {
    background: #43A047;
}

.btn-edit {
    background: #0288d1 !important;  /* blue instead of grey */
    color: white !important;
}
.btn-edit:hover {
    background: #0277bd !important;
}
.btn-submit {
    background: #0288d1;
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-submit:hover { 
	background: #0277bd; transform: translateY(-2px); 
}

/* Reactivate button - green for positive/restore action */
.btn-reactivate {
    background: #28a745 !important; /* Bootstrap success green */
    color: white !important;
    border: none !important;
}

.btn-reactivate:hover {
    background: #218838 !important; /* darker green on hover */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.submit-row {
    margin-top: 40px;
    text-align: center;
}


/* Optional: Back link (if not already styled) */
.back-link a,
.detail-back-link a {
    color: #0288d1;
    font-weight: 600;
    text-decoration: none;
}
.back-link a:hover,
.detail-back-link a:hover {
    text-decoration: underline;
}

/* Bottom back link on wishlist_edit.php */
.back-link {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
}

.back-link a {
    color: #0288d1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link a:hover {
    color: #0277bd;
    text-decoration: underline;
}

.upload-box {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #0288d1;
    border-radius: 12px;
    background: #f0f9ff;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    background: #e0f2fe;
    border-color: #0369a1;
}

#uploadPlaceholder {
    text-align: center;
    color: #555;
}

#imagePreview {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

#clearPreview {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 24px;
}

#imageUpload {
    display: none;
}

/* PHP ETag wrapper */
