body .form-create-account .control input#is_host.checkbox{
    width: unset !important;
    float: left;
}
body .form-create-account div.field.is_host .control{
    float: left !important;
    width: unset !important;
}
/* Align "Register as Host?" like Newsletter checkbox */
body .form-create-account div.field.is_host {
    display: flex;
    align-items: center;
}

body .form-create-account div.field.is_host .control {
    margin-right: 8px;
}

body .form-create-account div.field.is_host label.label {
    margin: 0px !important;
    padding: 0;
    display: flex;
    color: #000 !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
}

body .form-create-account div.field.is_host input[type="checkbox"] {
    margin: 10px 0 0 !important;
}
.account .fieldset div.field.is_host >.field:not(.choice)>.label{
    margin: 0px !important;
}
/* Container spacing */
#guests-container {
    width: 100%;
}

/* Make row a 3-column grid */
#guests-container .guest-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Each field layout */
#guests-container .field {
    display: flex;
    flex-direction: column;
}

/* Label styling */
#guests-container .field .label {
    margin-bottom: 6px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-align: left;
}

/* Input styling */
#guests-container .field .control input , .add-guest-form .control input {
    width: 100%;
    height: 40px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
}
.add-guest-form .control input{
    margin-top: 10px;
}
/* Focus state */
#guests-container .field .control input:focus {
    border-color: #1979c3; /* Magento primary blue */
    outline: none;
    box-shadow: 0 0 0 1px rgba(25, 121, 195, 0.2);
}

.actions-toolbar {
    display: flex;
    justify-content: center;
    margin-left: unset !important;
}

.actions-toolbar .primary {
    float: none;
}

#guests-fieldset > .action.remove-guest,
#guests-fieldset > #add-guest {
    margin-top: 15px;
}

#guests-fieldset {
    display: flex;
    flex-direction: column;
}

/* Button container behavior */
#guests-fieldset .action.remove-guest,
#guests-fieldset #add-guest {
    text-transform: uppercase;
    background: #c7a674;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Create left-right layout */
#guests-fieldset .action.remove-guest {
    grid-column: span 3;
}

#guests-fieldset .action.remove-guest:hover,
#guests-fieldset #add-guest:hover {
    background: #515151;
    box-shadow: 6px 6px 0 0 rgba(0, 0, 0, .18);
    border: 1px solid #515151;
}


/* Event card */
.event-item {
    background: #fff;
    margin-bottom: 30px;
    margin-top: 10px;
    border-radius: 6px;
}

/* Event title */
.event-item h2 {
    text-align: left;
    font-size: 30px;
    margin-bottom: 6px;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Event meta info */
.event-item > p {
    text-align: right;
    margin: 0;
    font-size: 14px;
}

/* Guests heading */
.event-item h3 {
    text-align: left;
    margin: 0 0 12px;
    border-bottom: 1px solid #999;
    padding: 5px 5px 5px 0px;
    font-size: 22px;
    font-weight: 600;
    margin-top: 10px;
}

/* Guests table */
.event-item table.data {
    width: 100%;
    border-collapse: collapse;
}

.event-item table.data th,
.event-item table.data td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
    white-space: nowrap; /* keep all columns as-is */
}

.event-item table.data td.email {
    white-space: normal;        
    word-break: break-word;     
    overflow-wrap: anywhere;    
    max-width: 160px;      
}
.event-item table.data td.name {
    white-space: normal;        
    word-break: break-word;     
    overflow-wrap: anywhere;    
    max-width: 75px;      
}

.event-item table.data th {
    font-weight: 600;
}

/* Actions link */
.event-item table.data td a {
    color: #c89b5c;
    font-weight: 500;
    text-decoration: none;
}

.event-item table.data td a:hover {
    text-decoration: underline;
}

/* Add Guest section */
.add-guest-form {
    padding-top: 5px;
    text-align: left;
}

/* Add Guest form grid */
.add-guest-form form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px !important;
}

/* Make button full row */
.add-guest-form .actions-toolbar {
    grid-column: 1 / -1;
    text-align: left;
}

/* Center button */
.add-guest-form .actions-toolbar .primary {
    float: none;
    display: inline-block;
}

/* Main pager container */
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

/* Items count */
.pager .toolbar-amount {
    margin: 0;
    white-space: nowrap;
}

/* Pagination block */
.pager .pages {
    align-items: center;
    position: unset !important;
}

/* Hide "Page" label */
.pager .pages-label {
    display: none;
}

/* Pagination list */
.pager .pages-items {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Page links */
.pager .pages-items .item a,
.pager .pages-items .item strong {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    text-decoration: none;
    font-size: 14px;
}

/* Active page */
.pager .pages-items .item.current strong {
    background: #caa36a;
    color: #fff;
    border-color: #caa36a;
}

/* Limiter (Show per page) */
.pager .limiter {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.pager .limiter select {
    height: 32px;
    padding: 0 6px;
    border: 1px solid #ccc;
}
.eventmanagement-index-dashboard .pages .items{
    align-items: center;
    justify-content: center;
    display: inline-flex
}
.eventmanagement-guest-view .fieldset{
    text-align: left;
}
.event-item table.data .copy-link-button{
    font-size: 12px !important;
    background: #c7a674;
    color: #fff;
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 600;
    padding: 5px 8px 5px;
    margin: 0;
    border: none;
    line-height: 1;
    border-radius: 0;
    margin-left: 10px;
}

/* ===== Email Template ===== */
.eventmanagement-guest-view.page-layout-1column h1.page-title , .eventmanagement-guest-view.page-layout-1column .legend {
    text-align: left;
    margin: 24px 0 12px;
    border-bottom: 1px solid #999;
    padding: 5px;
    font-size: 22px;
    font-weight: 600;
}
.eventmanagement-guest-view.page-layout-1column .legend {
    border-bottom: unset;
}
.form-create-account .fieldset legend.legend.host{
    margin: 0 0 0px;
}

.event-info,
.package-options {
    background-color: #fff !important;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.event-info h2,
.package-options h2 {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    text-align: left;
    font-size: 22px !important;
    font-weight: 400 !important;
}

/* ===== Event Info Text ===== */
.event-info p {
    margin: 6px 0;
    font-size: 15px;
    text-align: left;
}

.event-info strong {
    color: #333;
}

.package-options-list {
    text-align: left;
}
.package-options-list dt {
    font-weight: 600;
    color: #555;
    text-align: left;
    width: 50% !important;
}

.package-options-list dd {
    margin: 0;
    color: #333;
    text-align: left;
    width: 46% !important;
}
#package-options-container .input-text{
    color: #333 !important;
    border: none;
}
.eventmanagement-guest-view.page-layout-1column select , .eventmanagement-guest-view.page-layout-1column input{
    width: 100%;
    height: 40px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    text-align: left;
    color: #000 !important;
    margin-bottom: 5px;
}

.eventmanagement-guest-view.page-layout-1column select{
    width: 100%;
    height: 40px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
}

.eventmanagement-index-dashboard h2,
.eventmanagement-index-dashboard h2 + .eventmanagement-index-dashboard p,
.eventmanagement-index-dashboard h2 + .eventmanagement-index-dashboard p + .eventmanagement-index-dashboard p {
    display: inline-block;
    vertical-align: middle;
    margin: 0 15px 0 0;
}

.eventmanagement-index-dashboard h2 {
    font-weight: 600;
    float: left;
}

.eventmanagement-index-dashboard p {
    font-size: 14px;
}
.eventmanagement-index-dashboard .toolbar-events.toolbar.bottom{
    position: static;
}
.eventmanagement-guest-view.page-layout-1column input[type="radio"] {
    appearance: radio;
    -webkit-appearance: radio;
    -moz-appearance: radio;
    width: 16px;
    height: 16px;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    position: relative;
    cursor: pointer;
}

.eventmanagement-guest-view.page-layout-1column .radio-option , .eventmanagement-guest-view.page-layout-1column .checkbox-option{
    text-align: left;
}

.eventmanagement-guest-view.page-layout-1column input[type="radio"]:checked,
.eventmanagement-guest-view.page-layout-1column input[type="radio"]:focus,
.eventmanagement-guest-view.page-layout-1column input[type="radio"]:active {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

.eventmanagement-guest-view.page-layout-1column input[type="checkbox"] {
    appearance: checkbox;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    width: 16px;
    height: 16px;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    position: relative;
    cursor: pointer;
}

/* Prevent hiding when checked / focused */
.eventmanagement-guest-view.page-layout-1column input[type="checkbox"]:checked,
.eventmanagement-guest-view.page-layout-1column input[type="checkbox"]:focus,
.eventmanagement-guest-view.page-layout-1column input[type="checkbox"]:active {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

.eventmanagement-guest-view.page-layout-1column control{
    height: 40px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
}

.eventmanagement-guest-view.page-layout-1column  .actions-toolbar{
    margin-bottom: 10px;
}

.eventmanagement-guest-view .mage-error{
    text-align: left;
    float: unset;
}

.eventmanagement-guest-view.page-layout-1column  .actions-toolbar .primary{
    text-transform: uppercase;
    background: #c7a674;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    border: 1px solid #c7a674;
}
.eventmanagement-guest-view.page-layout-1column  .actions-toolbar .primary:hover{
    background: #515151;
    border: 1px solid #515151;
    box-shadow: 6px 6px 0 0 rgba(0, 0, 0, .18);
}

.account.eventmanagement-index-create .mage-error{
    float: unset;
    text-align: left;
}
.eventmanagement-index-create select{
    color: #333 !important;
}
.add-guest-form h3{
    margin-top: 0px;
}

@media (max-width: 1280px) {
    .eventmanagement-index-dashboard p{
        text-align: left;
        line-height: 1.5;
    }
    .account .column.main h2{
        float: none;
        line-height: 1.5;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
        font-size: 24px;
    }
    .event-item{
        text-align: left !important;
    }
}


/* Responsive */
@media (max-width: 768px) {
/* Responsive: stack buttons on small screens */
    #guests-fieldset .action.remove-guest,
    #guests-fieldset #add-guest {
        width: 100%;
        margin: 8px 0;
        align-self: stretch;
        text-align: center;
    }


    .pager {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .event-item table.data thead {
        display: none;
    }

    .event-item table.data tr {
        display: block;
        margin-bottom: 15px;
        border-bottom: 1px solid #ddd;
    }

    .event-item table.data td {
        display: flex;
        text-align: right;
        padding: 8px 0;
    }
    .event-item table.data td.email, .event-item table.data td.name {
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }
    .event-item table.data td::before {
        content: attr(data-th);
        font-weight: 600;
        text-align: left;
    }

    .add-guest-form form {
        grid-template-columns: 1fr;
    }
    #guests-container .guest-row{
        display: block;
        margin-bottom: 15px;
    }
}


/* Host Info Link Styles */
.host-info-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    margin-left: 8px;
    transition: color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.host-info-link:hover {
    color: #515151;
    text-decoration: underline;
}

.host-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #c7a674;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
}

.host-info-link:hover .host-info-icon {
    background-color: #515151;
}

.host-info-text {
    white-space: nowrap;
}

.host-info-link:hover .host-info-text {
    color: #515151;
}

/* Navigation Link Styles for Customer Account Sidebar */
.nav.item .nav-link-wrapper {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 100%;
}

.nav.item .nav-link-wrapper > a:first-child {
    flex: 1;
}

.nav.item .host-info-link {
    margin-left: 8px;
    font-size: 12px;
    flex-shrink: 0;
}

/* Show error messages on the home page */
body.cms-home.cms-index-index #maincontent {
    display: block !important;
}
body.cms-home.cms-index-index #maincontent .columns {
    display: none !important;
}

@media screen and (max-width: 567px) {
    .form-create-account .fieldset legend.legend.host {
        font-size: 16px;
        margin-top: 10px;
    }

    body .form-create-account div.field.is_host {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    body .form-create-account div.field.is_host label.label {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 4px;
        margin-left: 4px;
    }
    
    body .form-create-account div.field.is_host label.label > span:first-child {
        font-size: 13px;
        white-space: nowrap;
    }
    
    .host-info-link {
        margin-left: 4px;
        font-size: 11px;
        flex-shrink: 0;
    }
    
    .host-info-text {
        font-size: 11px;
    }
    
    .host-info-icon {
        width: 14px;
        height: 14px;
        font-size: 10px;
    }
    .account .fieldset > .field:not(.choice) > .label {
        margin: 0 0 0px 0 !important;
    }
    body .form-create-account div.field.is_host input[type="checkbox"] {
        margin: 0px 0 0 !important;
    }
}
