/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */

 .swiftxr-admin-form{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    column-gap: 20px;
    align-items: start;
    margin-top: 20px;
 }

 .swiftxr-card{
    border-radius: 5px;
    /* box-shadow: rgba(99, 99, 99, 0.2) 0px 4px 8px 0px; */
      box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0px 1px;
    padding: 15px;
    background-color: #fff;

    display: flex;
    flex-direction: column;
    row-gap: 12.5px;
    height: max-content;
 }

 .swiftxr-card h5{
    font-size: 16px;
    margin: 0;
    font-weight: 500;
    opacity: 1;
 }

 .swiftxr-card h4 {
    font-size: 18px;
    margin: 0;
    font-weight: 500;
    opacity: 1;
 }

 .swiftxr-card p {
    font-size: 14px;
    margin: 0;
    font-weight: 400;
 }

 .text-wrap{
    display: flex;
    justify-content: space-between;
 }

 .swiftxr-column{
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    position: relative;
    max-width: 960px;
    justify-content: center;
    margin: 0 auto;
    /* margin-top: 100px; */
    /* align-items: center; */
 }

 .swiftxr-notice{
   width: 100% !important;
   position: relative;
   margin: 0 !important;
 }

 /*Ordinary Flex Column for Forms*/
 .swiftxr-column-odn{
   display: flex;
   flex-direction: column;
   row-gap: 20px;
 }

 .swiftxr-bigger{
   max-width: 1120px !important;
 }

 .swiftxr-left{
   margin: 0 !important;
 }

 .swiftxr-custom-number-input{
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: start;
 }

 #swiftxr-url{
    width: 100%;
    max-width: 520px;
 }

 .swiftxr-custom-number-input > input{
    width: 115px;
 }

 .swiftxr-form-action{
    display: flex;
    width: 100%;
    align-items: center;
    column-gap: 20px;
 }

 .swiftxr-form-action > button,
 .swiftxr-form-action > a,
 .swiftxr-form-action > .submit{
    height: max-content;
    width: max-content;
    margin: 0;
 }

 .swiftxr-button-danger {
    border: 1px solid #d32254 !important;
    color: #d32254 !important;
 }

 .swiftxr-iframe{
    height: 300px;
    width: 100%;
 }

 .swiftxr-preview-card {
   min-height: 360px;
 }

 .swiftxr-preview-empty {
   align-items: center;
   color: #50575e;
   display: flex;
   flex-direction: column;
   justify-content: center;
   min-height: 280px;
   padding: 20px;
   text-align: center;
 }

 .swiftxr-preview-empty h4 {
   color: #1d2327;
   font-size: 18px;
   font-weight: 600;
   margin: 0;
 }

 .swiftxr-preview-empty p {
   font-size: 14px;
   line-height: 1.5;
   max-width: 340px;
 }

 .swiftxr-preview-icon {
   align-items: center;
   border: 1px solid #c3c4c7;
   border-radius: 8px;
   color: #646970;
   display: inline-flex;
   font-size: 14px;
   font-weight: 700;
   height: 48px;
   justify-content: center;
   margin-bottom: 12px;
   width: 48px;
 }

 .swiftxr-text-muted{
    margin: 0;
    opacity: .8;
}

 .shortcode-id {
    width: 50px;
    /* Set the desired width */
 }

 .swiftxr-card-dimension{
    display: grid;
    grid-template-columns: repeat(2,max-content);
    column-gap: 20px;
 }

 .swiftxr-card-dimension > div{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
 }

 .swiftxr-card-dimension >div > h5 {
    font-size: 14px;
    font-weight: 400;
 }

.swiftxr-sub-header{
   margin: 0;
   font-size: 16px;
}

#swiftxr-helper-text {
   display: none;
}

.main-card{
   display: grid;
   grid-template-columns: 1fr 150px;
   column-gap: 10px;
}

.main-card > div{
   display: flex;
   flex-direction: column;
   row-gap: 10px;
}

.main-card img{
   max-width: 100%;
   max-height: 100%;
}

.main-card h5{
   font-weight: 600;
}

.swiftxr-setup-card {
   row-gap: 18px;
}

.swiftxr-setup-header {
   align-items: flex-start;
   display: flex;
   justify-content: space-between;
   gap: 16px;
}

.swiftxr-setup-header h2,
.swiftxr-list-header h2 {
   font-size: 18px;
   font-weight: 600;
   line-height: 1.3;
   margin: 0;
}

.swiftxr-setup-header p {
   color: #646970;
   font-size: 14px;
   margin: 8px 0 0;
}

.swiftxr-setup-list {
   border-top: 1px solid #dcdcde;
   display: flex;
   flex-direction: column;
}

.swiftxr-setup-step {
   align-items: flex-start;
   display: grid;
   grid-template-columns: 36px 1fr;
   gap: 14px;
   padding: 18px 0;
}

.swiftxr-setup-step + .swiftxr-setup-step {
   border-top: 1px solid #dcdcde;
}

.swiftxr-setup-number {
   align-items: center;
   background-color: #f0f0f1;
   border-radius: 999px;
   color: #50575e;
   display: inline-flex;
   font-weight: 600;
   height: 32px;
   justify-content: center;
   width: 32px;
}

.swiftxr-setup-copy {
   display: flex;
   flex-direction: column;
   gap: 8px;
}

.swiftxr-setup-copy h3 {
   align-items: center;
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   font-size: 16px;
   font-weight: 600;
   line-height: 1.3;
   margin: 0;
}

.swiftxr-setup-copy p {
   color: #646970;
   font-size: 14px;
   line-height: 1.5;
   margin: 0;
}

.swiftxr-status-pill {
   border-radius: 999px;
   display: inline-flex;
   font-size: 12px;
   font-weight: 500;
   line-height: 1;
   padding: 6px 10px;
}

.swiftxr-status-pill.is-done {
   background-color: #b8f5cf;
   color: #006b2d;
}

.swiftxr-status-pill.is-muted {
   background-color: #f0f0f1;
   color: #50575e;
}

.swiftxr-setup-actions {
   border-top: 1px solid #dcdcde;
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   padding-top: 18px;
}

.swiftxr-support-card {
   align-items: flex-start;
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   gap: 14px;
   padding: 12px 14px;
}

.swiftxr-support-card h2 {
   font-size: 15px;
   font-weight: 600;
   line-height: 1.3;
   margin: 0;
}

.swiftxr-support-card p {
   color: #646970;
   font-size: 13px;
   line-height: 1.5;
   margin: 4px 0 0;
}

.swiftxr-support-actions {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   justify-content: flex-end;
}

.swiftxr-support-actions .button {
   font-size: 12px;
   line-height: 2;
   min-height: 28px;
   padding: 0 10px;
}

.swiftxr-guide-section {
   border-left: 4px solid #2271b1;
   padding: 4px 0 4px 14px;
}

.swiftxr-guide-section h3 {
   font-size: 16px;
   font-weight: 600;
   line-height: 1.3;
   margin: 0;
}

.swiftxr-guide-section p {
   color: #646970;
   font-size: 14px;
   line-height: 1.5;
   margin: 6px 0 0;
}

.swiftxr-list-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
}
.swiftxr-wrap{
   position: relative;
   display: flex;
   flex-direction: column;
   row-gap: 20px;
   padding: 0;
   margin: 10px 20px 0 2px;
   padding-right: 20px;
   background-color: transparent;
}



.swiftxr-header{
   display: flex;
   justify-content: space-between;
   align-items: center;
   position: relative;
   /* background-color: #ffffff; */
   width: 100%;
   height: max-content;
   padding: 15px 0px;
   border-bottom: 1px solid #1b1b1b2c;
   margin: 0;
   background-color: transparent;
   /* left: 0; */
}

.swiftxr-header h1{
   margin: 0;
   padding: 0;
}

.swiftxr-header-close {
   justify-content: start !important;
   column-gap: 10px;
}

.swiftxr-header > div{
   display: flex;
   column-gap: 10px;
   row-gap: 8px;
   flex-wrap: wrap;
   justify-content: flex-end;
}

.swiftxr-toggle {
   position: relative;
   display: inline-block;
   width: 48px;
   height: 28px;
   
}

.swiftxr-toggle input[type="checkbox"] {
   opacity: 0;
   width: 0;
   height: 0;
}

.swiftxr-toggle .swiftxr-slider {
   position: absolute;
   cursor: pointer;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: #ccc;
   -webkit-transition: .2s;
   transition: .2s;
   border-radius: 14px;
}

.swiftxr-toggle input[type="checkbox"]:checked+.swiftxr-slider {
   background-color: #0084e3;
}

.swiftxr-toggle .swiftxr-slider:before {
   position: absolute;
   content: "";
   height: 20px;
   width: 20px;
   left: 4px;
   bottom: 4px;
   background-color: white;
   -webkit-transition: .2s;
   transition: .2s;
   border-radius: 50%;
}

.swiftxr-toggle input[type="checkbox"]:checked+.swiftxr-slider:before {
   -webkit-transform: translateX(20px);
   -ms-transform: translateX(20px);
   transform: translateX(20px);
}

.swiftxr-toggle-parent{
   display: flex;
   column-gap: 10px;
   align-items: center;
   /* justify-content: center; */
}

.swiftxr-toggle-parent > p{
   margin: 0;
   opacity: .8;
   font-size: 13px;
}

.swiftxr-modal{
   position: fixed;
   width: 100vw;
   height: 100vh;
   top: 0;
   left: 0;
   background-color: #1b1b1b80;
   padding: 50px;
   display: flex;
   justify-content: center;
   z-index: 10;
}

.swiftxr-modal .modal-content{
   background-color: #ffffff;
   border-radius: 5px;
   height: max-content;
   max-height: 80%;
   width: 100%;
   max-width: 500px;

   display: grid;
   grid-template-rows: max-content 1fr max-content;
   
}
.swiftxr-modal .modal-header {
   display: flex;
   justify-content: space-between;
   column-gap: 10px;
   padding: 15px;
   border-bottom: 1px solid #dedede;
}

.swiftxr-modal .modal-header h1{
   font-size: 20px;
   margin: 0;
   padding: 0;
}

.swiftxr-modal .modal-footer{
   display: flex;
   justify-content: end;
   column-gap: 10px;
   padding: 15px;
   border-top: 1px solid #dedede;
}

.swiftxr-modal .modal-body{
   padding: 15px;

   display: flex;
   flex-direction: column;
   row-gap: 20px;
   /* height: 100%; */
   overflow: hidden;
}

.swiftxr-modal .input-group{
   display: grid;
   grid-template-columns: max-content 1fr max-content;
   border: 1px solid #dedede;
   border-radius: 5px;
}

.swiftxr-modal .input-group > span {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  padding: 10px;
}

.swiftxr-modal .modal-body-content{
   display: grid;
   grid-template-columns: 1fr;
   grid-auto-rows: max-content;
   row-gap: 5px;
   height: 100%;
   overflow-y: auto;
}

.swiftxr-product-item{
   display: flex;
   column-gap: 10px;
   background-color: #f8f9fa;
   border-radius: 5px;
   border: 1px solid #dedede;
   padding: 10px;
   align-items: center;
   cursor: pointer;
   height: 50px;
   min-width: 0;
}

.swiftxr-product-item  img{
   max-height: 100%;
}

.swiftxr-product-item p {
   margin: 0;
   padding: 0;
   font-size: 16px;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}

.swiftxr-hide{
   display: none;
}

.swiftxr-table th{
   font-weight: 500;
}

.swiftxr-modal-close{
   background-color: transparent;
   cursor: pointer;
   border: none;
   font-size: 16px;
   background-color: #f8f9fa;
   color: #000000;
   font-weight: 500;
}

.swiftxr-modal-close:hover {
   opacity: .8;
}

.swiftxr-center {
   display: flex;
   justify-content: center;
   flex-direction: column;
   text-align: center;
   align-items: center;
   padding: 25px 20px;
}


.swiftxr-shortcode-content{
   border: 1px solid #1b1b1b80;
   padding: 5px;
   font-size: 16px !important;
   font-weight: 800;
}

.swiftxr-shortcode-row {
   align-items: center;
   display: flex;
   gap: 8px;
   flex-wrap: wrap;
}

.swiftxr-copy-shortcode {
   align-items: center;
   display: inline-flex !important;
   justify-content: center;
   min-height: 32px;
   padding: 0 8px !important;
}

.swiftxr-copy-shortcode .dashicons {
   font-size: 18px;
   height: 18px;
   line-height: 18px;
   width: 18px;
}

.swiftxr-copy-shortcode.is-copied {
   border-color: #00a32a !important;
   color: #00a32a !important;
}

@media screen and (max-width: 782px) {
   .swiftxr-wrap {
      margin-right: 10px;
      padding-right: 0;
   }

   .swiftxr-header {
      align-items: flex-start;
      flex-direction: column;
      row-gap: 12px;
   }

   .swiftxr-header > div {
      justify-content: flex-start;
   }

   .swiftxr-setup-header {
      flex-direction: column;
   }

   .swiftxr-support-card {
      flex-direction: column;
   }

   .swiftxr-support-actions {
      justify-content: flex-start;
   }

   .swiftxr-admin-form,
   .main-card,
   .swiftxr-card-dimension {
      grid-template-columns: 1fr;
      row-gap: 20px;
   }

   .text-wrap,
   .swiftxr-toggle-parent,
   .swiftxr-form-action {
      align-items: flex-start;
      flex-wrap: wrap;
      row-gap: 10px;
   }

   .swiftxr-toggle-parent {
      column-gap: 8px;
   }

   .swiftxr-custom-number-input {
      grid-template-columns: 1fr max-content;
      width: 100%;
   }

   .swiftxr-custom-number-input > input {
      width: 100%;
   }

   .swiftxr-modal {
      padding: 24px 12px;
      align-items: flex-start;
   }

   .swiftxr-modal .input-group {
      grid-template-columns: max-content 1fr;
   }

   .swiftxr-modal .input-group > button {
      grid-column: 1 / -1;
   }
}
